Prototype/Fish: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 Set prototype parent  | 
				 Converted to SMW format  | 
				||
| Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}}  | {{Prototype parent|Prototype/EntityWithHealth}}  | ||
Entity that spawns in water tiles, which can be mined. Moves around unless deactived with entity.active = false.  | |||
{{Prototype TOC|fish}}  | |||
Prototype   | |||
== Mandatory properties ==  | |||
=  | {{Prototype property|pictures|[[Types/SpriteVariations|SpriteVariations]]}}  | ||
== Example ==  | == Example ==  | ||
Revision as of 20:07, 29 July 2019
Template:Prototype parent Entity that spawns in water tiles, which can be mined. Moves around unless deactived with entity.active = false.
Mandatory properties
Example
{
    type = "fish",
    name = "fish",
    icon = "__base__/graphics/icons/fish.png",
    icon_size = 32,
    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.75, -0.75}, {0.75, 0.75}},
    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
    }
  },