Advertisement
perry206

świniarka

Dec 27th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1.  
  2. options:
  3. mob: bat
  4. ilosc: 10
  5. nazwa: &dASPYR
  6. delay: 2
  7. on script load:
  8. set {@delay} to 2
  9. command /pig <text>:
  10. trigger:
  11. player has permission "pig.admin":
  12. if arg 1 is "set":
  13. set {pig} to location of player
  14. send "&4PIG &l>> &aStworzono swiniarnie."
  15. if arg 1 is "del":
  16. clear {pig}
  17. send "&4PIG &l>> &aUsunieto swiniarnie."
  18. on right click:
  19. if clicked block is stone button:
  20. if block behind clicked block is 97:5:
  21. if {@delay} is 0:
  22. loop {@ilosc} times:
  23. spawn 1 {@mob} at {pig}
  24. set name of last spawned {@mob} to "{@nazwa}"
  25. set the maximum health of the spawned {@mob} to 1
  26. ignite spawned {@mob}
  27. set {@delay} to 2
  28. on death of {@mob}:
  29. if name of {@mob} is "{@nazwa}":
  30. clear drops
  31. add 2 350:1 named "&4mc.potyczka.net" to drops
  32. every 1 seconds:
  33. remove 1 from {@delay}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement