Types/ItemPrototypeFlags: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(more info on "not-stackable" and "can-extend-inventory")
(Removed old prototype docs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A [[Types/table]] (array) of [[types/string]]. The possible strings are listed below.
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/ItemPrototypeFlags.html https://lua-api.factorio.com/latest/types/ItemPrototypeFlags.html]


== "draw-logistic-overlay" ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
Whether the logistics areas of roboports should be drawn when holding this item. Used for example by the [[deconstruction planner]].
 
== "hidden" ==
Item will not appear in lists of all items such as those for logistics requests, filters, etc.
 
== "always-show" ==
Always show the item in selection lists (item filter, logistic request etc.) even when locked recipe for that item is present.
 
== "hide-from-bonus-gui" ==
Item will not appear in the bonus gui.
 
== "hide-from-fuel-tooltip" ==
Item will not appear in the tooltips shown when hovering over a burner inventory with the fuel category the item is in.
 
== "not-stackable" ==
The item can never be stacked. Additionally, the item does not show an item count when in the cursor.<br>
This also prevents the item from stacking in assembling machine input slots, which otherwise can exceed the item stack size if required by the recipe.
 
== "can-extend-inventory" ==
Has no effect.
 
== "primary-place-result" ==
Item will be preferred by construction bots when building the entity specified by the item's [[Prototype/Item#place_result|place_result]].
 
== "mod-openable" ==
Only works for [[Prototype/SelectionTool]] and derived classes.<br>
This property corresponds to the following event in the lua api: [https://lua-api.factorio.com/latest/events.html#on_mod_item_opened defines.events.on_mod_item_opened]
 
== "only-in-cursor" ==
Item is deleted when removed from the cursor by pressing {{keybinding|Q}} (clear cursor). Used for example by the copy paste tools.
 
== "spawnable" ==
Item is able to be spawned by a [[Prototype/Shortcut]] or [[Prototype/CustomInput]].

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/ItemPrototypeFlags.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.