Henry_Cat

Shield Bash Commands

Apr 29th, 2020
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. First run these three commands once:
  2. /forceload add -1 1- 1 1
  3. /scoreboard objectives add bash minecraft.custom:minecraft.damage_blocked_by_shield
  4. /summon armor_stand 0.0 0.0 0.0 {Marker:1,Tags:["motionMaker"]}
  5.  
  6. Then all of these commands in order on repeat:
  7. /execute at @a[scores={bash=1..},limit=1] positioned as @e[tag=motionMaker] run tp @e[tag=motionMaker] ^ ^ ^1.5
  8. /execute if entity @a[scores={bash=1..},limit=1] as @e[tag=motionMaker] at @s run tp @s ~ 0.5 ~
  9. /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
  10. /scoreboard players set @a bash 0
  11. /tp @e[tag=motionMaker] 0.0 0 0.0
  12.  
  13. That's all, message me on reddit if you have any questions
Advertisement
Add Comment
Please, Sign In to add comment