Structure Protection Utilities

Control how players can interact with structures

Structure Protection Utilities gives modpack creators fine-grained control over how players can interact with individual structures types.

Features

With SPU, you can create rules for individual or multiple vanilla, and modded structures that can control the following ways the player interacts with structures:

  1. Whether or not block breaking is allowed and which blocks can or cannot be broken
  2. Whether or not to apply mining speed penalties for blocks that are part of the structure and which blocks to apply them to
  3. Whether or not the structure is affected by explosions and which blocks are affected or immune
  4. Whether or not the structure is affected by pistons and which blocks are affected or immune
  5. Whether or not to apply status effects to the player while they are in the structure, which status effects to apply, and what level to apply them at
  6. Prevent players from opening chests/barrels generated in the structure (supports Lootr and modded chest variants as well)
  7. What the conditions are, if any, to remove the protections on a structure (open a certain amount of chests, kill a specific mob, destroy all of a certain block, etc)

Only blocks that were actually placed during structure generation are affected by these rules. Ordinary terrain and player-placed blocks are unaffected by these protection rules.

All fields that require listing structure, block, or entity IDs support regular expressions, allowing for easy inclusion or exclusion of entire sets of structures, blocks, or entities. All such fields also support both vanilla and modded structures, blocks, or entities.

For an example of the rule syntax, look in the config file, which will be generated upon loading the game with the mod installed.

Additional Notes

This mod is required on both the client and server side, in order to have the client's mining animation (the cracks that show up when breaking a block) to display properly.

I plan to port this mod to NeoForge 1.21.1 and Fabric 1.21.1 in the near future, so stay tuned if you play on those versions and loaders.

Structure Protection Utilities Team

profile avatar
  • 11
    Projects
  • 391
    Downloads

More from AshayasnaView all