[1.18.2] .requiredBonks function doesn't work (KubeJS)
Cenivell opened this issue ยท 0 comments
Error: Error occurred while handling event 'recipes': TypeError: Cannot find function requiredBonks in object create_mechanical_extruder:kjs_9kucouqqvrxwytmck0oti1xhv[create_mechanical_extruder:extruding]. (server_scripts:script.js#15)
My code:
onEvent('recipes', event => {
// Change recipes here
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:deepslate'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:deepslate').requiredBonks(10);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:cobbled_deepslate'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:cobbled_deepslate').requiredBonks(10);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:granite'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:granite').requiredBonks(5);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:diorite'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:diorite').requiredBonks(5);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:dripstone'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:dripstone').requiredBonks(5);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:calcite'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:calcite').requiredBonks(3);
event.recipes.createMechanicalExtruderExtruding(Item.of('minecraft:tuff'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:tuff').requiredBonks(3);
event.recipes.createMechanicalExtruderExtruding(Item.of('create:limestone'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('create:limestone').requiredBonks(2);
})