Right Click On Entity Transforms Item - benbenlaw/InWorldRecipes GitHub Wiki
Right Click On Entity Transforms Item
Right clicking on an entiy transforms held item. Example JSON below shows right clicking a Ender Dragon with 12 white wool to create a Water Bottle and other items. Additional customization fields shown below.
{
"type": "inworldrecipes:right_click_on_entity_transforms_item",
"held_item":
{
"item": "minecraft:white_wool",
"count": 12
}
,
"entity": "minecraft:ender_dragon",
"damage_held_item": true,
"consume_held_item": true,
"destroy_entity": true,
"pop_item": true,
"results": [
{
"item": {
"count": 2,
"id": "minecraft:acacia_log"
}
},
{
"chance": 0.2,
"item": {
"count": 1,
"id": "minecraft:acacia_sapling"
}
},
{
"chance": 0.1,
"item": {
"count": 1,
"id": "minecraft:potion",
"components": {
"minecraft:potion_contents": {
"potion": "minecraft:water"
}
},
}
}
]
}