Still pretty new to modding, been playing with a personal mod, currently I'm stuck trying to change what rocks drop.
if anyone could point me in the right direction on how i can call in the different rocks and tell it what they should drop... i was able to find a mod that will change it for trees... and that works. but it was one of the codes i don't fully understand.
this is the wood code (i have made the change so a tree will drop bugs instead of wood)
Code: Select all
for _, tree in pairs(data.raw["tree"]) do
tree.minable = {
mining_particle = "wooden-particle",
mining_time = 1.5,
results = {
{
type = "item",
name = "bug-male",
amount_min = 1,
amount_max = 10,
}
}
}
end
thanks in advance for any help