I'm missing something probably very easy but my brain cant cooperate, someone that see's my flaw?
Using: TFS 1.3
The script itself:
Proving its setup correct:
"Error" in console: (it prints nil, i want the name):
Using: TFS 1.3
The script itself:
Lua:
function onStepIn(player, item, position, fromPosition)
if item:getActionId() == 10100 then
local p = position
local t = getTileThingByPos({x=p.x,y=p.y-1,z=p.z})
print(t.name)
print(p.x, p.y-1, p.z, p.stackpos)
end
end
"Error" in console: (it prints nil, i want the name):
Printing t:getName() gives this error:nil
1040 1141 5 0
attempt to call method 'getName' (a nil value)