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: DUIPBAHZQR (R:another_block). D-Damage U-Use I-Interface P-Placement B-Break A-Armor H-Craft Z-Delete 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 DUIPBAHZQR', 'minecraft:wooden_sword BDU'.
Item_Blocked = ["minecraft:wooden_sword", "minecraft:wooden_axe DB"]
Format: 'minecraft:swords DUIPBAHZR', '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.
#Flags:
# D - Damage: Prevents attack with an item.
# U - Use: Prevents use of an item (right click).
# I - Interface: Prevents interactions with a block, with an interface (for example, a chest, a 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.
# H - NoСraft: 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.
#Use the "R" flag to remove a block, replace it with air. If you are replacing it with another block, then put a space before the "R:<block>" flag to replace it.
#Examples:
# 'minecraft:stick D' - You can no longer attack with this item.
# 'minecraft:fishing_rod U' - You can no longer use this item (right click).
# 'minecraft:chest I' - You cannot open the interface (GUI).
# 'minecraft:grass_block P' - You cannot place this block.
# 'minecraft:iron_axe B' - You cannot break with this item.
# 'minecraft:iron_chestplate A' - You can't wear armor.
# 'minecraft:crafting_table H' - You cannot craft this item.
# 'minecraft:diamond Z' - The item is removed from inventories and containers.
# 'minecraft:stone Q' - You can unlock this item if it is locked in a tag.
# 'minecraft:sand R' - The block is replaced with air.
# 'minecraft:dirt R:minecraft:gold_block' - The block is replaced with a gold block.
# 'minecraft:cobblestone D R:minecraft:iron_block' - You cannot attack with an item, and the placed block will be replaced with an iron block.
#If you leave a block or item without flags, all default flags will be applied. Even deleting from inventories and deleting the block from the world.
Item_Blocked = [""]
#Blocked Tags
#List of tags to block with specific behaviors.
#Format: 'tag_id flags',flags work the same way as it was written earlier, and also complete blocking if you do not write flags.
#Uses the same flags as Item_Blocked: D, U, I, P, B, A, Z, H, R.
#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: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' - You can't craft an iron block, also iron blocks are replaced with gold blocks.
#If there are no flags, a full block will be 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
We can arrange to order a mod at discord, my nickname is Gvoper.
Please support me: OZON Bank card 2204320404250336