Page 1 of 1

[2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost

Posted: Fri May 08, 2026 12:35 am
by hgschmie
I noticed that you can call e.g. LuaEntity.get+filter() or LuaEntity.get_or_create_control_behavior() on an entity ghost representing an inserter and it returns the information associated with it.

Is that intentional / officially supported or some undocumented behavior that might go away at any moment? The docs are unclear (they don't mention ghosts at all).

Re: [2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost

Posted: Fri May 08, 2026 12:46 am
by Rseding91
It is intended. Since 2.0 configuring ghosts has been expanded to cover as much of the mod API as we can without crashing.

Re: [2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost

Posted: Fri May 08, 2026 7:47 am
by Bilka
Ghosts are mentioned at the top of the LuaEntity page:
Most functions on LuaEntity also work when the entity is contained in a ghost.