Unbreakables
This mod offers a flexible rules system for controlling block destruction capabilities in Minecraft. Create detailed conditions and set additional requirements - for example, spending experience points or specific items to break protected blocks. Important: by default, the mod does not activate any block protection rules. Configuration via settings files or enabling pre-made rule sets is required for functionality.
Main Features
- Preventing destruction of specific blocks when set conditions are met
- Additional requirements for breaking protected blocks - payment with experience or items (cost display functionality is planned for future updates)
- Built-in support for protecting generated waystones from the Waystones modification (activated through rule set configuration)
Configuration and Usage
Full functionality requires configuring the mod through settings files or enabling pre-configured rule sets. Modification and datapack developers can create custom rule sets through configuration files.
Enabling protection for generated waystones through the default rule set:
rulesets = [ "waystones:generated_waystones" ]
Creating a custom rule for protecting waystones:
rules = [ "[is_tag(waystones:waystones), is_not_state(origin, player)] refuse($chat.waystones.cannot_break_waystone)" ]
Examples of other custom rules:
rules = [ "[is_in_dimension(minecraft:the_nether)] refuse(You cannot break blocks in the Nether)", "[is_block(minecraft:dirt)] refuse(You cannot break dirt)", "[is_state(lit, true)] refuse(You cannot break lit furnaces)" ]
Example of a datapack rule set (included in Waystones):
{
"rules": [
"[is_tag(waystones:waystones), is_not_state(origin, player)] refuse($chat.waystones.cannot_break_waystone)"
]
}
Rule sets from datapacks must be additionally activated through the corresponding configuration option.
The Balm library is also required for using this mod.