Page 1 of 1

Where is on_pre_player_built_tile ?

Posted: Sat Jan 08, 2022 3:29 pm
by smallfly
First of all, I am very new to modding in Factorio. I found the list of events here: https://lua-api.factorio.com/latest/events.html and I successfully used them for a few tests.

I want to do some magic BEFORE the player builds a tile. I found "on_pre_build" but I could not find any "pre" version of "on_player_built_tile". Am I blind?!

Re: Where is on_pre_player_built_tile ?

Posted: Sat Jan 08, 2022 6:31 pm
by robot256
I think there never was one, because tiles never performed any checks before being placed (and deleted colliding entities). BUT in the most recent update, tile building has to check for collisions, so it might now be necessary/possible to add a pre-tile-placed event.

Re: Where is on_pre_player_built_tile ?

Posted: Sun Jan 09, 2022 7:28 pm
by smallfly
Ok. Thanks so far!