Guest User

Untitled

a guest
May 4th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. if {SpawnedPet::%UUID of player%} is not set:
  2.  
  3. if player's z-coord is between 121 and 96:
  4. if player's x-coord is between 121 and 96:
  5. play sound "entity.chicken.egg" with pitch 1 to player
  6. play sound "entity.ender_dragon.flap" with pitch 2 to player
  7. play sound "entity.experience_orb.pickup" with pitch 2 to player
  8.  
  9. if player's tool is {ChickenPet}:
  10. send "&9&lPETS: &7You have spawned your &aChicken &7pet!" to player
  11. spawnpet(player, "Chicken")
  12. if player's tool is {CowPet}:
  13. send "&9&lPETS: &7You have spawned your &eCow &7pet!" to player
  14. spawnpet(player, "Cow")
  15. if player's tool is {TigerPet}:
  16. send "&9&lPETS: &7You have spawned your &6Tiger &7pet!" to player
  17. spawnpet(player, "Tiger")
  18.  
  19. if player's tool is {TurtlePet}:
  20. send "&9&lPETS: &7You have spawned your &aTurtle &7pet!" to player
  21. spawnpet(player, "Turtle")
  22. if player's tool is {GuardianPet}:
  23. send "&9&lPETS: &7You have spawned your &eGuardian &7pet!" to player
  24. spawnpet(player, "Guardian")
  25. if player's tool is {SharkPet}:
  26. send "&9&lPETS: &7You have spawned your &6Shark &7pet!" to player
  27. spawnpet(player, "Shark")
  28.  
  29. if player's tool is {VillagerPet}:
  30. send "&9&lPETS: &7You have spawned your &aVillager &7pet!" to player
  31. spawnpet(player, "Villager")
  32. broadcast "if player tool is villagerpet"
  33. if player's tool is {BirdPet}:
  34. send "&9&lPETS: &7You have spawned your &eBird &7pet!" to player
  35. send "&9&l- &7Flight mode has been enabled!" to player
  36. spawnpet(player, "Bird")
  37. set player's flight mode to true
  38. if player has permission "rank.coal":
  39. set player's flight speed to 0.3
  40. send "&9&l- &7Flight mode has been set to &fx2&7!" to player
  41. if player's tool is {EndermanPet}:
  42. send "&9&lPETS: &7You have spawned your &6Enderman &7pet!" to player
  43. spawnpet(player, "Enderman")
  44.  
  45. if player's tool is {TimePet}:
  46. send "&9&lPETS: &7You have spawned your <##f39de8>Time &7pet!" to player
  47. spawnpet(player, "Time")
  48. stop
  49.  
  50. play sound "block.note_block.bass" with pitch 2 to player
  51. send "&9&lPETS: &7You can only spawn pets in the /spawn region!" to event-player
  52. stop
  53.  
  54. if {SpawnedPet::%UUID of player%} is alive:
  55. if display name of {SpawnedPet::%UUID of player%} contains "Bird":
  56. set player's flight mode to false
  57. set player's flight speed to 0.2
  58. play sound "entity.item.pickup" with pitch 1 to player
  59. play sound "entity.ender_dragon.flap" with pitch 2 to player
  60. draw 25 poof at location 2.25 meters above {SpawnedPet::%UUID of player%} with offset vector(0, 0, 0) with extra 0.2
  61. kill {SpawnedPet::%UUID of player%}
  62. delete {SpawnedPet::%UUID of player%}
  63. send "&9&lPETS: &7You have de-spawned your pet!" to player
  64. stop
Advertisement
Add Comment
Please, Sign In to add comment