Vein generation not working (1.20.1)
StanM662 opened this issue ยท 0 comments
I really like this mod so far and i wanted to try and use this along with create: northstar to try and generate ores on the moon. Unfortunately, this does not want to work at all. I have tried using KubeJS and datapacks but neither work, and if they do, they only work for one type of ore vein. Ive tried a whole lot of debugging (alone and with ChatGPT to check for bugs/inconsistencies). Ive even taken a look at the logs but even that doesn't help.
The current script sort of works, because it generates Moon Iron Veins, but nothing else. I have no idea why, but it does not want to generate any other veins oter than the moon iron veins.
This is my current KubeJS script that i have inside of my server_scripts folder (kubejs/server_scripts/moon_veins.js):
ServerEvents.recipes(event => {
const moonOres = [
{ id: 'northstar:moon_iron_ore', name: 'Moon Iron Vein', salt: 11111 },
{ id: 'northstar:moon_copper_ore', name: 'Moon Copper Vein', salt: 22222 },
{ id: 'northstar:moon_zinc_ore', name: 'Moon Zinc Vein', salt: 33333 },
{ id: 'northstar:moon_redstone_ore', name: 'Moon Redstone Vein', salt: 44444 },
{ id: 'northstar:moon_lapis_ore', name: 'Moon Lapis Vein', salt: 55555 },
{ id: 'northstar:moon_gold_ore', name: 'Moon Gold Vein', salt: 66666 },
{ id: 'northstar:moon_diamond_ore', name: 'Moon Diamond Vein', salt: 77777 },
{ id: 'create:scoria', name: 'Scoria Vein', salt: 88888 }
];
let recipeIds = new Set();
for (const ore of moonOres) {
const veinId = `kubejs:${ore.id.replace(':', '_')}_vein`;
const drillId = `kubejs:${ore.id.replace(':', '_')}_drill`;
if (!recipeIds.has(veinId)) {
event.recipes.createoreexcavation.vein(`{"text": "${ore.name}"}`, ore.id)
.placement(8, 4, ore.salt)
.veinSize(5, 10)
.alwaysInfinite()
.id(veinId);
recipeIds.add(veinId);
}
if (!recipeIds.has(drillId)) {
event.recipes.createoreexcavation.drilling(ore.id, veinId, 100)
.id(drillId);
recipeIds.add(drillId);
}
}
});
The relevant mods that i am currently using are: (im on forge version 47.4.0)
Create: create-1.20.1-0.5.1h
Create ore excavation: createoreexcavation-1.20-1.5.3
Create Northstar: northstar-0.1cb-1.20.1-1.3
KubeJS: kubejs-forge-2001.6.5-build.16
Rhino: rhino-forge-2001.2.3-build.10
Is there any way to fix this issue, or is this impossible to do with create: northstar?
(By the way, i get these kind of messages when i try looking for veins, even after a /reload and in new chunks)
