Page 1 of 1

LuaControl.can_place_tile

Posted: Thu Nov 13, 2025 7:02 pm
by protocol_1903
Same as LuaControl.can_place_entity but for tiles, to run easier checks on normal tile buildability rules

Re: LuaControl.can_place_tile

Posted: Fri Nov 14, 2025 2:47 pm
by curiosity
Surely you'd want can_place_tiles more. I don't imagine it's often the case that you want to check only a single tile.

(also, can_place_entity is found in LuaPlayer and LuaSurface, not in LuaControl; I'd expect you want the tile function for both)

Re: LuaControl.can_place_tile

Posted: Fri Nov 14, 2025 4:28 pm
by Rseding91
By placing a given tile it may make placing another invalid (tile placement rules can require you do not build within x distance of another tile). So can place tiles is not likely to be super useful.