Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pets: #Requeriments: Skript and SkQuerry
- trigger:
- wait 1 tick
- set {x} to x-coord of event-location
- set {y} to y-coord of event-location
- set {z} to z-coord of event-location
- open chest with 3 rows named "&e&lPets" to player
- format slot 0 of player with pig spawn egg named "&aPig" to run [execute console command "/summon Pig %{x}% %{y}% %{z}% {CustomName:""&ePet of &6%player%"",NoAI:1,Silent:1,Invinsible:1,CustomNameVisible:1}"]
- if {pet_%player%} is 1:
- loop all pigs:
- if display name of loop-entity is "&eMascota de &6%player%":
- delete loop-entity
- set {pet_%player%} to 0
- else:
- set {pet_%player%} to 1
- on damage:
- if "%victim's name%" contains "&eName of &6":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement