Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details

PreventBuild
Adds control to prevent the player from performing certain actions that are set in configs. Configs, in turn, have a very flexible structure that allows you to build complex logical conditions describing what actions the mod should prevent.
Original purpose of creating this mod was enhancing experience of hand-building map-arts without using any printers and easy-place mode. But now it's more than just preventing placing and breaking: you can prevent any right- or left-click actions, just make sure there is a suitable condition.
This mod is just cancelling the player's actions, so it's fully client-side.
How to use the mod
This is almost necessarily to check Wiki to understand how to write a config, because there is no other way to write it except by hand.
There are a few files in config/preventbuild/:
conditions/
- contains config .cfg filescondition_configs.json
- defines which configurations are active by its individual nameore_dictionaries.json
- defines custom ore dictionary lists for using in configs
(For developers) Also you can find out how to create and register your own conditions that you will be able to use in the same config files.
Commands
/pb config list
- display a list of configs with their status/pb config switch
<name> - enable/disable config by name/pb config update
- reload all configs
Contact
- GitHub: https://github.com/Redheris/PreventBuild/issues
- Discord: @redheris
Note
Well, this is my first relatively serious mod and especially the first one for public use. Thanks for visiting :)