Code: Select all
local CollisionMaskUtil = require("__core__.lualib.collision-mask-util")
local layer = CollisionMaskUtil.get_first_unused_layer()
-- you CAN pave over Garbage fill
local garbageFillMask = {"ground-tile", "colliding-with-tiles-only", layer}
-- you CAN NOT pave over a Sacfice Zone
local sacrificeZoneMask = {"ground-tile", "water-tile", "floor-layer", "item-layer", "object-layer",
"colliding-with-tiles-only", layer}