I am trying to make a custom set of loaders but when using the built-in loader-1x1 my entity is not selectable with blueprint, deconstruction, or upgrade planners.
Example of 1 tier which is not selectable
loader = table.deepcopy(data.raw['loader-1x1']['loader-1x1']);
loader.name = "ddi-fast ...
Search found 5 matches
- Sat Nov 08, 2025 6:55 am
- Forum: Modding help
- Topic: Unable to use deconstruction, upgrade, or BP on loader-1x1 deepcopy entity
- Replies: 2
- Views: 517
- Sun Dec 15, 2024 4:34 am
- Forum: Modding help
- Topic: Multiple items when breaking entity
- Replies: 0
- Views: 252
Multiple items when breaking entity
I am trying to have 1 entity give 2 items when broken.
Currently I have the code as entity.mineable = {mining_time=0.1, results={{type="item",name="item1 name", amount=1},{type="item",name="item2 name", amount=1}}} but is setting a different item as the mineable result instead.
Currently I have the code as entity.mineable = {mining_time=0.1, results={{type="item",name="item1 name", amount=1},{type="item",name="item2 name", amount=1}}} but is setting a different item as the mineable result instead.
- Tue Dec 03, 2024 10:20 am
- Forum: Modding help
- Topic: [Solved]DeepCopy of unsorted items missing from normal gameplay
- Replies: 4
- Views: 787
Re: DeepCopy of unsorted items missing from normal gameplay
This worked for me.
local entity = table.deepcopy(data.raw['lane-splitter']['lane-splitter'])
entity.name = "my-splitter"
entity.hidden = false
data:extend{entity}
local item = table.deepcopy(data.raw['item']['lane-splitter'])
item.name = "my-splitter"
item.subgroup = "belt"
item.place_result ...
- Mon Dec 02, 2024 9:32 am
- Forum: Modding help
- Topic: [Solved]DeepCopy of unsorted items missing from normal gameplay
- Replies: 4
- Views: 787
Re: DeepCopy of unsorted items missing from normal gameplay
I tried that, also made a custom subgroup in the logistics group to move the item to and set its new order.
The custom subgroup works, but only in editor mode.
- Sun Dec 01, 2024 6:19 pm
- Forum: Modding help
- Topic: [Solved]DeepCopy of unsorted items missing from normal gameplay
- Replies: 4
- Views: 787
[Solved]DeepCopy of unsorted items missing from normal gameplay
I am trying to make a mod which utilizes the lane splitter found in the unsorted item group when in editor mode. I would love to use this during normal gameplay but when I use deepcopy to make the item and entity, nothing shows up in the menu unless I enable the editor mode. Is there a setting or ...