Anyone have a KubeJS example of a Create Mechanical Extruder recipe for Forge 1.20.1?

I used the examples on the wiki, but it doesn't seem to work. I get an error in my KubeJS log that says "Error in 'ServerEvents.recipes': ReferenceError: "BlockPredicate" is not defined."
ServerEvents.recipes(event => {
event.recipes.create_mechanical_extruder.extruding(
Item.of('minecraft:deepslate'),
[BlockPredicate.of('minecraft:honey'),BlockPredicate.of('minecraft:water')]
)
})
ServerEvents.recipes(event => {
event.recipes.create_mechanical_extruder.extruding(
Item.of('minecraft:deepslate'),
[BlockPredicate.of('minecraft:honey'),BlockPredicate.of('minecraft:water')]
)
})
Would anyone mind showing me a working version of their's so I can compare?
1 Reply
Iver ☭
Iver ☭3w ago
event.recipes.create_mechanical_extruder.extruding( Item.of('alexscaves:block_of_chocolate'), [ Fluid.of('create:chocolate'), Fluid.of('create:chocolate') ] ).catalyst('minecraft:blue_ice') BlockPredicate.of is for blocks, fluid.of for fluids, the error is bcs kjs is trying to found the block of water for example

Did you find this page helpful?