my intent to make this into official tfs, it is working, but I think it can be made better, so here I am to ask you guys for help once again into making it friendlier and in tfs standard!
Help to make script less ugly
Lua:
local machines = {
[5469] = 5513,
[5470] = 5514
}
local sugarOat = Action()
function sugarOat.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid == 2694 then
if toPosition.x ~= CONTAINER_POSITION then
Game.createItem(13939, 1...