First of all I'd like to thank you for the work that you put in your mods. I've enjoyed them alot.
I am currently using your library for a mod of my own, and I had a hard time trying to generate ores that require mining fluids ; until I realised there is a minor error in ore-functions.lua on lines 360 and 361.
Code: Select all
360 data.raw.resource[inputs.name].required_fluid = inputs.required_fluid
361 data.raw.resource[inputs.name].fluid_amount = inputs.fluid_amount or 10
I found nothing about this on the forums so I guess that's not the most used thing but i thought pointing it out could be useful.
If anyone else bumps into this problem before it is fixed, you can add the following lines juste before the end of the ore generation loop :
Code: Select all
if data.raw.resource[ore.name].required_fluid then
data.raw.resource[ore.name].minable.required_fluid = data.raw.resource[ore.name].required_fluid
data.raw.resource[ore.name].minable.fluid_amount = data.raw.resource[ore.name].fluid_amount
end