Working with fuels

Place to get help with not working mods / modding interface.
Transigence
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Sep 14, 2016 6:10 am
Contact:

Working with fuels

Post by Transigence »

I am having trouble finding/modifying fuel values.
I am trying to bring up the value of Rocket Fuel up from 225MJ to 250MJ by adding the following line to my prototypes/item.lua file:

data.raw.item["rocket-fuel"].fuel_value = "250MJ"

Nothing I have tried is having any effect on the game.

Any suggestions?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Working with fuels

Post by Nexela »

That looks correct

Are you requiring your prototypes.item inside data.lua?
Transigence
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Sep 14, 2016 6:10 am
Contact:

Re: Working with fuels

Post by Transigence »

I was not, and that was the problem.
Thank you!
Dumb rookie mistake.
Post Reply

Return to “Modding help”