Search found 2 matches

by Amidamaru4433
Sat Sep 23, 2017 1:57 pm
Forum: Modding help
Topic: How to add resource to new resource category?
Replies: 2
Views: 1396

Re: How to add resource to new resource category?


crude-oil has this in the resources.lua:
category = "basic-fluid",

wow, [category = "new_ore",] is really work! Now my miner can be placed only on my ore, which is what I wanted! how could I not notice such an easy decision... I checked everything, but I always ignored the oil.
Big thanks for ...
by Amidamaru4433
Sat Sep 23, 2017 1:21 pm
Forum: Modding help
Topic: How to add resource to new resource category?
Replies: 2
Views: 1396

How to add resource to new resource category?

How I can to add resource to new resource category? For example, I have ore, which is can mineable only with special expensive mining drill.
I create new category:
data:extend({
{
type = "resource-category",
name = "new_ore"
},
})
and adding to my mining drill this property
resource_categories ...

Go to advanced search