[12.9] Tiles don't fire on_built_entity
Posted: Fri Oct 02, 2015 12:40 am
Tile Ghosts fire the event but not the tile itself. did not test bots.
To see if ANY event fires from the Tiles, I hooked up a watcher for all non-tick events.
This is the event log for placing and mining.
This is the event log for placing and mining a Ghost by hand.
In comparison, this is the event log for a small electric pole.
a Tile should atleast fire "on_put_item", it should also fire either "on_built_entity" or "on_built_tile"
To see if ANY event fires from the Tiles, I hooked up a watcher for all non-tick events.
This is the event log for placing and mining.
Code: Select all
Event: on_player_mined_item @ 218913
item_stack[table]
name[string]=stone-brick
count[number]=1
player_index[number]=1
Code: Select all
Event: on_built_entity @ 218790
created_entity[table]
__self[userdata]
player_index[number]=1
Event: on_preplayer_mined_item @ 219100
entity[table]
__self[userdata]
player_index[number]=1
watcher code snippet
watcher code full
In comparison, this is the event log for a small electric pole.
Code: Select all
Event: on_put_item @ 218932
position[table]
y[number]=3.22265625
x[number]=-14.8359375
player_index[number]=1
Event: on_built_entity @ 218932
created_entity[table]
__self[userdata]
player_index[number]=1
Event: on_preplayer_mined_item @ 219162
entity[table]
__self[userdata]
player_index[number]=1
Event: on_player_mined_item @ 219162
item_stack[table]
name[string]=small-electric-pole
count[number]=1
player_index[number]=1
a Tile should atleast fire "on_put_item", it should also fire either "on_built_entity" or "on_built_tile"