Is there a way to prevent someone from building on desert tiles?
Or even better, allow building on desert if there is concrete floor?
Thanks
Tile restrictions
Re: Tile restrictions
I don't think you can prevent but you should be able to work around it.
Something like this
On_Built_event
if entity.surface.get_tile(entity.position).name = "sand-dark" then
player.insert(entity.name)
entity.destroy()
http://lua-api.factorio.com/latest/LuaTile.html
Something like this
On_Built_event
if entity.surface.get_tile(entity.position).name = "sand-dark" then
player.insert(entity.name)
entity.destroy()
http://lua-api.factorio.com/latest/LuaTile.html