light source on nonenergy entities

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Dysoch
Filter Inserter
Filter Inserter
Posts: 445
Joined: Fri Oct 18, 2013 2:27 pm
Contact:

light source on nonenergy entities

Post by Dysoch »

is it possible to add light sources to other entities then electric lamps or machines?

i tried this:

Code: Select all

type = "resource",
    name = "lava-1",
    icon = "__DyTech-Graphics__/graphics/fluid/lava-1.png",
    flags = {"placeable-neutral"},
    category = "lava",
    order="lava-1",
    infinite = true,
    minimum = 750,
    normal = 7500,
    minable =
    {
      hardness = 1,
      mining_time = 1,
      results =
      {
        {
          type = "fluid",
          name = "lava-1",
          amount_min = 1,
          amount_max = 1,
          probability = 1
        }
      }
    },
    collision_box = {{ -1.4, -1.4}, {1.4, 1.4}},
    selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
	light =
    {
      {
        type = "oriented",
        minimum_darkness = 0.0,
        picture =
        {
          filename = "__core__/graphics/light-small.png",
          priority = "medium",
          scale = 2,
          width = 150,
          height = 150
        },
        size = 2,
        intensity = 0.6
      },
      {
        type = "oriented",
        minimum_darkness = 0.3,
        picture =
        {
          filename = "__core__/graphics/light-medium.png",
          priority = "medium",
          scale = 2,
          width = 300,
          height = 300
        },
        size = 2,
        intensity = 0.6
      }
    },
it loads just fine, but no light. its kinda odd that lava doesnt give off light :P

also tried:

Code: Select all

light = {intensity = 0.9, size = 40},
still no light.

anyway we can do give light to resource types?
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: light source on nonenergy entities

Post by ficolas »

Dont think is possible, but you can make a lamp with no conpsumion and give it energy when created.

Post Reply

Return to “Modding help”