I am trying to use
Code: Select all
local ResourceCounter = game.findentitiesfiltered{area = {-10, -10}, {10, 10}, type="resource"}
I am trying to make a simple table, with 4 entries, one for coal, iron, copper, and stone, and a means of saying how much is in the given area for each one