
Adding ores from other mods: Couldn't find a valid recipe for this vein
ephantom opened this issue ยท 3 comments
I'm not 100% sure this is a bug, maybe I'm just not setting something up right. I'm trying to add Mekanism and Immersive Engineering ores to Create Ore Excavation. The ores don't kick an error in the logs when loading, and show up in chunks when using the Ore Vein Finder.
Logs:
[19:08:02] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] At: -59, -52
[19:08:02] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] Found in Chunk: raw lead
[19:08:02] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] Found nearby: lapis lazuli
[19:08:02] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] Found traces of: raw lead (~0 blocks away)
After setting up the Drilling Machine, Engineer's Goggles show:
Found in Chunk: raw lead
Installed drill: Diamond Drill
Couldn't find a valid recipe for this vein
Fluid Container Info:
Capacity: 16,000mB
Setup: Minecraft 1.20.1 - Forge
Mods in test instance:
architectury-9.2.14-forge.jar
Better Tags-1.20.1-1.4.jar
create-1.20.1-0.5.1.j.jar
createoreexcavation-1.20-1.5.3.jar
ImmersiveEngineering-1.20.1-10.1.0-171.jar
Jade-1.20.1-Forge-11.12.2.jar
jei-1.20.1-forge-15.20.0.105.jar
journeymap-1.20.1-5.10.3-forge.jar
kubejs-forge-2001.6.5-build.16.jar
Mekanism-1.20.1-10.4.8.43.jar
nbttooltip-1.7.2.jar
rhino-forge-2001.2.3-build.6.jar
Attached:
.\kubejs\server_scripts\createoreexcavationtest.js
(renamed to createoreexcavationtest.txt for upload)
Ok Solved after reading through #129. I'm going to leave this solution here with my example file for clarity for anyone else who comes across this issue; as it was not clear to newbies like me who have never used kubejs + Create-Ore-Excavation.
To add new ores you need two matching entries in the .js file. One for event.recipes.createoreexcavation.vein and one for event.recipes.createoreexcavation.drilling.
Here is an example for mekanism tin:
event.recipes.createoreexcavation.vein('{"text": "raw tin"}', 'mekanism:raw_tin')
.placement(8, 1, 64825155)
.priority(10000)
.id("kubejs:m_tin_vein");
//Drilling recipes (Items)
//Arguments: output item(s), ore vein id, extraction time in ticks at 32 RPM.
event.recipes.createoreexcavation.drilling('mekanism:raw_tin', 'kubejs:m_tin_vein', 100)
.id("kubejs:m_tin_drill");
console.log('createoreexcavation.vein: Hello! The recipe event mekanism:raw_tin has fired!');
I will attach my full fixed mekanism + immersive engineering .js file with some notes for other users to look at.
Oh, looks like this may be a DUP of issue #123 Hopefully the files will help.