
Unable to create custom ore veins via KubeJS.
fmbellomy opened this issue ยท 0 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
v7.0.2
Minecraft Version
1.21.1 NeoForge
Recipe Viewer Installed
EMI
Environment
Singleplayer
Cross-Mod Interaction
Yes
Other Installed Mods
KubeJS
Expected Behavior
Creating a server script as directed by the wiki and adding an ore vein with the given example should add that ore vein to the gtceu:ore_veins
registry and cause it to generate in world.
Actual Behavior
An error occurs when the server script is executed.

Steps to Reproduce
Include a KubeJS server script that attempts to create a custom ore vein as directed by the wiki.
Additional Information
As far as I could tell from reading the related code, it seems like the ore_vein
registry being a DataPackRegistry means it's possibly being instantiated after KubeJS tries to add to it. I also could be completely wrong and that's not what's happening at all. I have next to zero experience messing with registries.