Edit an Existing Entity?

Place to get help with not working mods / modding interface.
ls612
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri May 02, 2014 12:13 am
Contact:

Edit an Existing Entity?

Post by ls612 »

I want to make a very small mod for myself to edit an existing entity (specifically to increase the size of oil storage tanks). How would I do this? The mod tutorials seem to be focused on adding new entities.
kingarthur
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: Edit an Existing Entity?

Post by kingarthur »

you need to create a folder in the mods folder with at least 2 files.
info.lua (contains mod description info)
data.lua (contains entity that you want to change/make)

inside data file

Code: Select all

data:extend({{
{
    type = "storage-tank",
    name = "storage-tank",
}
}})
add the info for storage value. if you dont know it just search for storage tank in the base game mod folders.
that should modify the storage tank. if you have any issues let me know and i can help you
Post Reply

Return to “Modding help”