#Not able to remove shapeless crafting recipe only from the create mod mixer

15 messages · Page 1 of 1 (latest)

grave robin
#

ServerEvents.recipes(event => {

for (const item of biomeswevegoneWoods) {
    event.remove({ output: `biomeswevegone:${item}_planks` , mod: 'create' })
}

for (const item of vanillaWoods) {
    event.remove({ output: `minecraft:${item}_planks` , mod: 'create' })
}

});

Kubejs gives me no errors, however the planks can still be crafted using the create mod mixer, anyone have any ideas about how it could be removed?

little shoalBOT
#

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

steady compass
#

Are the planks recipes in the mixer actually shapeless recipes?

#

In order for Create to not generate an automated shapeless recipe:

  • Remove the recipe
  • Add it again, but with an ID ending with _manual_only
#

Also, specifically for Rhino, the KubeJS' JS runtime, for (const variable of iterable) can lead to bugs, use for (let variable of iterable) instead

grave robin
elfin blazeBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

steady compass
#

Then add your desired recipe, but after the shapeless recipe chain id.

event.shapeless(
  Item.of('minecraft:dandelion', 3), // arg 1: output
  [
    'minecraft:bone_meal',
    'minecraft:yellow_dye',            // arg 2: the array of inputs
    '3x minecraft:ender_pearl'
  ]
).id("kubejs:dandelion_manual_only")
grave robin
#

i was asking cuz i did something similar that didnt work

#

imma go over it again

#

yeah it works i dunno what i messed up earlier

#

thanks @steady compass u a real one