Detecting whether an inserter is stuck
Detecting whether an inserter is stuck
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.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: Detecting whether an inserter is stuck
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
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
Thanks for the quick reply. I'll try checking the entity_status.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: Detecting whether an inserter is stuck
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.
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.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Re: Detecting whether an inserter is stuck
picklock wrote: Sun Jan 18, 2026 6:59 amThis status completely passed me by. Does anyone know which version this was implemented in? I couldn't find anything about it.
2.0.67 added “Improved the mod API search to find union literals, define leaf nodes, and more.”; however this was just the search.
It looks like the property was asked to the API docs in 0.17.0, which contained a lot of Lua improvements.
Good luck!

