-
Command Arguments Added:
- The
customgivecommand now accepts two arguments:block_or_item: Expects a string representing the block or item name.amount: Expects an integer representing the amount of the custom item to give.
- This change allows for more flexibility in specifying the custom item and its quantity.
- The
-
Item Mapping Method Added:
- Added
getItemByNamemethod to map item names (block_or_item) to their respectiveIteminstances. - This method takes the lowercase item name as input and returns the corresponding
Itemobject. - The mapping includes several default items like "stone," "diamond," "iron_ingot," and others.
- Added
-
Usage of Block/Item Name and Amount:
- The
giveCustomItemFromClipboardmethod now takesblockOrItemandamountparameters to determine which item to create and how many to give.
- The
-
Error Message Update:
- In case of invalid NBT data or an unrecognized block/item name, the error message has been updated to "Invalid NBT data or block/item name."
-
ItemStack Amount:
- The
createItemStackFromNBTmethod now sets the amount of theItemStackbased on theamountparameter passed to it.
- The
-
Expanded Item Mapping:
- The
getItemByNamemethod includes a switch-case block that covers a variety of common items. You can extend this mapping as needed to support more items.
- The
These changes enhance the functionality and configurability of the customgive command, making it more versatile for giving custom items in the game.
CustomGive Mod v1.0.2 - Final Configuration Fixes
The CustomGive mod is a utility mod for Minecraft, designed to enhance your creative gameplay experience. This initial release brings you the ability to quickly obtain custom items with specific NBT data directly from your clipboard.
Key Features:
/customgivecommand: Simply execute this command to instantly receive a custom stone block in your inventory.- Clipboard Integration: The mod seamlessly integrates with your system clipboard, allowing you to specify custom NBT data for the item.
Compatibility:
- Fabric Version: 1.20.1 (Tested and verified)
- Minecraft Version: Compatible with Minecraft versions that support Fabric Loader.
Instructions:
- Install Fabric Loader: Make sure you have Fabric Loader installed for your Minecraft version.
- Install CustomGive Mod: Download and place the CustomGive mod JAR file in your Minecraft mods folder.
- Launch Minecraft: Start Minecraft with the Fabric profile.
- Obtain Custom Item: In Creative mode, run the
/customgivecommand to instantly receive a stone block with NBT data copied from your clipboard.
Your feedback and suggestions are greatly appreciated. Enjoy customizing your Minecraft experience with the CustomGive mod!
For more information and updates, please visit the GitHub repository.



