A server-side mod for Minecraft Forge 1.20.1 that automatically collects and stores all dropped items in an accessible dustbin.
/ljt - Open dustbin interface/ljt <page> - Jump directly to specified page/ljt reload - Reload configuration (requires admin permission)clean-to-dustbin-x.x.x.jar filemods folder/ljt command in-game/ljt <page> to jump directly to the specified page/ljt 3 jumps to page 3Configuration file is located at serverconfig/cleantodustbin-server.toml, you can customize the mod behavior through the following options:
| Option | Type | Default | Description |
|---|---|---|---|
CLEANUP_INTERVAL |
Integer | 3600 | Cleanup interval in seconds |
DUSTBIN_PAGES |
Integer | 5 | Number of dustbin pages |
REMINDER_MESSAGES |
String List | Built-in messages | Reminder messages before cleanup |
REMINDER_MESSAGES = [
"&aItem cleanup will start in 1 minute!",
"&aItem cleanup will start in 30 seconds!",
"&aItem cleanup will start in 10 seconds!",
"&aItem cleanup will start in 9 seconds!",
"&aItem cleanup will start in 8 seconds!",
"&aItem cleanup will start in 7 seconds!",
"&aItem cleanup will start in 6 seconds!",
"&aItem cleanup will start in 5 seconds!",
"&aItem cleanup will start in 4 seconds!",
"&aItem cleanup will start in 3 seconds!",
"&aItem cleanup will start in 2 seconds!",
"&aItem cleanup will start in 1 second!"
]
| Command | Permission | Description |
|---|---|---|
/ljt |
All players | Open dustbin interface |
/ljt <page> |
All players | Jump directly to specified page |
/ljt reload |
Admin | Reload configuration file |
┌─────────────────────────────────────────────────┐
│ │
│ │
│ │
│ │
│ │
│ │
│ [Red Glass] [Sign] [Red Glass] │
│ [Prev Page] [Page] [Next Page] │
└─────────────────────────────────────────────────┘
clean-to-dustbin/
├── src/main/java/com/example/cleantodustbin/
│ ├── CleanToDustbin.java # Main mod class
│ ├── config/ModConfig.java # Configuration class
│ ├── command/DustbinCommand.java # Command handling
│ ├── cleanup/CleanupScheduler.java # Cleanup scheduler
│ └── dustbin/ # Dustbin related
│ ├── DustbinManager.java # Dustbin management
│ ├── DustbinInventory.java # Dustbin inventory
│ └── DustbinContainer.java # Dustbin container
└── build.gradle # Gradle configuration
/ljt reload command to reload configuration after modificationMIT License
If you have any issues or suggestions, please submit an Issue or Pull Request.
Enjoy a clean Minecraft world! 🎉