DeadIslandDude

TnT.hocon

May 17th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # Disables TnT
  2. # User must have "place.tnt" permission to
  3. player-filter = "!{'permissions': {'tnt.exempt': true}}",
  4. action-rules {
  5. place-block {
  6. filter {
  7. # Placing TnT
  8. block = "{'state': {'type': {'id': 'minecraft:tnt'}}}",
  9. },
  10. response {
  11. match = [
  12. "command(tell <player> TnT is not allowed on this server!)",
  13. "log(<player> tried to place TnT!)",
  14. "deny"
  15. ]
  16. }
  17. },
  18.  
  19. interact-with-block {
  20. filter {
  21. # Interacting with TnT
  22. block = "{'state': {'type': {'id': 'minecraft:tnt'}}}"
  23. },
  24. response {
  25. match = [
  26. "command(tell <player> TnT is not allowed on this server!)",
  27. "log(<player> tried to light TnT!)",
  28. "deny"
  29. ]
  30. }
  31. },
  32.  
  33. craft {
  34. filter {
  35. # Crafting TnT
  36. result = "{'type': 'minecraft:tnt', 'quantity': 1}"
  37. },
  38. response {
  39. match = [
  40. "command(tell <player> TnT is not allowed on this server!)",
  41. "log(<player> tried to craft TnT!)",
  42. "deny"
  43. ]
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment