Village Protection for Areas
X00LA opened this issue ยท 0 comments
Information
Minecraft version: 1.21.x
Modloader: Fabric
Mod name: Areas or new mod (Village Protect) ๐ค
Feature description
Could you integrate a feature into Areas where we could toggle in the config if we want to protect the Villages from griefing in the predefined radius?
It should protect all blocks and containers as well as the villagers.
A list of containers in the configuration where we could define which containers and/or blocks the player can interact/break with would also be nice.
Something like this:
// should Areas protect your villages from griefing
// this will protect all blocks and villagers from players
// by default this feature is off
areas_protect: false,
// define what containers are interactable and what not
interactable_containers: {
minecraft:chest: true,
minecraft:barrel: true,
minecraft:workbench: false,
and so on...
}
// define what blocks are breakable
// insert here the blocks that can be broken by players divided by comma
// [minecraft:dirt, minecraft:stone]
breakable_blocks: []
Admins should always be able to interact with all blocks and containers.
Maybe adding some permissions could help to define who and what can be done by the permission holder.
- areas.protect.admin = admin permission
- areas.protect.builder = can break and add blocks, interact with and place containers, can't harm villagers
- areas.protect.interact = gives the player the right to interact with containers and villagers
That's all I can think of at the moment.
Thnx