Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. execute as @e[shooter>] at @s run tp @s ~ ~ ~ facing entity @e[<selector for target>,limit=1]
  2.  
  3. execute as @e[<shooter>] at @s run summon arrow ^ ^ ^1 {NoGravity:1}
  4. execute as @e[<shooter>] at @s positioned ^ ^ ^1 run scoreboard players set @e[type=arrow,distance=0] id 1
  5. execute as @e[type=arrow] store result score @s x run data get entity @s Pos[0] 10
  6. execute as @e[type=arrow] store result score @s y run data get entity @s Pos[1] 10
  7. execute as @e[type=arrow] store result score @s z run data get entity @s Pos[2] 10
  8. execute as @e[type=armor_stand] store result score @s x run data get entity @s Pos[0] 10
  9. execute as @e[type=armor_stand] store result score @s y run data get entity @s Pos[1] 10
  10. execute as @e[type=armor_stand] store result score @s z run data get entity @s Pos[2] 10
  11. execute as @e[type=armor_stand] at @s positioned ^ ^ ^1 run scoreboard players operation @e[type=arrow,distance=0] x -= @s x
  12. execute as @e[type=armor_stand] at @s positioned ^ ^ ^1 run scoreboard players operation @e[type=arrow,distance=0] y -= @s y
  13. execute as @e[type=armor_stand] at @s positioned ^ ^ ^1 run scoreboard players operation @e[type=arrow,distance=0] z -= @s z
  14. execute as @e[type=arrow] store result entity @s Motion[0] double 0.1 run scoreboard players get @s x
  15. execute as @e[type=arrow] store result entity @s Motion[1] double 0.1 run scoreboard players get @s y
  16. execute as @e[type=arrow] store result entity @s Motion[2] double 0.1 run scoreboard players get @s z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement