Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
š² Twilight Inventory Lock
Protect the Twilight Forest from cheating items!
š Description
Twilight Inventory Lock is a server-side mod that prevents players from entering the Twilight Forest dimension with items from third-party mods. Complete the Twilight Forest objective honestly, using only vanilla gear!
Unlike simple filters, this mod performs a deep recursive scan of your inventory. Even if you hide prohibited items inside containers like Useful Backpacks, the portal will detect them and block entry.
⨠Features
š« Portal Entry Block: Instantly stops teleportation if prohibited items are detected.
š Deep Container Scanning: Advanced NBT/Component search that "looks inside" backpacks and bags. No more hiding items in sub-inventories!
āļø Fully Configurable: Easily whitelist your favorite mods using the config file.
š¦ Entity Protection: You can't bypass the lock by throwing items into the portal.
š¬ Detailed Feedback: Sends a clear list to the player showing exactly which items and mods are causing the block.
š§ Configuration
The mod generates a config file where you can define which Mod IDs are allowed.
File location: config/twilightinventorylock-server.toml
Default Whitelist:
minecraft ā vanilla items
twilightforest ā mod items
usefulbackpacks ā allowed containers
š® How does it work?
If you attempt to enter the portal with a prohibited item (even inside a backpack), you will see:
[Protection] Entry to the Twilight Forest is prohibited! Remove the following items from your inventory:
⢠Digital Miner (Mekanism)
⢠Iron Chest (SomeMod)
š¦ Requirements
Minecraft: 1.21.x (tested on 1.21.1)
Mod Loader: NeoForge
Dependencies: None (Twilight Forest is recommended for the full experience)
š License
MIT License ā feel free to use and modify in your modpacks!
Play fair and enjoy the adventure! š²āØ


