invisable entity

Place to get help with not working mods / modding interface.
Post Reply
oresKa2
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Aug 30, 2015 9:10 pm
Contact:

invisable entity

Post by oresKa2 »

I have just started learning how to mod.
I have made this mod more oil production, and for my next update I added an actual entity but it wont render.
this is the entity code

Code: Select all

data:extend({
  {
    type = "recipe-category",
    name = "oil-drill"
  },

{
    type = "assembling-machine",
    name = "oil-drill",
    icon = "__more_oil-production__/graphics/oil-drill-icon.png",
    flags = {"placeable-neutral", "player-creation"},
    minable = {mining_time = 1, result = "oil-drill"},
    max_health = 100,
    corpse = "medium-remnants",
    collision_box = {{ -0.9, -0.9}, {0.9, 0.9}},
    selection_box = {{ -1, -1}, {1, 1}},

    working_sound =
    {
      sound =
      {
        filename = "__base__/sound/burner-mining-drill.ogg",
        volume = 0.8
      },
    },
    crafting_categories = "oil-drill",
    allowed_effects = {"consumption", "speed", "productivity", "pollution"},
    module_specification =
    {
      module_slots = 1,
    },
    crafting_speed = 0.5,
    ingredient_count = 1,
    energy_usage = "700kW",
    energy_source =
    {
      type = "electric",
      usage_priority = "secondary-input",
      emissions = 0.01 / 5
    },
  
      north =
      {
        priority = "extra-high",
        width = 110,
        height = 76,
        line_length = 4,
        shift = {0.6875, -0.09375},
        filename = "__more_oil-production__/graphics/north.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      east =
      {
        priority = "extra-high",
        width = 94,
        height = 74,
        line_length = 4,
        shift = {0.4375, -0.09375},
        filename = "__more_oil-production__/graphics/east.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      south =
      {
        priority = "extra-high",
        width = 89,
        height = 88,
        line_length = 4,
        shift = {0.40625, 0},
        filename = "__more_oil-production__/graphics/south.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      west =
      {
        priority = "extra-high",
        width = 91,
        height = 78,
        line_length = 4,
        shift = {0.09375, -0.0625},
        filename = "__more_oil-production__/graphics/west.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      }
    },
})
did I mess up somewhere?
in advance thank you
Attachments
bug.png
bug.png (3.35 MiB) Viewed 1023 times

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: invisable entity

Post by Arch666Angel »

You missed to copy over the animations={} definition/brackets around the actual sprites definitions.

Post Reply

Return to “Modding help”