Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on spawn of chicken:
- chance of 30%:
- cancel the event
- spawn 1 bat at event-location
- wait 1 tick
- disguise spawned bat as "Chicken"
- set spawned bat's name to "Pigeon"
- add spawned bat to {pigeons::*}
- set spawned bat's automatic despawn state to false
- while spawned bat is alive:
- wait 5 seconds
- drop 1 light gray dye named "Bird Shift" at spawned bat's location
- on rightclick:
- if player's held item is light gray dye:
- if player's held item's name is "Bird Shift":
- if {pigeon.%player%} is not true:
- disguise player as "Chicken"
- allow fly for player
- message "<light green>You ate bird shift... You are now a pigeon! Fly away!"
- remove 1 light gray dye named "Bird Shift" from player's inventory
- set {pigeon.%player%} to true
- while player is alive:
- wait 5 seconds
- drop 1 light gray dye named "Bird Shift" at player's location
- on death of player:
- set {pigeon.%victim%} to false
- on join:
- loop {pigeons::*}:
- disguise loop-value as "Chicken"
- loop players:
- if {pigeon.%loop-player%} is true:
- disguise loop-player as "Chicken"
- on load:
- kill all bats
- clear {pigeons::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement