Page 1 of 1

Detecting whether an inserter is stuck

Posted: Fri Jan 16, 2026 10:56 am
by picklock
Is there any other way to determine whether an inserter is blocked because it cannot drop the items it is holding at the target location than detecting if there are items in hand and comparing the held_stack_position with the prop_position? This works in vanilla, but these positions can be different for modded inserters (e.g., Bob's Adjustable Inserters) if the drop_position differs from the vanilla drop_position.

Re: Detecting whether an inserter is stuck

Posted: Fri Jan 16, 2026 11:38 am
by Osmo
If mods write to drop_position on a LuaEntity, reading it will return the overriden value
So if you read from an entity and not the prototype it should be fine
Alternatively, you might want to just check if inserter's status is defines.entity_status.waiting_for_space_in_destination

Re: Detecting whether an inserter is stuck

Posted: Fri Jan 16, 2026 12:34 pm
by picklock
Thanks for the quick reply. I'll try checking the entity_status.

Re: Detecting whether an inserter is stuck

Posted: Sun Jan 18, 2026 6:59 am
by picklock
I have now implemented it with defines.entity_status.waiting_for_space_in_destination.

This status completely passed me by. Does anyone know which version this was implemented in? I couldn't find anything about it.

@osmo: Thanks again for the quick help.