I have tried numerous approaches looking at different mods and going through these forums, as I sense I missing something obvious to others.
I am guessing this has to do with properly defining the item icon, but not the entity icon.
Current code is below:
Code: Select all
--item.lua
local WarpChest = util.table.deepcopy(data.raw["linked-container"]["linked-chest"])
WarpChest.name = "warp-chest"
WarpChest.minable.result = "warp-chest"
WarpChest.inventory_size = 80
WarpChest.icon = "__WarpChests-iterate-2__/graphics/icons/linked-chest-icon-light-red.png"
WarpChest.icon_size = 64
data:extend({
  WarpChest,
  {
    type = "item",
    name = "warp-chest",
    icon = "__WarpChests-iterate-2__/graphics/icons/linked-chest-icon-light-red.png",
    icon_size = 64, icon_mimaps = 4,
    subgroup = "storage",
    order = "a[items]-a[warp-chest]",
    place_result = "warp-chest",
    stack_size = 20
  },
  {
    type = "recipe",
    name = "warp-chest",
    enabled = true,
    ingredients =
    {
      {"iron-plate", 1},
    },
    result = "warp-chest"
  }
})Looks right in the inventory (red/rust tinted chest in invesntory and recipies): Looks wrong on the ground: Attached the icon file in case it helps.
Thank you for any insights.


