1.0.0
Compatibility
Changes
ItemContainer
ItemContainer is a lightweight Paper 1.21 plugin that prevents specific items from being placed into certain containers.
Define rules in config.yml – for example, stop players from putting Dragon Eggs into Ender Chests, or prevent Shulker Box nesting.
Features
- Config‑driven – add or remove restrictions without touching code
- Shift‑click, drag, number‑key & normal clicks – all transfer methods are blocked
- Custom messages – per‑rule cancel message shown to the player
- Reload command –
/itemcontainer reloadapplies changes instantly (OP only) - Lightweight – zero overhead when no rules match
Example Config
rules:
DRAGON_EGG:
containers:
- ENDER_CHEST
message: "§cYou cannot place a Dragon Egg inside an Ender Chest!"
SHULKER_BOX:
containers:
- SHULKER_BOX
message: "§cShulker boxes cannot be nested!"
Commands
| Command | Permission | Description |
|---|---|---|
/itemcontainer reload |
itemcontainer.reload |
Reloads the config file |
Requirements
- Paper 1.21 (or fork)
- Java 21
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:TrB45aU9:41U4P2aF"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:TrB45aU9:41U4P2aF"
}

