Orb Counter
#71
This counts orbs when you stand on them.
function matchPos(pos, pos2)
return pos2.x == pos.x and pos2.y == pos.y and pos2.z == pos.z
end
local orbCount = 0
orbCounter = UI.Label("Orbs collected: ".. orbCount)
onRemoveThing(function(tile, thing)
if thing:getId() == 31601 then
if matchPos(pos(), thing:getPosition()) then
orbCount = orbCount + 1
orbCounter:setText("Orbs collected: ".. orbCount)
end
end
end)
- remove | + add
17 Nov 2021