posila wrote: ↑Sun Nov 11, 2018 5:14 pm
Split thread from:
63407
It's impossible to help you, because you didn't say what you're doing.
Creating trees in middle of tiles just works:
trees-on-middle-of-tile.png
I want to get same result, but this code cannot help me:
Code: Select all
for i, tree in pairs (data.raw.tree) do
tree.flags = {"placeable-neutral", "breaths-air"} -- as you see, no "placeable-off-grid" here
tree.collision_box = {{-0.2, -0.2}, {0.2, 0.2}} -- it's less then 1 x 1 tile
end
I need exactly that, what you have on the image. But with standard autoplacement, not by the script.
I expect that all trees will be placed same way like insterters and chests, in the middle of tiles, but all of them are placed on the edge of tiles.