Modify Mining Speed

Place to get help with not working mods / modding interface.
User avatar
Yokmp
Inserter
Inserter
Posts: 29
Joined: Tue Aug 23, 2016 10:30 am
Contact:

Modify Mining Speed

Post by Yokmp »

I would like to modify the mining-speed and module-slots of the vanilla Mining Drills.

Unfortunately I'm stuck with this:

Code: Select all

data.raw.["mining-drill"]["burner-mining-drill"].mining_speed = 0.33
data.raw.["mining-drill"]["electric-mining-drill"].mining_speed = 0.75
data.raw.["mining-drill"]["electric-mining-drill"].module_slots = 2
What do i have to do and why? Thanks in advance.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3713
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Modify Mining Speed

Post by DaveMcW »

You can use [""] or . to access properties, but not both at the same time.

Code: Select all

data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.33

User avatar
Yokmp
Inserter
Inserter
Posts: 29
Joined: Tue Aug 23, 2016 10:30 am
Contact:

Re: Modify Mining Speed

Post by Yokmp »

Well, i feel dumb now ^^

Post Reply

Return to “Modding help”