Compatibility
Minecraft: Java Edition
1.20.1–1.20.2
Platforms
Fabric
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed MIT
Published last year
Updated last year
Changelog
-
Command Arguments Added:
- The
customgive
command 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
getItemByName
method to map item names (block_or_item) to their respectiveItem
instances. - This method takes the lowercase item name as input and returns the corresponding
Item
object. - The mapping includes several default items like "stone," "diamond," "iron_ingot," and others.
- Added
-
Usage of Block/Item Name and Amount:
- The
giveCustomItemFromClipboard
method now takesblockOrItem
andamount
parameters 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
createItemStackFromNBT
method now sets the amount of theItemStack
based on theamount
parameter passed to it.
- The
-
Expanded Item Mapping:
- The
getItemByName
method 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.
Files
Metadata
Release channel
ReleaseVersion number
1.0.3Loaders
Game versions
1.20.1–1.20.2Downloads
251Publication date
October 7, 2023 at 12:57 AMPublisher
LianJordaan
Owner