Advertisement
kaliumsan

Untitled

Feb 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. on join:
  2. if {tnt.%player%} is not set:
  3. set {tnt.%player%} to false
  4. else:
  5. stop
  6.  
  7. command //placetnt [<player>]:
  8. permission: minecraft.command.op
  9. permission message: &c権限がありません。
  10. trigger:
  11. if arg 1 is not set:
  12. if {tnt.%player%} is false:
  13. set {tnt.%player%} to true
  14. message "&a%player%さんのTNT設置を許可しました。"
  15. stop
  16. if {tnt.%player%} is true:
  17. set {tnt.%player%} to false
  18. message "&a%player%さんのTNT設置を禁止しました。"
  19. stop
  20. if arg 1 is set:
  21. if {tnt.%arg 1%} is false:
  22. set {tnt.%arg 1%} to true
  23. message "&a%arg 1%さんのTNT設置を許可しました。"
  24. stop
  25. if {tnt.%arg 1%} is true:
  26. set {tnt.%arg 1%} to false
  27. message "&a%arg 1%さんのTNT設置を禁止しました。"
  28. stop
  29. else:
  30. message "&c無効なテキストです。"
  31. stop
  32.  
  33.  
  34. on rightclick holding a tnt:
  35. if name of held item contains "&6TNT":
  36. shoot a tnt from the player at speed 1
  37.  
  38. on place of tnt:
  39. if {tnt.%player%} is true:
  40. stop
  41. if {tnt.%player%} is false:
  42. cancel event
  43. else:
  44. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement