진행중인 맵에서 존재하는 나무랑 물 바위를 일정범위 내에서 삭제하고 싶어요

Remove resources around the player

Removes all resource patches from the ground in a 50 x 50 area around the player.

/c local surface=game.player.surface local size=50 local pos=game.player.position for _, e in pairs(surface.find_entities_filtered{area={{pos.x-size, pos.y-size},{pos.x+size, pos.y+size}}, type="resource"}) do e.destroy() end

팩위키에는 일케 되어있는데 로컬사이즈 50 저 숫자가 1당 1청크고

resource 저기에 tree , water , rock 하나씩 3번 쓰면 되는거 맞나요?