Strict Building Mode - Brian-Wuest/MC-Prefab GitHub Wiki

Strict Building Mode (1.21.1 and later)

This is a configuration option introduced to give Server Administrators more control over how buildings are generated in the world and what blocks are replaced, or in this case what blocks are NOT replaced.

This mode is OFF by default and the Server Administrator must enable it. Once enabled, all blocks except for the following cannot be overwritten by this mod's blueprints: Air, Lava, Water. The previously mentioned blocks would be the Vanilla blocks. If a mod replaces these blocks with their own variants for different dimensions or even for the regular dimensions, then those variants would not be allowed to be overwritten unless they are added to the overwritable blocks list.


VERY IMPORTANT NOTE

Strict Building Mode has NO EFFECT on players in CREATIVE mode!

This is intentional! These players are supposed to be creative and allowed to do what they need to do to change the world as their vision allows. If this not desired by the Server Administrator, they have to revoke Creative Mode to those players if they abuse their privileges.


Configuration Options

  • Enabled:
    • Determines whether or not Strict Building Mode is enabled.
  • Operators Can Bypass Restrictions:
    • Determines if server operators can bypass Strict Building Mode.
  • Overwritable Blocks:
    • The list of blocks which can be overwritten during building even when Strict Building Mode is Enabled.
    • Note: This list must contain the registered name of the block, not the English display name.
      • Examples:
        • minecraft:dirt
        • minecraft:stone
        • minecraft:oak_fence
        • minecraft:glowstone
        • minecraft:white_stained_glass
  • Overwritable Tags:
    • The list of block tags which can be overwritten during building even when Strict Building Mode is Enabled.
    • For a full list of Vanilla block tags, please see this page from the Minecraft WIKI: https://minecraft.fandom.com/wiki/Tag#Blocks
    • Note: This list must contain the registered name of the Tag, this includes the mod name (for Vanilla tags this would be minecraft).
      • Examples:
        • minecraft:mineable/shovel
        • minecraft:acacia_logs
        • minecraft:all_signs
        • minecraft:impermeable
          • Note: This is the various glass types, don't know why they didn't just name it that 🤷.

Blueprint GUI Changes

When Strict Building Mode is enabled, the Blueprint GUI will show a warning to the player to let them know about Strict Building Mode. They can still preview the Blueprint but if there are restricted blocks in the area where the building would go, they will get a message stating that the building could not be generated and where the offending Block is and what the Block is.

Note: These changes to the UI and the Error Message will *NOT show when the player is in Creative Mode.

Example of UI-Message:

Example of Error Message when they cannot create the building: