Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local linkedChestName = "ender-linked-chest"
- local linkedChest = table.deepcopy(data.raw["linked-container"]["linked-chest"])
- linkedChest.name = linkedChestName
- linkedChest.minable = {
- hardness = 0.2,
- mining_time = 0.2,
- result = linkedChest.name
- }
- linkedChest.inventory_size = settings.startup["elc-chest-slots"].value
- --- remove the "--" below if you want to work with circuit network
- --linkedChest.circuit_wire_connection_point = circuit_connector_definitions["chest"].points
- --linkedChest.circuit_connector_sprites = circuit_connector_definitions["chest"].sprites
- --linkedChest.circuit_wire_max_distance = default_circuit_wire_max_distance
- linkedChest.picture.layers[1].filename = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png"
- linkedChest.picture.layers[1].height = 128
- linkedChest.picture.layers[1].width = 128
- linkedChest.picture.layers[1].scale = 0.3
- linkedChest.picture.layers[1].hr_version.filename = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png"
- linkedChest.picture.layers[1].hr_version.height = 128
- linkedChest.picture.layers[1].hr_version.width = 128
- linkedChest.picture.layers[1].hr_version.scale = 0.3
- require("recipe")
- local recipe = GetEnderLinkedChestRecipe(settings.startup["elc-recipe-difficult"].value);
- data:extend(
- {
- linkedChest,
- {
- type = "item",
- name = linkedChestName,
- icon = "__enderlinkedchest__/graphics/icons/ender-linked-chest-icon.png",
- icon_size = 64,
- icon_mipmaps = 4,
- subgroup = "storage",
- order = "a[items]-a[ender-linked-chest]",
- place_result = linkedChestName,
- stack_size = settings.startup["elc-chest-stack-size"].value
- },
- {
- type = "recipe",
- name = linkedChestName,
- enabled = false,
- energy_required = recipe.craftTime,
- hide_from_player_crafting = settings.startup["elc-cannot-hand-craft"].value,
- category = "advanced-crafting",
- -- emissions_multiplier = 10,
- -- overload_multiplier = 2,
- crafting_machine_tint = {primary = {r = 0, g = 1, b = 0, a = 0}},
- ingredients = recipe.ingredients,
- result = linkedChestName
- },
- {
- type = "technology",
- name = linkedChestName,
- icon = "__enderlinkedchest__/graphics/entity/ender-linked-chest.png",
- icon_size = 128,
- effects = {{type = "unlock-recipe", recipe = linkedChestName}},
- prerequisites = recipe.techRequisites,
- unit = recipe.techUnit,
- order = "a-b-b"
- }
- }
- )
Comments
-
- 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