Prototype/Fish

From Official Factorio Wiki
Revision as of 09:40, 15 July 2017 by LazyFridge (talk | contribs) (Somewhat useless page on the fish prototype. But I saw it missing, so I figured i'd at least let the page exist.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Entity that spawns in water tiles, which can be mined, and eaten for health. Extends the Prototype/EntityWithHealth

Usage in base

Properties

autplace

Type: Types/AutoplaceSpecification

The random generation of fish on the map.


Example

 {
   type = "fish",
   name = "fish",
   icon = "__base__/graphics/icons/fish.png",
   flags = {"placeable-neutral", "not-on-map"},
   minable = {mining_time = 1, result = "raw-fish", count = 5},
   max_health = 20,
   subgroup = "creatures",
   order = "b-a",
   collision_box = {{-0.4, -0.2}, {0.4, 0.2}},
   selection_box = {{-0.5, -0.3}, {0.5, 0.3}},
   pictures =
   {
     {
       filename = "__base__/graphics/entity/fish/fish-1.png",
       priority = "extra-high",
       width = 22,
       height = 36
     },
     {
       filename = "__base__/graphics/entity/fish/fish-2.png",
       priority = "extra-high",
       width = 32,
       height = 32
     }
   },
   autoplace = {
     influence = 0.01
   }
 },