The following code prints probability (white) and richness (yellow) values on each position:
Code: Select all
local calcresult = surface.calculate_tile_properties({"entity:crude-oil:probability", "entity:crude-oil:richness"}, pos_arr)
for i,v in ipairs(calcresult["entity:crude-oil:probability"]) do
rendering.draw_text{text=string.format("%.2f", v), surface=surface, target={pos_arr[i][1], pos_arr[i][2]}, color={1, 1, 1}, scale=0.5}
rendering.draw_text{text=string.format("%.2f", calcresult["entity:crude-oil:richness"][i]), surface=surface, target={pos_arr[i][1], pos_arr[i][2]+0.2}, color={1, 1, 0}, scale=0.3}
end
So how do I know, where to place them?