Structure Restrictions
by Xires87
Structure Restrictions changes what players can do inside generated structures, such as which blocks they can break or place and which status effects apply there.
What it does
Structure Restrictions lets a datapack alter gameplay inside structures. Breaking and placing blocks can be limited there, status effects can be disabled while a player is inside, and the mod stores inactive effects so their inventory icons are shown transparent. Structures are ticked once every few seconds, and only when at least one player is inside. Milk buckets remove structure effects, as in vanilla.
Blocks placed by a player receive a player property flag, which other mods and datapacks can read. Some blocks cannot receive that property because of a block property limit, and some, such as pistons, can change its value in unintended ways. Structure detection delay has also been abused in some cases, so server owners should test their datapacks before relying on the restrictions.
The mod is built on Fabric and is published for 1.20 and 1.20.1, with 0.0.1+1.20 for 1.20.1 as the only file, released on 2025-06-11 on the beta channel. It runs on client and server and must be installed on both sides. The code is open source under the MIT License, and the source and issue tracker are public.
Key features
Datapack block rules
Breaking and placing of blocks inside structures can be restricted through datapacks.
Status effect restriction
Status effects can be disabled within structures, and inactive effects appear transparent in the inventory.
Placed-by property
Blocks placed by players are marked with a player property that other code can check.
Milk bucket removal
Milk buckets clear structure effects, so players can leave a restricted state in the usual way.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Datapack authors and server owners who want rules that depend on structures. The mod is useful to anyone who needs to know whether a block was placed by a player.
How it compares
Configurable Mining Delay is a Fabric mod for client-side only use, released under the MIT License and published for 1.19 – 26.3. BedLock is a Fabric mod for 1.20.1 that runs on client and server and is released under the MIT License. StructureBlock is a server-side only Fabric mod for 1.20.1 – 1.21.6, also under the MIT License.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Structure Restrictions | Fabric | 1.20 – 1.20.1 | Client and server | 2025-06-11 |
| Configurable Mining Delay | Fabric | 1.19 – 26.3 | Client-side only | 2026-03-25 |
| BedLock | Fabric | 1.20.1 | Client and server | 2025-01-21 |
| StructureBlock | Fabric | 1.20.1 – 1.21.6 | Server-side only | 2025-09-04 |
Questions
Does Structure Restrictions need to be installed on the server?
Which game versions does Structure Restrictions support?
Which loader is used by Structure Restrictions?
In the catalog
Structure Restrictions is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 34,764 mods support Minecraft 1.20.1.
More from Xires87
Similar mods
What the author says
Allows modification of some gameplay aspects within structures (f.e. mining/placing blocks) via datapacks Mod is required on both server and client.
Official listing
- Modrinth page
- modrinth.com/mod/structure-restrictions
- Owner
- Xires87
- Published
- 2025-06-11
- Updated on Modrinth
- 2025-06-11
- Facts verified
- 2026-10-15