Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NBT not detected on tools #7

Open
ghost opened this issue Aug 27, 2021 · 0 comments
Open

NBT not detected on tools #7

ghost opened this issue Aug 27, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Aug 27, 2021

The following zenscript code:

import mods.artisanworktables.Recipe;
import mods.artisanworktables.Type;

var hammer = <item:minecraft:iron_pickaxe>.withTag({display: {Name: "{\"text\":\"Hammer\"}"}});
Recipe.type(Type.BASIC)
  .shapeless([<item:minecraft:stone>])
  .output(<item:minecraft:cobblestone>)
  .tool(hammer, 10)
  .register();

shows a pickaxe with correct display name, Hammer, in JEI. However, recipes currently ignore any NBT tags added to the tool, and will work with an iron pickaxe that isn't renamed.

It seems to me that recipes should match the NBT data of tools, except durability of course. Or there should at least be an optional parameter to match NBT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant