Module: anti_build
Overview
This module allows restricting specific player actions
.
Currently supported action types
include:
-
Break a specified block.
-
Place a specified block.
-
Interact with a specified item.
-
Interact with a specified block.
-
Interact with a specified entity.
-
Attack a specified entity.
Color Boxes
Read the document to see the definition of identifier
in Minecraft.
Use the command suggestion
from luckperms
mod to see the supported types by this module.
◉ To ban the placement of TNT block:
Just add the minecraft:tnt
into the place_block
list in config file.
◉ To ban the placement of TNT block, but allow player Alice to use it.
Grant a bypass permission
for that player: /lp user Alice permission set fuji.anti_build.place_block.bypass.minecraft:tnt
.
◉ To assign a override permission for a player explicitly.
Issue: /lp user Alice permission set fuji.anti_build.break_block.override.minecraft:grass_block false
This will dis-allow
the player Alice to break a minecraft:grass_block block
.
◉ Dis-allow to place any
blocks.
Use *
as the wildcard character, put it into the place_block
list.
◉ Ban the placement
of mushroom
in minecraft:the_end
dimension.
Issue:
-
/lp group default permission set fuji.anti_build.place_block.override.minecraft:red_mushroom false world=the_end
-
/lp group default permission set fuji.anti_build.place_block.override.minecraft:brown_mushroom false world=the_end
Configurations
The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.
- File Name:
config.json
- File Content:
Click to see the default
content...
{
"anti_types": {
"break_block": {
"enable": true,
"id": [
"minecraft:gold_block"
]
},
"place_block": {
"enable": true,
"id": [
"minecraft:tnt"
]
},
"interact_item": {
"enable": true,
"id": [
"minecraft:lava_bucket"
]
},
"interact_block": {
"enable": true,
"id": [
"minecraft:lever"
]
},
"interact_entity": {
"enable": true,
"id": [
"minecraft:villager"
]
},
"attack_entity": {
"enable": true,
"id": [
"minecraft:villager"
]
}
}
}