Closed DancingSnow0517 closed 11 months ago
you didn't set valid dimensions for the world gen layer.
Modifying scripts world_gen_layers.js
GTCEuStartupEvents.registry('gtceu:world_gen_layer', event => {
event.create('t_moon')
.target(['ad_astra:moon_stone', 'minecraft:soul_soil'])
.dimensions(['ad_astra:moon'])
})
Still not working......
Use addDimension methon doesn't work too...
GTCEuStartupEvents.registry('gtceu:world_gen_layer', event => {
event.create('t_moon')
.target(['ad_astra:moon_stone', 'minecraft:soul_soil'])
.addDimension('ad_astra:moon')
})
https://github.com/Arborsm/Arbor-s-GTceu-Modern-Pack/blob/main/kubejs/server_scripts/gregtech/ores.js works, might help you, and the tagprefix registry on kjs has some issues, recommend to make a mod for it.
I write simple mod to registry tagprefix, and then, it works!!! Thanks
https://github.com/Arborsm/Arbor-s-GTceu-Modern-Pack/blob/main/kubejs/server_scripts/gregtech/ores.js works, might help you, and the tagprefix registry on kjs has some issues, recommend to make a mod for it.
I have some problem in write mod, my mod build script like your ModPack-Core, but can't runClient in Dev environment.
May I ask if it's convenient to add a specific contact information? Thanks
GregTech CEu Version
1.0.17-build_323
Recipe Viewer Installed
JEI
Environment
SP
Cross-Mod Interaction
Yes
Expected Behavior
The ore vein add by KubeJS scripts should spawn on the moon.
Actual Behavior
No vein ore find on ad_astra moon
Steps to Reproduce
Installed mods: gtceu-forge-1.20.1-1.0.17-build_323.jar ad_astra-forge-1.20.1-1.15.5.jar jei-1.20.1-forge-15.2.0.27.jar kubejs-forge-2001.6.4-build.107.jar
Added the Startup scripts tag_prefixs.js:
world_gen_layers.js
Added the Server scripts gt_ore_veins.js
execute in as_astra:moon run tp 0 120 0
Additional Information
No response