Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick:
- if player's tool is {ChickenPet}, {CowPet} or {TigerPet} or {TurtlePet} or {GuardianPet} or {SharkPet} or {VillagerPet} or {BirdPet} or {EndermanPet} or {TimePet}:
- if difference between {PetSpawnCooldown::%UUID of player%} and now is less than 3 seconds:
- play sound "block.note_block.bass" with pitch 2 to player
- send "&9&lPETS: &7There is a &e3 seconds &7cooldown on using pets!" to event-player
- stop
- set {PetSpawnCooldown::%UUID of player%} to now
- if {SpawnedPet::%UUID of player%} is not set:
- if player's x-coord is between 156 and 5:
- if player's z-coord is between 156 and 5:
- 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")
- 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
Advertisement
Add Comment
Please, Sign In to add comment