SkiLLerK_1337

Untitled

Feb 14th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. variables:
  2. wand::language = "english"
  3.  
  4. command /wand [<text>] [<text>]:
  5. permission: *
  6. trigger:
  7. if arg 1 is not set:
  8. give 1 diamond axe named "&aWAND" to player
  9. send "&aWAND"
  10. if arg 1 is "language" or "jezyk":
  11. if arg 2 is "english" or "eng":
  12. set {wand::language} to "english"
  13. send "&aSuccessfully changed language to english"
  14. if arg 2 is "polish" or "pl":
  15. set {wand::language} to "polish"
  16. send "&aPomyslnie zmieniono jezyk na polski"
  17. if arg 2 is not set:
  18. send "&9/wand language <english/polish>"
  19.  
  20. on leftclick:
  21. if player is holding diamond axe named "&aWAND":
  22. if player has permission "*":
  23. cancel event
  24. set {x::leftclick::%player%} to x coordinate of target block
  25. set {y::leftclick::%player%} to y coordinate of target block
  26. set {z::leftclick::%player%} to z coordinate of target block
  27. if {wand::language} is "english":
  28. send "&eFirst position set"
  29. if {wand::language} is "polish":
  30. send "&ePierwsza pozycja zaznaczona"
  31. else:
  32. if {wand::language} is "english":
  33. send "&cYou dont have permissions!"
  34. if {wand::language} is "polish":
  35. send "&cNie masz permisji!"
  36.  
  37. on rightclick:
  38. if player has permission "*":
  39. if player is holding diamond axe named "&aWAND":
  40. cancel event
  41. set {x::rightclick::%player%} to x coordinate of target block
  42. set {y::rightclick::%player%} to y coordinate of target block
  43. set {z::rightclick::%player%} to z coordinate of target block
  44. if {wand::language} is "english":
  45. send "&eSecond position set"
  46. if {wand::language} is "polish":
  47. send "&eDruga pozycja zaznaczona"
  48. else:
  49. if {wand::language} is "english":
  50. send "&cYou dont have permissions!"
  51. if {wand::language} is "polish":
  52. send "&cNie masz permisji!"
  53.  
  54. command /set [<text>]:
  55. permission: *
  56. trigger:
  57. if arg parsed as integer is set:
  58. if {wand::language} is "english":
  59. send "&cYou cant use ID!"
  60. if {wand::language} is "polish":
  61. send "&cNie mozesz uzyc ID!"
  62. stop
  63. else:
  64. execute console command "/fill %{x::leftclick::%player%}% %{y::leftclick::%player%}% %{z::leftclick::%player%}% %{x::rightclick::%player%}% %{y::rightclick::%player%}% %{z::rightclick::%player%}% %arg 1%"
  65. if {wand::language} is "english":
  66. send "&eSuccessfully filled"
  67. if {wand::language} is "polish":
  68. send "&ePomyslnie wypelnione"
  69. if arg 1 is not set:
  70. if {wand::language} is "english":
  71. send "&aChoose a block &7(example: /set dirt)"
  72. if {wand::language} is "polish":
  73. send "&aWybierz blok &7(przyklad: /set dirt)"
  74.  
  75. command /undo:
  76. permission: *
  77. trigger:
  78. execute console command "/fill %{x::leftclick::%player%}% %{y::leftclick::%player%}% %{z::leftclick::%player%}% %{x::rightclick::%player%}% %{y::rightclick::%player%}% %{z::rightclick::%player%}% air"
  79. send "&aUNDO!"
  80.  
  81. command /up [<number>]:
  82. permission: *
  83. trigger:
  84. if arg 1 is not set:
  85. set block above player to stone
  86. teleport player to block 2 up
  87. send "&aPoof!"
  88. if arg 1 is set:
  89. set block arg 1 up to stone
  90. set {_up} to arg 1
  91. teleport player to block {_up}+1 up
  92. send "&aPoof!"
Advertisement
Add Comment
Please, Sign In to add comment