#KubeJS : Specifying Item by its NBT data for recipes

7 messages · Page 1 of 1 (latest)

deft lava
#

I am using KubeJS: Create and trying to add some custom recipes regarding Timeless and Classic Zero.
In the mod all guns are one item - ModernKineticWeapon with different NBT data.
I am able to make the Output of the recipe the desired gun - but i cannot filter the inputs properly

(no matter how much i specify the tags with Item.of ANY gun fits the recipe, instead of the desired one)

onyx atlasBOT
#

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

deep cobalt
#

add .strongNBT() after the closing brackket of Item.of()

deft lava
#

How does .strongNBT() work? For example if i want one property to be fixed (gun type)
But i don't care about others? (Ammo count etc)
I am testing it right now and it doesnt seem to work as i expected it to

deep cobalt
#

ah then you'd wan't .weakNBT() and only include the gun type

#

strongNBT means the item needs exactly that nbt and weakNBT the item needs to have that nbt but can also have more

deft lava
#

You are a life savior!! Thanks a lot! That fully answers my ticket!