#Create Mechanical Crafting KubeJS 6.0
5 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
You can add, remove and modify recipes with KubeJS, and the wiki has a page on that!
??filter_logic
Recipe filters can combine other filers in different ways to enable not, and and or logic.
- {not: {a: b}} //
notfilter, invert logic - {a: b, c: d} //
andfilter, both must match - [{a: b}, {c: d}] //
orfilter, either must match
Examples are:
Removes every recipe from the mod with the id MOD that has an output of the item minecraft:beacon.
event.remove({mod: "MOD", output: "minecraft:beacon"})
Removes every recipe except the ones from the mod with the id MODID.
event.remove({not: {mod: "MODID"}})
These logic components can also be combined:
event.remove({output: 'modID:itemID', not: { id: 'some:id'}})