Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- register new shaped recipe for leather named "&6パラシュート" using feather, feather, feather, string, air, string, leather, leather, leather
- on right click with leather:
- if name of held item is "&6パラシュート":
- if the block below the player is air:
- the player is not riding a chicken:
- remove 1 of the tool from the player
- spawn a chicken at the player's location
- set the spawned chicken's display name to "パラシュート"
- make the spawned chicken ride the player
- on any movement:
- block below player is not air:
- player is riding a chicken:
- loop chickens in radius 10 around player:
- if display name of loop-chicken contains "パラシュート":
- kill loop-chicken
- on right click:
- if player is riding a chicken:
- loop all chickens in radius 5 around player:
- if loop-entity is chicken:
- push the loop-entity forwards at speed 2
- on death of chicken:
- if display name of event-chicken is "パラシュート":
- delete drops
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement