Where is on_pre_player_built_tile ?

Place to get help with not working mods / modding interface.
Post Reply
smallfly
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Oct 23, 2019 5:16 pm
Contact:

Where is on_pre_player_built_tile ?

Post 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?!

robot256
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Where is on_pre_player_built_tile ?

Post 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.

smallfly
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Oct 23, 2019 5:16 pm
Contact:

Re: Where is on_pre_player_built_tile ?

Post by smallfly »

Ok. Thanks so far!

Post Reply

Return to “Modding help”