Code: Select all
local adjacentEntity = global.world.find_entity("MyType", Position)<-- I want to retrieve ANYTHING that might be at this point
if not adjacentEntity then
--add new ore here
local newOre = global.world.create_entity{name = global.oreType, position = Position, amount = global.spreadAmount}
table.insert(global.oreList, newOre)
end