Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if {SpawnedPet::%UUID of player%} is not set:
- if player's z-coord is between 121 and 96:
- if player's x-coord is between 121 and 96:
- play sound "entity.chicken.egg" with pitch 1 to player
- play sound "entity.ender_dragon.flap" with pitch 2 to player
- play sound "entity.experience_orb.pickup" with pitch 2 to player
- if player's tool is {ChickenPet}:
- send "&9&lPETS: &7You have spawned your &aChicken &7pet!" to player
- spawnpet(player, "Chicken")
- if player's tool is {CowPet}:
- send "&9&lPETS: &7You have spawned your &eCow &7pet!" to player
- spawnpet(player, "Cow")
- if player's tool is {TigerPet}:
- send "&9&lPETS: &7You have spawned your &6Tiger &7pet!" to player
- spawnpet(player, "Tiger")
- if player's tool is {TurtlePet}:
- send "&9&lPETS: &7You have spawned your &aTurtle &7pet!" to player
- spawnpet(player, "Turtle")
- if player's tool is {GuardianPet}:
- send "&9&lPETS: &7You have spawned your &eGuardian &7pet!" to player
- spawnpet(player, "Guardian")
- if player's tool is {SharkPet}:
- send "&9&lPETS: &7You have spawned your &6Shark &7pet!" to player
- spawnpet(player, "Shark")
- if player's tool is {VillagerPet}:
- send "&9&lPETS: &7You have spawned your &aVillager &7pet!" to player
- spawnpet(player, "Villager")
- broadcast "if player tool is villagerpet"
- if player's tool is {BirdPet}:
- send "&9&lPETS: &7You have spawned your &eBird &7pet!" to player
- send "&9&l- &7Flight mode has been enabled!" to player
- spawnpet(player, "Bird")
- set player's flight mode to true
- if player has permission "rank.coal":
- set player's flight speed to 0.3
- send "&9&l- &7Flight mode has been set to &fx2&7!" to player
- if player's tool is {EndermanPet}:
- send "&9&lPETS: &7You have spawned your &6Enderman &7pet!" to player
- spawnpet(player, "Enderman")
- if player's tool is {TimePet}:
- send "&9&lPETS: &7You have spawned your <##f39de8>Time &7pet!" to player
- spawnpet(player, "Time")
- stop
- play sound "block.note_block.bass" with pitch 2 to player
- send "&9&lPETS: &7You can only spawn pets in the /spawn region!" to event-player
- stop
- if {SpawnedPet::%UUID of player%} is alive:
- if display name of {SpawnedPet::%UUID of player%} contains "Bird":
- set player's flight mode to false
- set player's flight speed to 0.2
- play sound "entity.item.pickup" with pitch 1 to player
- play sound "entity.ender_dragon.flap" with pitch 2 to player
- draw 25 poof at location 2.25 meters above {SpawnedPet::%UUID of player%} with offset vector(0, 0, 0) with extra 0.2
- kill {SpawnedPet::%UUID of player%}
- delete {SpawnedPet::%UUID of player%}
- send "&9&lPETS: &7You have de-spawned your pet!" to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment