Advertisement
zuhir__

Help 2 D:

Jun 21st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. command /pets: #Requeriments: Skript and SkQuerry
  2. trigger:
  3. wait 1 tick
  4. set {x} to x-coord of event-location
  5. set {y} to y-coord of event-location
  6. set {z} to z-coord of event-location
  7. open chest with 3 rows named "&e&lPets" to player
  8. 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}"]
  9. if {pet_%player%} is 1:
  10. loop all pigs:
  11. if display name of loop-entity is "&eMascota de &6%player%":
  12. delete loop-entity
  13. set {pet_%player%} to 0
  14. else:
  15. set {pet_%player%} to 1
  16.  
  17. on damage:
  18. if "%victim's name%" contains "&eName of &6":
  19. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement