alle_x_andy

data.lua

Dec 15th, 2022 (edited)
105
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | Fixit | 0 0
  1. local linkedChestName = "ender-linked-chest"
  2.  
  3. local linkedChest = table.deepcopy(data.raw["linked-container"]["linked-chest"])
  4. linkedChest.name = linkedChestName
  5. linkedChest.minable = {
  6.     hardness = 0.2,
  7.     mining_time = 0.2,
  8.     result = linkedChest.name
  9. }
  10. linkedChest.inventory_size = settings.startup["elc-chest-slots"].value
  11. --- remove the "--" below if you want to work with circuit network
  12. --linkedChest.circuit_wire_connection_point = circuit_connector_definitions["chest"].points
  13. --linkedChest.circuit_connector_sprites = circuit_connector_definitions["chest"].sprites
  14. --linkedChest.circuit_wire_max_distance = default_circuit_wire_max_distance
  15.  
  16. linkedChest.picture.layers[1].filename = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png"
  17. linkedChest.picture.layers[1].height = 128
  18. linkedChest.picture.layers[1].width = 128
  19. linkedChest.picture.layers[1].scale = 0.3
  20.  
  21. linkedChest.picture.layers[1].hr_version.filename = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png"
  22. linkedChest.picture.layers[1].hr_version.height = 128
  23. linkedChest.picture.layers[1].hr_version.width = 128
  24. linkedChest.picture.layers[1].hr_version.scale = 0.3
  25.  
  26. require("recipe")
  27. local recipe = GetEnderLinkedChestRecipe(settings.startup["elc-recipe-difficult"].value);
  28.  
  29. data:extend(
  30.     {
  31.         linkedChest,
  32.         {
  33.             type = "item",
  34.             name = linkedChestName,
  35.             icon = "__enderlinkedchest__/graphics/icons/ender-linked-chest-icon.png",
  36.             icon_size = 64,
  37.             icon_mipmaps = 4,
  38.             subgroup = "storage",
  39.             order = "a[items]-a[ender-linked-chest]",
  40.             place_result = linkedChestName,
  41.             stack_size = settings.startup["elc-chest-stack-size"].value
  42.         },
  43.         {
  44.             type = "recipe",
  45.             name = linkedChestName,
  46.             enabled = false,
  47.             energy_required = recipe.craftTime,
  48.             hide_from_player_crafting = settings.startup["elc-cannot-hand-craft"].value,
  49.             category = "advanced-crafting",
  50.             -- emissions_multiplier = 10,
  51.             -- overload_multiplier = 2,
  52.             crafting_machine_tint = {primary = {r = 0, g = 1, b = 0, a = 0}},
  53.             ingredients = recipe.ingredients,
  54.             result = linkedChestName
  55.         },
  56.         {
  57.             type = "technology",
  58.             name = linkedChestName,
  59.             icon = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png",
  60.             icon_size = 128,
  61.             effects = {{type = "unlock-recipe", recipe = linkedChestName}},
  62.             prerequisites = recipe.techRequisites,
  63.             unit = recipe.techUnit,
  64.             order = "a-b-b"
  65.         }
  66.     }
  67. )
  68.  
Tags: factorio
Comments
  • alle_x_andy
    2 years (edited)
    # text 0.10 KB | 0 0
    1. This is the data.lua file from the mod "Ender Linked Chest" for factorio with graphics issues fixed by me.
Add Comment
Please, Sign In to add comment