Block Whitelist
Restricting Block Placement by Dimension
The Block Whitelist mod enables control over which blocks players can place in different Minecraft dimensions. This is an ideal solution for servers that require limiting construction to specific materials or preventing the use of inappropriate blocks in specific locations.
Configuration Setup
All parameters are configured through the configuration file located at: config/blockwhitelist.json. Upon first launch, an example configuration file is automatically generated:
[
{
"dimension": 0,
"message": {
"text": "Example config/blockwhitelist.json loaded!"
},
"whitelist": [
"minecraft:grass",
"minecraft:stone:{variant=granite}",
"minecraft:log",
"buildcraft:*"
]
},
{
"dimension": -1,
"blacklist": []
}
]
Functional Capabilities
The system supports both whitelists (allowed blocks) and blacklists (prohibited blocks). When a player attempts to place a block not included in the allowed list, a corresponding message is displayed. Text component formatting is supported for customizing notifications.
The configuration allows setting individual rules for each dimension, providing flexibility in managing available building materials.