I'm trying to mod the mining drills to work without an ore patch. I mostly succeeded. I changed its type to be an assembler and set the respective recipes. Everything works fine except that the drills are completely invisible. I imagine that they lost all the graphics and animation references.
Does anyone know an easy way to keep the original graphics and animations without having to copy all the respective code from the original?
Here's an extract of the code I have so far (data.lua)...
data:extend({
{
type = "recipe-category",
name = "mining"
}
})
data:extend({
{
type = "recipe",
name = "coal",
category = "mining",
enabled = true,
ingredients = {},
energy_required = 8,
result = "coal"
}
})
local drill = data.raw['mining-drill']['burner-mining-drill']
data.raw['mining-drill']['burner-mining-drill'] = nil
drill.type = "assembling-machine"
drill.crafting_speed = 1
drill.crafting_categories = {"mining"}
data:extend({drill})