Guest User

Wirus games

a guest
Aug 14th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1.  
  2. # swiniarka #
  3.  
  4. Options:
  5. Prefix: &6* &5&lN&ftools&a2 &6* #Tag skryptu
  6. ClickBlock: stone button #Blok ktory trzeba kliknac, aby respily sie swinie
  7. BlockBehind: redstone lamp #Blok za kliknietym blokiem
  8. Wait: 5 #Co ile mozna uzywac przycisku
  9. Name: &6* &5&lN&ftools&a2 &6* #Nazwa swini
  10. Amount: 5 #Ilosc swin
  11. AmountPork: 5 #Ilosc Miesa przy spawnie swin
  12. LifePig: 1 #Zycie swin
  13.  
  14.  
  15. Command /SpawnPig [<text>]:
  16. aliases: sp, pig
  17. trigger:
  18. if player has permission "SpawnPig.*":
  19. if arg 1 is not set:
  20. send "{@Prefix}"
  21. send "&7/SpawnPig set"
  22. send "&7/SpawnPig del"
  23. send "&7/SpawnPig help"
  24. stop
  25. if arg 1 is "help" or "pomoc":
  26. send "{@Prefix}"
  27. send "&7/SpawnPig set"
  28. send "&7/SpawnPig del"
  29. stop
  30. if arg 1 is "set" or "ustaw":
  31. set {SpawnPig} to location of player
  32. send "{@Prefix} &7Stworzono spawn swin."
  33. stop
  34. if arg 1 is "del" or "usun":
  35. clear {SpawnPig}
  36. send "{@Prefix} &7Usunieto spawn swin."
  37. stop
  38. else:
  39. send "&cBrak uprawnien"
  40. stop
  41.  
  42. on rightclick:
  43. if clicked block is {@ClickBlock}:
  44. if block behind clicked block is {@BlockBehind}:
  45. if difference between {PigWait.%player%} and now is less than {@Wait} seconds:
  46. set {_Time} to difference between {PigWait.%player%} and now
  47. stop
  48. set {PigWait.%player%} to now
  49. drop {@AmountPork} cooked pork at {SpawnPig}
  50. loop {@Amount} times:
  51. spawn 1 pig at {SpawnPig}
  52. ignite spawned pig
  53. set display name of spawned pig to "{@Name}"
  54. set max health of spawned pigs to {@LifePig}
Advertisement
Add Comment
Please, Sign In to add comment