Universal Blocking — A Mod for Fine-Tuning Gameplay
Universal Blocking is a powerful tool that allows detailed control over Minecraft gameplay through a system of flags and tags.
🔧 Functionality and Commands
The mod introduces three main commands that open up new management possibilities:
- /tagall — applies tags to all inventory contents
- /tagitem — tags the item currently held by the player
- /ubr — performs backup restoration of configuration settings
🔨 Flag-Based Blocking System
Using special flags, various actions with items and blocks can be restricted:
- D — prevents dealing damage with item
- U — blocks usage when right-clicking
- I — disables interaction with block interface
- P — prevents block placement
- B — prohibits breaking blocks with this item
- A — blocks wearing armor or holding items in hands
- Z — completely removes items from inventory, containers, and as drops
- C — forbids item crafting
- T — hides items from creative mode tab
- Q — removes all previously set restrictions
- R — replaces blocks with air or specified alternatives
⚙️ Configuration Setup
For Forge Version
Configuration file: universalblocking-common.toml
# Universal Blocking Configuration
# Format: 'modid:items/blocks flags' or 'modid:tag flags'
# Supports wildcards: 'minecraft:iron_ UB', ':tools D', ':woo'
# Available flags:
# D Damage — prevents attack with item
# U Use — blocks item usage (RMB)
# I Interface — prevents interface interaction
# P Placement — doesn't allow block placement
# B Break — prevents block destruction
# A Armor — prevents armor equipping
# Z Delete — removes item from available sources
# C Craft — blocks crafting
# Q Unlock — removes all restrictions
# R Replace — changes block to air or specified
# T Creative — removes from creative inventory
Info_Usage = ""
Item_Blocked = [""]
Tag_Blocked = [""]
# R flag specifics:
# Default: R (replace with air)
# With block: R!minecraft:iron_block (replace specified)
# Examples:
# 'minecraft:stick D' — cannot attack with stick
# 'minecraft:fishing_rod U' — fishing rod use forbidden
# 'minecraft:diamond Z' — diamonds deleted everywhere
# 'minecraft:sand R' — sand replaced with air
# 'minecraft:dirt R!minecraft:gold_block' — dirt becomes gold blocks
# '*:swords D' — attack with any swords prohibited
Info_Examples = ""
# Replacement settings (R flag)
# Chunk scan radius 0-8 (0 = current chunk only)
R_Chunk_Radius = 1
# Blocking notifications
# true — enable alerts, false — disable
Show_Blocked_Messages = true
For Fabric Version
Configuration file: universalblocking-common.toml
[blocking]
Item_Blocked = [""]
Tag_Blocked = [""]
[messages]
Show_Blocked_Messages = true
[replace]
R_Chunk_Radius = 1
This tool is particularly useful for creating unique game conditions, server rules, and personalized gameplay. The flag system provides flexibility in setting Minecraft restrictions and capabilities.