SkiLLerK_1337

Untitled

Feb 14th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. variables:
  2. wand::language = "english"
  3.  
  4. command /wand [<text>] [<text>]:
  5. trigger:
  6. if arg 1 is not set:
  7. give 1 279 named "&aWAND" to player
  8. if arg 1 is "language" or "jezyk":
  9. if arg 2 is "english" or "eng":
  10. set {wand::language} to "english"
  11. send "&aSuccessfully changed language to english"
  12. if arg 2 is "polish" or "pl":
  13. set {wand::language} to "polish"
  14. send "&aPomyslnie zmieniono jezyk na polski"
  15.  
  16. on leftclick:
  17. cancel event
  18. if player is holding 279 named "&aWAND":
  19. set {x::leftclick::%player%} to x coordinate of target block
  20. set {y::leftclick::%player%} to y coordinate of target block
  21. set {z::leftclick::%player%} to z coordinate of target block
  22. if {wand::language} is "english":
  23. send "&eFirst position set"
  24. if {wand::language} is "polish":
  25. send "&ePierwsza pozycja zaznaczona"
  26.  
  27. on rightclick:
  28. cancel event
  29. if player is holding 279 named "&aWAND":
  30. set {x::rightclick::%player%} to x coordinate of target block
  31. set {y::rightclick::%player%} to y coordinate of target block
  32. set {z::rightclick::%player%} to z coordinate of target block
  33. if {wand::language} is "english":
  34. send "&eSecond position set"
  35. if {wand::language} is "polish":
  36. send "&eDruga pozycja zaznaczona"
  37.  
  38. command /set [<text>]:
  39. trigger:
  40. execute console command "/fill %{x::leftclick::%player%}% %{y::leftclick::%player%}% %{z::leftclick::%player%}% %{x::rightclick::%player%}% %{y::rightclick::%player%}% %{z::rightclick::%player%}% %arg 1%"
  41. if {wand::language} is "english":
  42. send "&eSuccessfully filled"
  43. if {wand::language} is "polish":
  44. send "&ePomyslnie wypelnione"
Advertisement
Add Comment
Please, Sign In to add comment