2008Choco / Alchema

Spigot plugin. In-world cauldron crafting, witchcraft and sorcery

Home Page:https://www.spigotmc.org/resources/alchema.87078/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow Custom Names and Model Data for brewed items

ArcticRaven opened this issue · comments

Describe the new feature
Add ability to add custom item names and attach model data to the output items

How will it work?
add a "Name" and "CustomModelData" option to the Json files for the items

Does this require integration with another plugin?
I would really hope not :p

This is already possible :) The result can accept pretty much any NBT though the format is undocumented. I should really write an example item in a JSON file for reference. As for your two requests:

{
    ...
    "result": {
        "item": "minecraft:diamond_sword",
        "name": "&cCustom Sword",
        "custom_model_data": 10
    }
    ...
}

sweet :dab: