Edit an Existing Entity?
Edit an Existing Entity?
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.
-
- Smart Inserter
- Posts: 1463
- Joined: Sun Jun 15, 2014 11:39 am
- Contact:
Re: Edit an Existing Entity?
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
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
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",
}
}})
that should modify the storage tank. if you have any issues let me know and i can help you