All entity types
Posted: Sun Apr 08, 2018 9:48 am
Hi all!
Is here easy way to get if some prototype an entity?
Now I use this code:
and
Is it correct? Do we have some easy way to do that?
Is here easy way to get if some prototype an entity?
Now I use this code:
code
and this code gives me [0.16.36 with mods]:
Code: Select all
entity_types_list = {
"character-corpse",
"player",
"furnace",
"transport-belt",
"fish",
"boiler",
"container",
"electric-pole",
"generator",
"offshore-pump",
"inserter",
"item-entity",
"pipe",
"radar",
"lamp",
"arrow",
"pipe-to-ground",
"assembling-machine",
"corpse",
"entity-ghost",
"tile-ghost",
"deconstructible-tile-proxy",
"item-request-proxy",
"cliff",
"wall",
"mining-drill",
"projectile",
"resource",
"turret",
"ammo-turret",
"unit",
"unit-spawner",
"rail-remnants",
"simple-entity",
"tree",
"tile",
"optimized-decorative",
"underground-belt",
"loader",
"splitter",
"car",
"solar-panel",
"locomotive",
"cargo-wagon",
"fluid-wagon",
"artillery-wagon",
"gate",
"player-port",
"straight-rail",
"curved-rail",
"land-mine",
"train-stop",
"rail-signal",
"rail-chain-signal",
"lab",
"logistic-robot",
"construction-robot",
"logistic-container",
"rocket-silo",
"rocket-silo-rocket",
"rocket-silo-rocket-shadow",
"roboport",
"storage-tank",
"pump",
"market",
"accumulator",
"beacon",
"combat-robot",
"arithmetic-combinator",
"decider-combinator",
"constant-combinator",
"power-switch",
"programmable-speaker",
"electric-energy-interface",
"reactor",
"heat-pipe",
"simple-entity-with-force",
"simple-entity-with-owner",
"infinity-container",
"artillery-turret",
"electric-turret",
"fluid-turret"
}
Code: Select all
item_types_list = {
"ammo",
"armor",
"gun",
"item",
"capsule",
"repair-tool",
"mining-tool",
"item-with-entity-data",
"rail-planner",
"tool",
"blueprint",
"deconstruction-item",
"blueprint-book",
"selection-tool",
"item-with-tags",
"item-with-label",
"item-with-inventory",
"module"
}