#How to keep data for certain recipes?

11 messages · Page 1 of 1 (latest)

last wigeon
#

I'm trying to change the apotheosis potion charm recipe. It draws data from the potion used to craft it to give you the effect. Ex: Using and extended strength will give that effect. Speed 2 will give you speed 2 ect.
Just having the recipe use "minecraft:potion" causes this (image attached). Anyone know how to fix this. I already went to the apotheosis discord and they told me to come here

indigo phoenixBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

urban olive
#

are you actually able to remove that recipe?

#

it should be simple enough to make the output have the data of some of the input, however it will still show in jei as invalid

#

it would be better to see how apothesiss adds the recipe in the first place and see if you can modify that (namely if its a recipe json use that format)

last wigeon
#

{
"type": "apotheosis:potion_charm",
"conditions": [{
"type": "apotheosis:module",
"module": "potion"
}],
"recipe": [
[{
"item": "minecraft:blaze_powder"
},
{
"item": "minecraft:blaze_powder"
},
{
"item": "minecraft:blaze_powder"
}
],
[
"potion",
"potion",
"potion"
],
[{
"item": "minecraft:blaze_powder"
},
{
"item": "minecraft:blaze_powder"
},
{
"item": "minecraft:blaze_powder"
}
]
]
}
This is the json documentation to my knowledge

The image contains the normal recipie on top and mine on the bottom when i try to add this as a custom recipie nothing comes of it

urban olive
#

how are you adding it

last wigeon
#

via a normal crafting recipie as the one i sent doesn't do anything

urban olive
#

add it as event.custom using a json like you showed

#
ServerEvents.recipes(event => {
  event.custom({
    type: "apotheosis:potion_charm",
    recipe: [
        [{
                item: "minecraft:blaze_powder"
            },
            {
                item: "minecraft:blaze_powder"
            },
            {
                item: "minecraft:blaze_powder"
            }
        ],
        [
            "potion",
            "potion",
            "potion"
        ],
        [{
                item: "minecraft:blaze_powder"
            },
            {
                item: "minecraft:blaze_powder"
            },
            {
                item: "minecraft:blaze_powder"
            }
        ]
    ]
  })
})

smthn like this

last wigeon
#

Thanks So much! it works