custom potions in recipe with KubeJS?

Problem

I wanna make a potion crafted in the crafting grid but it keeps giving me errors. is there any way to fix this?

ServerEvents.recipes(event => {
event.shapeless(
  Item.of('minecraft:potion', "{CustomPotionColor:16711680,CustomPotionEffects:[{Amplifier:1,Duration:0,Id:6}],display:{Name:'[\"\",{\"text\":\"Lesser Healing Potion\",\"italic\":false}]'}}")
  [
    Item.of('minecraft:potion', {Potion: "minecraft:water"}),
    'minecraft:apple',
    'minecraft:dandelion',
    'minecraft:glow_lichen'
  ]
)
})

Posted Dec 1, 2025, 6:51 PM UTC

22
Loading comments…