Guest User

Untitled

a guest
May 1st, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. on rightclick:
  2. if player's tool is {ChickenPet}, {CowPet} or {TigerPet} or {TurtlePet} or {GuardianPet} or {SharkPet} or {VillagerPet} or {BirdPet} or {EndermanPet} or {TimePet}:
  3. if difference between {PetSpawnCooldown::%UUID of player%} and now is less than 3 seconds:
  4. play sound "block.note_block.bass" with pitch 2 to player
  5. send "&9&lPETS: &7There is a &e3 seconds &7cooldown on using pets!" to event-player
  6. stop
  7. set {PetSpawnCooldown::%UUID of player%} to now
  8.  
  9.  
  10. if {SpawnedPet::%UUID of player%} is not set:
  11.  
  12. if player's x-coord is between 156 and 5:
  13. if player's z-coord is between 156 and 5:
  14. play sound "entity.chicken.egg" with pitch 1 to player
  15. play sound "entity.ender_dragon.flap" with pitch 2 to player
  16. play sound "entity.experience_orb.pickup" with pitch 2 to player
  17.  
  18. if player's tool is {ChickenPet}:
  19. send "&9&lPETS: &7You have spawned your &aChicken &7pet!" to player
  20. spawnpet(player, "Chicken")
  21. if player's tool is {CowPet}:
  22. send "&9&lPETS: &7You have spawned your &eCow &7pet!" to player
  23. spawnpet(player, "Cow")
  24. if player's tool is {TigerPet}:
  25. send "&9&lPETS: &7You have spawned your &6Tiger &7pet!" to player
  26. spawnpet(player, "Tiger")
  27.  
  28. if player's tool is {TurtlePet}:
  29. send "&9&lPETS: &7You have spawned your &aTurtle &7pet!" to player
  30. spawnpet(player, "Turtle")
  31. if player's tool is {GuardianPet}:
  32. send "&9&lPETS: &7You have spawned your &eGuardian &7pet!" to player
  33. spawnpet(player, "Guardian")
  34. if player's tool is {SharkPet}:
  35. send "&9&lPETS: &7You have spawned your &6Shark &7pet!" to player
  36. spawnpet(player, "Shark")
  37.  
  38. if player's tool is {VillagerPet}:
  39. send "&9&lPETS: &7You have spawned your &aVillager &7pet!" to player
  40. spawnpet(player, "Villager")
  41. if player's tool is {BirdPet}:
  42. send "&9&lPETS: &7You have spawned your &eBird &7pet!" to player
  43. send "&9&l- &7Flight mode has been enabled!" to player
  44. spawnpet(player, "Bird")
  45. set player's flight mode to true
  46. if player has permission "rank.coal":
  47. set player's flight speed to 0.3
  48. send "&9&l- &7Flight mode has been set to &fx2&7!" to player
  49. if player's tool is {EndermanPet}:
  50. send "&9&lPETS: &7You have spawned your &6Enderman &7pet!" to player
  51. spawnpet(player, "Enderman")
  52.  
  53. if player's tool is {TimePet}:
  54. send "&9&lPETS: &7You have spawned your <##f39de8>Time &7pet!" to player
  55. spawnpet(player, "Time")
  56. stop
Advertisement
Add Comment
Please, Sign In to add comment