data.raw Question
Posted: Tue Dec 29, 2015 10:43 pm
How do you address an item that seems to be a couple levels deep in code?
For example. Say I want to change the Mining Axe damage amount from 8 to 10.
It's like 3 levels deep and it seems that no matter how I code it, it is wrong and doesn't work. I've tried quotation marks and different combinations of brackets but i've got to missing something.
Please someone help.
For example. Say I want to change the Mining Axe damage amount from 8 to 10.
Code: Select all
type = "mining-tool",
name = "steel-axe",
icon = "__base__/graphics/icons/steel-axe.png",
flags = {"goes-to-main-inventory"},
action =
{
type="direct",
action_delivery =
{
type = "instant",
target_effects =
{
type = "damage",
damage = { amount = 8 , type = "physical"}
}
}
},
durability = 5000,
subgroup = "tool",
order = "a[mining]-b[steel-axe]",
speed = 4,
stack_size = 20
Please someone help.
