All entity types

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

All entity types

Post by darkfrei »

Hi all!

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"
}
and

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"
}
Is it correct? Do we have some easy way to do that?

Post Reply

Return to “Modding discussion”