Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First run these three commands once:
- /forceload add -1 1- 1 1
- /scoreboard objectives add bash minecraft.custom:minecraft.damage_blocked_by_shield
- /summon armor_stand 0.0 0.0 0.0 {Marker:1,Tags:["motionMaker"]}
- Then all of these commands in order on repeat:
- /execute at @a[scores={bash=1..},limit=1] positioned as @e[tag=motionMaker] run tp @e[tag=motionMaker] ^ ^ ^1.5
- /execute if entity @a[scores={bash=1..},limit=1] as @e[tag=motionMaker] at @s run tp @s ~ 0.5 ~
- /execute at @a[scores={bash=1..},limit=1] positioned ^ ^ ^1.01 as @e[distance=..2] run data modify entity @s Motion set from entity @e[tag=motionMaker,limit=1] Pos
- /scoreboard players set @a bash 0
- /tp @e[tag=motionMaker] 0.0 0 0.0
- That's all, message me on reddit if you have any questions
Advertisement
Add Comment
Please, Sign In to add comment