GrimoN

Untitled

Apr 21st, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. command /swiniarnia [<text>] [<text>]:
  2. permission: swiniarnia
  3. permission message: &cNie masz do tego dostepu!
  4. trigger:
  5. if arg 1 is "spawn":
  6. if arg 2 is "ustaw":
  7. if {swiniarnia::%block under target block%} is not set:
  8. set {swiniarnia::%block under target block%} to location of block under target block
  9. send "&6Ustawiono swiniarnie"
  10. stop
  11. else:
  12. send "&cSwiniarnia jest ustawiona w tym miejscu."
  13. stop
  14. if arg 2 is "usun":
  15. if {swiniarnia::%block under target block%} is set:
  16. clear {swiniarnia::%block under target block%}
  17. send "&6Usunieto swiniarnie"
  18. stop
  19. else:
  20. send "&cSwiniarnia nie jest ustawiona w tym miejscu."
  21. stop
  22. if arg 1 is "przycisk":
  23. if arg 2 is "ustaw":
  24. if target block is stone button:
  25. if {przycisk::%target block%} is not set:
  26. set {przycisk::%target block%} to true
  27. send "&6Ustawiono przycisk"
  28. stop
  29. else:
  30. send "&cTen przycisk jest juz ustawiony."
  31. stop
  32. else:
  33. send "&cTo nie jest kamienny przycisk."
  34. stop
  35. if arg 2 is "usun":
  36. if target block is stone button:
  37. if {przycisk::%target block%} is set:
  38. clear {przycisk::%target block%}
  39. send "&6Usunieto przycisk"
  40. stop
  41. else:
  42. send "&cTen przycisk nie jest ustawiony."
  43. stop
  44. else:
  45. send "&cTo nie jest kamienny przycisk."
  46. stop
  47.  
  48. on rightclick:
  49. if event-block is stone button:
  50. if {przycisk::%event-block%} is set:
  51. loop {swiniarnia::*}:
  52. set {_x} to location of loop-value
  53. spawn 1 pig at {_x}
  54. ignite last spawned entity
Advertisement
Add Comment
Please, Sign In to add comment