New Intermediate Entity (?)
New Intermediate Entity (?)
Is it possible to create additional intermediate entities? If so, what type should the prototype be? Specifically, I wanted to create "iron-cable" similar to "copper-cable".
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
Re: New Intermediate Entity (?)
You just need to make an item definition and the corresponding recipes to produce/use it. See the modding tutorial in the forum for more info on how to do it.
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ

"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ

"should be fixed"
Re: New Intermediate Entity (?)
Yeah, I did all of that; I just mean what prototype am I supposed to use for intermediate products like cable ...I had to use fish to make it work for now.Arch666Angel wrote:You just need to make an item definition and the corresponding recipes to produce/use it. See the modding tutorial in the forum for more info on how to do it.
Re: New Intermediate Entity (?)
Have a look at how the copper-cable is defined in the base game files and do the same thing for iron-cable?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: New Intermediate Entity (?)
There's no wire entities defined in vanilla files.
Wire item definition is in no way different from definition of any simple item like gear.
Seeing how wire connection pics are located in __core__ I'd say they are hardcoded. (And I believe I remember seeing confirmation of that somewhere here.)
If a graphical representation of connection between two buildings is needed, without connecting electric or logical networks, you could try using beams. However last time I've tried it was mandatory to use intermediate dummy unit to create one.
Wire item definition is in no way different from definition of any simple item like gear.
Seeing how wire connection pics are located in __core__ I'd say they are hardcoded. (And I believe I remember seeing confirmation of that somewhere here.)
If a graphical representation of connection between two buildings is needed, without connecting electric or logical networks, you could try using beams. However last time I've tried it was mandatory to use intermediate dummy unit to create one.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: New Intermediate Entity (?)
Sounds like he's just looking for a new crafting ingredient. A new wire to connect buildings would not be an intermediate but an end result.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
Re: New Intermediate Entity (?)
Yeah that's what I thought!prg wrote:Sounds like he's just looking for a new crafting ingredient. A new wire to connect buildings would not be an intermediate but an end result.

Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ

"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ

"should be fixed"
Re: New Intermediate Entity (?)
You guys are all correct; that is my dilemma. I just want the type I should use for a new intermediate ...I guess it was the developers intent that we should use "fish" for all new intermediates

Code: Select all
-- Iron Cable
data:extend (
{
{
type = "fish",
name = "iron-cable",
icon = "__base__/graphics/icons/copper-cable.png",
flags = {"player-creation"},
max_health = 1,
pictures =
{
filename = "__base__/graphics/icons/copper-cable.png",
width = 32,
height = 40
}
},
}
)
Re: New Intermediate Entity (?)
What exactly is it you want to achieve in the end? If you want to make a new crafting ingredient, it needs to be an item, not an entity.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!