Advertisement
nunonuno_riku

Untitled

Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. on script load:
  2. register new shaped recipe for leather named "&6パラシュート" using feather, feather, feather, string, air, string, leather, leather, leather
  3.  
  4. on right click with leather:
  5. if name of held item is "&6パラシュート":
  6. if the block below the player is air:
  7. the player is not riding a chicken:
  8. remove 1 of the tool from the player
  9. spawn a chicken at the player's location
  10. set the spawned chicken's display name to "パラシュート"
  11. make the player ride the spawned chicken
  12.  
  13. spawn a chicken at the player's location
  14. set the spawned chicken's display name to "パラシュート"
  15. set the spawned chicken's max health to 0
  16.  
  17. on any movement:
  18. block below player is not air:
  19. player is riding a chicken:
  20. loop chickens in radius 10 around player:
  21. if display name of loop-chicken contains "パラシュート":
  22. kill loop-chicken
  23.  
  24. on right click:
  25. if player is riding a chicken:
  26. loop all chickens in radius 5 around player:
  27. if loop-entity is chicken:
  28. push the loop-entity forwards at speed 2
  29.  
  30.  
  31. on death of chicken:
  32. if display name of event-chicken is "パラシュート":
  33. delete drops
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement