Multiblocked NBT is an addon Multiblocked for Minecraft 1.12. It allows writing recipes that rely on or modify NBT data in items and/or fluids. This is a (theoretical) example of a recipe that can be implemented through MultiNBT: "Consume any item with Smite and a Broken Spawner - Zombie to insert 27 stacks of Rotten Flesh into a shulker box in an input slot".
The following mods are supported out of the box. You can also add your own requirements and modifiers if you want! Check the last section.
Anything in quotes can be substituted by the modpack developer.
Input item must be of type 'Iron Axe'
Input item requires enchantment 'Sharpness' of at least level '2'
Add enchantment 'Fire Aspect' of level '3' to input item
Input fluid must be of type 'Water'
Input fluid must be RCL with 'Purity' >= '0.5'
Increase or reduce the 'Purity' of input RCL by '0.5'
Currently Multiblocked NBT requires adding a Trait to your multiblock, which adds an ugly UI to it. Not adding traits may cause the multiblock to crash. I'm looking into ways to remedy that.
Take a look at this package.
You want to implement the classes INBTModifier
and/or INBTRequirement
with either T = ItemStack
or T = FluidStack
.
If you want to add a new option for T
, it is a bit more convoluted and not described here.