Setting the "subtypes" callback has no effect in-game, as the returned list of ItemStacks doesn't actually get added to the tab
9thCore opened this issue ยท 0 comments
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
})
})
- Open creative inventory, KubeJS tab
- Only one item of ID
kubejs:test
, with no NBT data - Optionally, also check JEI for the same outcome
- Check logs, no line
Running subtypes code...
will be found
Crash report/logs
No response