My mod is nothing special, all I want is to create a building that produces some stuff using several recipes. I read several tutorials and all of them went like:
1) create item.lua,
2) create entity.lua
3) write the stuff
4) Profit
Obviously, I'm interested in the part 3) Well, to specifics:
1) Am I right to assume that in entity.lua I declare a 'prototype' that will be used by the items defined in item.lua?
I want to extend 'assembling-machine' by giving it new type name and new graphics. Do I specify it in the entity.lua or in item.lua?
In-game machines will be tiered (MK1, MK2 and MK3, for example) can they all use the same prototype?
2) When I specify the type in entity.lua - am I right to give it new name, ie
Code: Select all
-- entity.lua
data:extend({
{
type = "assembling-machine",
name = "newtypename",
},
})