I am trying to have the staircase appear when someone is standing on the stone tile switch.

Currently my code is:
I figured out what I was doing wrong. Was in the actions folder instead of movements.

Currently my code is:
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
--Step on tile to open stairwell
if item.actionid == 1000 then
local stairtile = Tile(Position({x = 32225, y = 32282, z = 9}))
if item.itemid == 425 then
stairtile:getItemById(424):transform(3219)
--item:transform(1946)
else
stairtile:getItemById(3219):transform(424)
--item:transform(1945)
end
end
return true
end
Post automatically merged:
I figured out what I was doing wrong. Was in the actions folder instead of movements.
Last edited: