(Resolved) Blue Print Question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

(Resolved) Blue Print Question

Post by TheSAguy »

EDIT: It's got to do with Item Type and Flags.
You have to have the flag "player-creation" and in my case below, you can't select a type = "Tree" using a blueprint

How do I make an item be able to be selected by the blue blueprint?
(I can deconstruct with red, but can't use blue on them. It's just non-selectable.)

At first I thought it was because the subgroup was "Tree", but even after changing it to production-machine, no luck.

Here is the Entity:

Code: Select all

 {
    type = "tree",
    name = "bi-seedling",
    icon = "__Bio_Industries__/graphics/icons/Seedling.png",
	order = "x[bi]-a[bi-seedling]",
    flags = {"placeable-neutral", "breaths-air"},
    minable =
    {
      mining_particle = "wooden-particle",
      mining_time = 0.25,
      result = "bi-seedling",
      count = 1
    },
    emissions_per_tick = -0.0006,
    max_health = 5,
    collision_box = {{-0.8, -0.8}, {0.8, 0.8}},
    selection_box = {{-0.8, -0.8}, {0.8, 0.8}},
    drawing_box = {{-0.4, -0.6}, {0.2, 0.4}},
    --subgroup = "trees",
	subgroup = "production-machine",
    vehicle_impact_sound = { filename = "__base__/sound/car-wood-impact.ogg", volume = 1.0 },
	pictures =
	{
	  {
		filename = "__Bio_Industries__/graphics/icons/Seedling.png",
		priority = "extra-high",
		width = 32,
		height = 32,
		shift = {0.0, 0.0}
      },
	},
  },
  
Here is the Item:

Code: Select all

  {
    type = "item",
    name = "bi-seedling",
    icon = "__Bio_Industries__/graphics/icons/Seedling.png",
    flags = {"goes-to-main-inventory"},
    --subgroup = "trees",
	subgroup = "production-machine",
	order = "x[bi]-a[bi-seedling]",
	place_result="bi-seedling",
	fuel_value = "1MJ",
    stack_size= 50
  },
Thanks.
Post Reply

Return to “Modding help”