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

Setting the "subtypes" callback has no effect in-game, as the returned list of ItemStacks doesn't actually get added to the tab #876

Open
9thCore opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@9thCore
Copy link

9thCore commented Aug 6, 2024

Minecraft Version

1.20.1

KubeJS Version

2001.6.5-build.14

Rhino Version

2001.2.2-build.18

Architectury Version

9.2.14

Forge/Fabric Version

Forge 47.3.1

Describe your issue

title

Repro:
1.

StartupEvents.registry("item", event => {
    event.create("kubejs:test")
    .subtypes(stack => {
        console.log("Running subtypes code...");
        const list = Utils.newList();
        list.add(stack.withNBT({test: 1}));
        return list
    })
})
  1. Open creative inventory, KubeJS tab
  2. Only one item of ID kubejs:test, with no NBT data
  3. Optionally, also check JEI for the same outcome
  4. Check logs, no line Running subtypes code... will be found

Crash report/logs

No response

@9thCore 9thCore added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant