Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Blocking mobs, items and blocks.
The mod has a configuration file - universalblocking-common.toml, which contains instructions.
The mod does not remove the visibility of the ability to craft an item from JEI EMI REI.
You can block:
- Mobs
- Blocks
- Items
- Interactions
- Total number of mobs in the world
- Limit mob spawns to a certain amount in the world
Disable or restrict the appearance of any entity:
List of mobs to block or limit spawning. Format: 'minecraft:cow' or 'minecraft:cow 5' (limit to 5 cows). Mob_Blocked = ["minecraft:cow", "minecraft:pig 7"] - This will stop cows from spawning and make only 7 pigs per world
Global limit for all mobs in the world. Set to -1 to disable. allsm = 100 - only 100 any entities per world
Disabling items, blocks, their functionality and use:
List of items to block. Format: 'minecraft:wooden_sword' - Full blocked.
Flags: DUIPBAHYTZQR (R:another_block). D-Damage U-Use I-Interface P-Placement B-Break A-Armor H-Craft Z-Delete Y-DropRemove T- Removing from the creative tab. Q-Unlock for tag R - Removes a block from the world. (R:minecraft:dirt or R:dirt - Replaces the block with dirt).
Format: 'minecraft:chest DYUIPBAHZQRT', 'minecraft:wooden_sword BDYU'.
Item_Blocked = ["minecraft:wooden_sword", "minecraft:wooden_axe TDB"]
Format: 'minecraft:swords DUIPBAHZRT', 'minecraft:banners'.
Tag_Blocked = ["minecraft:swords D", "minecraft:axes DHB"]
I was inspired by the following mods:
Item Obliterator - There are too many fields in the config, I don't like it.
Too Many Entities - a mod that works crookedly, I needed such a mod to stabilize the TPS, some mods can spawn a bunch of zombies, which lags a lot.
You Shall Not Spawn! - Blocking mobs, I've done a simple lockdown.
(I used all these mods, but now I have my own mod that replaces these mods and without unnecessary libraries or incompatibilities)
Mod config:
#Blocked Mobs and Limits
#List of mobs to block or limit spawning.
#Format: 'mob_id' or 'mob_id limit', e.g., 'minecraft:cow 5' limits cows to 5 per chunk.
#Leave empty to disable mob blocking.
Mob_Blocked = [""]
#Global limit for all mobs in the world.
#Set to -1 to disable the global limit, otherwise specify a number (e.g., 100).
#Range: > -1
allsm = -1
#Blocked Items and Blocks
#List of items/blocks to block with specific behaviors.
#Format: 'item_id flags', where flags define the blocking behavior.
#Wildcards are supported:
# - 'minecraft:iron_*' blocks all items starting with 'iron_'.
# - '*:tools' blocks all items with the 'tools' tag from any mod.
# - '*:iron_*' blocks all items starting with 'iron_' from any mod.
#Use 'minecraft:*' or '*:*' to block all items from a mod or globally, but 'R' flag is not applied by default for wildcards.
#Flags:
# D - Damage: Prevents attack with an item.
# U - Use: Prevents use of an item (right click).
# I - Interface: Prevents interactions with a block's interface (e.g., chest, workbench).
# P - Placement: Prevents block placement.
# B - Break: Prevents the item from breaking blocks.
# A - Armor: Prevents wearing armor.
# Z - Delete item: Removes an item from inventory and containers.
# Y - Drop Removal: Instantly removes dropped items near players.
# H - NoCraft: Prevents item crafting.
# Q - Unlock (item tag): Removes any blocking of a single item from a tag.
# R - Replace: Replaces a block with air or the specified block.
# T - Creative Tab: Removes the item from creative tabs.
#Use the 'R' flag to remove a block, replace it with air. If replacing with another block, use 'R:<block>'.
#Examples:
# 'minecraft:stick D' - Cannot attack with this item.
# 'minecraft:fishing_rod U' - Cannot use this item (right click).
# 'minecraft:chest I' - Cannot open the interface (GUI).
# 'minecraft:grass_block P' - Cannot place this block.
# 'minecraft:iron_axe B' - Cannot break with this item.
# 'minecraft:iron_chestplate A' - Cannot wear armor.
# 'minecraft:crafting_table H' - Cannot craft this item.
# 'minecraft:diamond Z' - Item is removed from inventories and containers.
# 'minecraft:diamond Y' - Dropped diamonds are instantly removed.
# 'minecraft:stone Q' - Unlocks this item if locked in a tag.
# 'minecraft:sand R' - Block is replaced with air.
# 'minecraft:dirt R:minecraft:gold_block' - Block is replaced with a gold block.
# 'minecraft:cobblestone D R:minecraft:iron_block' - Cannot attack with item, and placed block is replaced with iron block.
# 'minecraft:diamond T' - Diamond is removed from creative tabs.
# 'minecraft:iron_* T' - All items starting with 'iron_' are removed from creative tabs.
# '*:tools T' - All tools from any mod are removed from creative tabs.
# '*:iron_* T' - All items starting with 'iron_' from any mod are removed from creative tabs.
#If no flags are specified, all flags (including T but excluding R for wildcards) are applied.
Item_Blocked = [""]
#Blocked Tags
#List of tags to block with specific behaviors.
#Format: 'tag_id flags', flags work the same as Item_Blocked.
#Wildcards are supported:
# - 'minecraft:iron_*' blocks all tags starting with 'iron_'.
# - '*:tools' blocks all items with the 'tools' tag from any mod.
# - '*:iron_*' blocks all tags starting with 'iron_' from any mod.
#Use 'minecraft:*' or '*:*' to block all tags from a mod or globally, but 'R' flag is not applied by default for wildcards.
#Uses the same flags as Item_Blocked: D, U, I, P, B, A, Z, H, R, T.
#Examples:
# 'minecraft:swords D' - Cannot attack with any swords.
# 'minecraft:piglin_loved U' - Cannot use items loved by piglins (e.g., gold ingots).
# 'minecraft:chests I' - Cannot interact with any chests.
# 'minecraft:planks P' - Cannot place any planks.
# 'minecraft:pickaxes B' - Cannot break blocks with any pickaxes.
# 'minecraft:helmets A' - Cannot wear any helmets.
# 'minecraft:anvil H' - Cannot craft any anvils.
# 'minecraft:wool Z' - Removes all wool items.
# 'minecraft:logs Y' - All logs dropped near players are instantly removed.
# 'minecraft:banners R' - All banners are replaced with air.
# 'minecraft:flowers R:minecraft:dirt' - All flowers are replaced with dirt.
# 'minecraft:iron_block H R:minecraft:gold_block' - Cannot craft iron block, and iron blocks are replaced with gold blocks.
# 'minecraft:tools T' - All tools are removed from creative tabs.
# 'forge:tools T' - All items with the forge:tools tag are removed from creative tabs.
# '*:tools T' - All items with the tools tag from any mod are removed from creative tabs.
# '*:iron_* T' - All tags starting with 'iron_' from any mod have items removed from creative tabs.
#If no flags are specified, all flags (including T but excluding R for wildcards) are applied.
Tag_Blocked = [""]
#Messages
#Show messages when an item or block is blocked.
#Set to true to enable messages, false to disable them.
Show_Blocked_Messages = true
Fabric mod config:
{
"mobBlocked": [],
"allMobsLimit": -1,
"itemBlocked": [],
"tagBlocked": [],
"showBlockedMessages": true
}
We can arrange to order a mod at Discord, my nickname is Gvoper