
CustomGive
`CustomGive Mod` is a Minecraft utility that lets you quickly obtain custom items with specific NBT data from your clipboard. Simply use the `/customgive` command to receive the custom stone block in Creative mode.
524
3
Список изменений
-
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-fabric-1.0.3.jar(44.95 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.3
Загрузчики
Fabric
Версии игры
1.20.1–1.20.2
Загрузок
412
Дата публикации
2 г. назад
