You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recipes to have a less restricted item with nbt input.
As it stands, if I have a custom item, and someone renames the item, it cannot be used in recipes where I specify the custom item as an ingredient.
Example: on load: set {_customItem} to diamond with nbt from "{""minecraft:custom_data"":{custom_item_id:""ruby""}}" register new shapeless recipe for 1 of diamond using {_customItem}, {_customItem} and light blue dye with id "diamond_from_rubies"
If a player, for whatever reason, renames their ruby item, it will no longer work as an ingredient in the recipe
My suggestion is to create "loose" matching items. set {_customItem} to loose match of diamond with nbt from "{""minecraft:custom_data"":{custom_item_id:""ruby""}}"
This would only check if the item is a diamond, and if it has at LEAST the nbt tags specified. Any additional tags the item has would be ignored
Alternatives
I really cannot think of any other alternatives, other than maybe only checking for the basic "diamond" item and then looping the inputs, locking the output if the diamonds dont have the ruby tag, but that seems not so straightforward
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Alright now that I've wasted 3 hours since coming home I can reply properly for this message.
We have no control over what does and doesn't work for recipes, we're relying on the bukkit api to provide us methods sadly this means we only get MaterialChoice matches items based on material and ExactChoice requires all item meta to be an exact copy of each other.
Trust me when I say I myself more than probably anyone want to see more expansions on recipe apis luckily it seems paper is still working on the PredicateChoice which originally was for potion mix but for recipes which will enable this granted nothing has been said for about 5 months PaperMC/Paper#9996 hopes and prayers 🙏
Suggestion
Recipes to have a less restricted item with nbt input.
As it stands, if I have a custom item, and someone renames the item, it cannot be used in recipes where I specify the custom item as an ingredient.
Example:
on load: set {_customItem} to diamond with nbt from "{""minecraft:custom_data"":{custom_item_id:""ruby""}}" register new shapeless recipe for 1 of diamond using {_customItem}, {_customItem} and light blue dye with id "diamond_from_rubies"
If a player, for whatever reason, renames their ruby item, it will no longer work as an ingredient in the recipe
My suggestion is to create "loose" matching items.
set {_customItem} to loose match of diamond with nbt from "{""minecraft:custom_data"":{custom_item_id:""ruby""}}"
This would only check if the item is a diamond, and if it has at LEAST the nbt tags specified. Any additional tags the item has would be ignored
Alternatives
I really cannot think of any other alternatives, other than maybe only checking for the basic "diamond" item and then looping the inputs, locking the output if the diamonds dont have the ruby tag, but that seems not so straightforward
Additional Information
No response
The text was updated successfully, but these errors were encountered: