Page 1 of 1

Tile restrictions

Posted: Wed Jul 27, 2016 11:00 pm
by TheSAguy
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

Re: Tile restrictions

Posted: Thu Jul 28, 2016 2:27 am
by Nexela
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