local tiles= {}
local center = game.player.position
for x = -50,50 do for y=-50,50 do
table.insert(tiles,{position={center.x+x,center.y+y},name="stone-path"})
end end
game.player.surface.set_tiles(tiles)
이파(dc8626)2022-11-09 11:12
앞에 /c 붙이고 이걸 치면 현재 플레이어 위치 기준으로 반지름50의 직사각형 구간에 벽돌을 까는 스크립트
이파(dc8626)2022-11-09 11:13
벽돌말고 다른거 깔고 싶으면 "stone-path"를 "concrete", "refined-concrete" 등으로 대체
이파(dc8626)2022-11-09 11:14
이거 근데 물 위는 피해서 설치하는게 아니라 물위도 그냥 강제로 타일 설치해버려서 물 위는 피하려면 이것저것 더 추가해야할듯
local tiles= {} local center = game.player.position for x = -50,50 do for y=-50,50 do table.insert(tiles,{position={center.x+x,center.y+y},name="stone-path"}) end end game.player.surface.set_tiles(tiles)
앞에 /c 붙이고 이걸 치면 현재 플레이어 위치 기준으로 반지름50의 직사각형 구간에 벽돌을 까는 스크립트
벽돌말고 다른거 깔고 싶으면 "stone-path"를 "concrete", "refined-concrete" 등으로 대체
이거 근데 물 위는 피해서 설치하는게 아니라 물위도 그냥 강제로 타일 설치해버려서 물 위는 피하려면 이것저것 더 추가해야할듯
고맙다