local stoneId = 1111
local stonePosition = Position(1111, 1111, 1)
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tile = Tile(stonePosition)
if not tile then
print("stonePosition is incorrect")
return true
end
local stone = tile:getItemById(stoneId)
if stone then
stone:remove()
end
item:transform(item:getId() == 1946 and 1945 or 1946)
return true
end