Inventory Duplicator

About

InventoryDuplicator is a Minecraft Fabric mod for version *.21.11 that adds a /dup command allowing players with permission level 2 or higher to duplicate items held in their main hand. The mod creates an exact copy of the item stack, attempts to insert it into the player's inventory, and automatically drops it on the ground if inventory space is unavailable. Users receive clear visual feedback through colored chat messages confirming successful duplication or notifying them when their hand is empty. The mod registers the command through Fabric's CommandRegistrationCallback API and handles errors gracefully, ensuring a smooth user experience.