#Create Mechanical Crafting KubeJS 6.0

5 messages · Page 1 of 1 (latest)

scenic narwhal
#

How to disable crafting some items, except Mechanical Crafting from Create, using KubeJS 6.0 on 1.19.2 MC Version?

boreal heathBOT
#

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

opaque elmBOT
#

You can add, remove and modify recipes with KubeJS, and the wiki has a page on that!

sonic dove
#

??filter_logic

opaque elmBOT
# sonic dove ??filter_logic

Recipe filters can combine other filers in different ways to enable not, and and or logic.

  • {not: {a: b}} // not filter, invert logic
  • {a: b, c: d} // and filter, both must match
  • [{a: b}, {c: d}] // or filter, 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'}})