Page 1 of 1
Edit an Existing Entity?
Posted: Sat Jul 02, 2016 7:38 pm
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.
Re: Edit an Existing Entity?
Posted: Sun Jul 03, 2016 10:19 am
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