Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Disables TnT
- # User must have "place.tnt" permission to
- player-filter = "!{'permissions': {'tnt.exempt': true}}",
- action-rules {
- place-block {
- filter {
- # Placing TnT
- block = "{'state': {'type': {'id': 'minecraft:tnt'}}}",
- },
- response {
- match = [
- "command(tell <player> TnT is not allowed on this server!)",
- "log(<player> tried to place TnT!)",
- "deny"
- ]
- }
- },
- interact-with-block {
- filter {
- # Interacting with TnT
- block = "{'state': {'type': {'id': 'minecraft:tnt'}}}"
- },
- response {
- match = [
- "command(tell <player> TnT is not allowed on this server!)",
- "log(<player> tried to light TnT!)",
- "deny"
- ]
- }
- },
- craft {
- filter {
- # Crafting TnT
- result = "{'type': 'minecraft:tnt', 'quantity': 1}"
- },
- response {
- match = [
- "command(tell <player> TnT is not allowed on this server!)",
- "log(<player> tried to craft TnT!)",
- "deny"
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment