function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if Tile(toPosition):hasDoor() then
player:sendCancelMessage("You cannot use this when there is a door on the tile.")
return true
end
-- do something special when there isn't a door on the tile
return true
end