Advertisement
Guest User

Untitled

a guest
Apr 10th, 2018
1,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. /scoreboard objectives add rotation dummy rotation
  2. /scoreboard objectives add impulsetime dummy impulsetime
  3. /scoreboard objectives add tijd dummy tijd
  4.  
  5. scoreboard players set @e rotation 0
  6. execute as @e at @s if entity @e[type=armor_stand,limit=1,dx=4,dz=0,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 1
  7. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=3,dz=1,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 2
  8. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-0.5,dz=4,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 4
  9. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=1,dz=3,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 3
  10. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-2,dz=3,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 5
  11. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-4,dz=-0.5,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 7
  12. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-3,dz=2,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 6
  13. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-3,dz=-2,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 8
  14. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=0,dz=-4,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 10
  15. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=-2,dz=-3,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 9
  16. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=1,dz=-3,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 11
  17. execute as @e[scores={rotation=0}] at @s if entity @e[type=armor_stand,limit=1,dx=3,dz=-2,name=impulse] run scoreboard players set @e[name=!impulse,distance=..1,limit=1] rotation 12
  18.  
  19. execute as @a[scores={rotation=1,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[-3.0,2.0,0.0],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  20. execute as @a[scores={rotation=2,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[-2.6,2.0,-1.5],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  21. execute as @a[scores={rotation=3,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[-1.5,2.0,-2.6],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  22. execute as @a[scores={rotation=4,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[0.0,2.0,-3.0],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  23. execute as @a[scores={rotation=5,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[1.5,2.0,-2.6],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  24. execute as @a[scores={rotation=6,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[2.6,2.0,-1.5],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  25. execute as @a[scores={rotation=7,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[3.0,2.0,0.0],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  26. execute as @a[scores={rotation=8,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[2.6,2.0,1.5],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  27. execute as @a[scores={rotation=9,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[1.5,2.0,2.6],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  28. execute as @a[scores={rotation=10,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[0.0,2.0,3.0],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  29. execute as @a[scores={rotation=11,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[-1.5,2.0,2.6],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  30. execute as @a[scores={rotation=12,tijd=59}] at @s run summon minecraft:armor_stand ~ ~ ~ {Motion:[-2.6,2.0,1.5],CustomName:"{\"text\":\"launch\"}",Invulnerable:1b,Invisible:1b}
  31. execute as @a[scores={tijd=57}] run kill @e[name=impulse]
  32.  
  33. scoreboard players set @e[name=impuls] impulsetime 0
  34. /data merge entity @e[name=impuls,limit=1] {CustomName:"{\"text\":\"impuls2\"}"}
  35. scoreboard players set @e[name=impuls2,scores={impulsetime=0}] impulsetime 20
  36. scoreboard players remove @e[name=impuls2,scores={impulsetime=1..}] impulsetime 1
  37. execute as @e[name=impulse,scores={impulsetime=4}] run kill @e[name=impulse,limit=1]
  38. /data merge entity @e[name=impuls2,limit=1,scores={impulsetime=6}] {CustomName:"{\"text\":\"impulse\"}"}
  39.  
  40. /scoreboard players set @e[scores={rotation=1..,tijd=..0}] tijd 60
  41. scoreboard players remove @e[scores={tijd=0..}] tijd 1
  42.  
  43. /execute as @e[name=launch,limit=1] at @s run tp @a[distance=..4] ^ ^ ^
  44.  
  45. execute as @e[name=impulse] at @s run kill @e[type=snowball,distance=..3]
  46.  
  47. /kill @e[name=launch,nbt={OnGround:1b}]
  48.  
  49. /execute as @e[type=snowball] at @s unless block ~ ~-1 ~ minecraft:air run summon armor_stand ~ ~ ~ {CustomName:"{\"text\":\"impuls\"}",Invulnerable:1b,Invisible:1b}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement