Search found 9 matches
- Sun Aug 13, 2023 4:12 pm
- Forum: Modding help
- Topic: How to get the type of magazine which damaged the entity
- Replies: 1
- Views: 572
How to get the type of magazine which damaged the entity
I'm creating a mod which adds special types of magazines to the game, on of which explodes in a small area upon impact. I want to make it explode when an entity is damaged using the "on_entity_damaged" event, but I can't figure out how to get the type of magazine that damaged the entity.
- Thu Jan 14, 2021 12:51 pm
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
Oh ok.
- Thu Jan 14, 2021 8:02 am
- Forum: Gameplay Help
- Topic: Is there a way keep it all day just by visual but not the actual day/night mechanism?
- Replies: 8
- Views: 4811
Re: Is there a way keep it all day just by visual but not the actual day/night mechanism?
There is a way to do that without commands. There are night vision goggles in factorio vanilla and if you download the afraid of the dark mod you will be able to craft perfect night glasses.
- Thu Jan 14, 2021 7:58 am
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
I'm going to leave this thread open because I have no idea how to close it so if anyone knows plz tell me.
- Wed Jan 13, 2021 4:05 pm
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
It helped a lot.
- Wed Jan 13, 2021 3:56 pm
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
Ok I'll try that.PFQNiet wrote: Wed Jan 13, 2021 3:33 pm Deepcopy data.raw.item.inserter and change its properties as needed.
- Wed Jan 13, 2021 3:19 pm
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
And how do I add an item(I'm a beginner at modding)?
- Wed Jan 13, 2021 8:16 am
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
Re: Error in assignID
No, it's in item.lua. It's the last bit that seems to not work (recepie.result= "inserter2").
- Tue Jan 12, 2021 5:44 pm
- Forum: Modding help
- Topic: [Solved] Error in assignID
- Replies: 10
- Views: 2839
[Solved] Error in assignID
I have started modding and I got an error (Error in assignID: item with name 'inserter2' does not exits.)
My code so far (item.lua):
local inserter2 = table.deepcopy(data.raw["inserter"]["inserter"])
inserter2.name = "inserter2"
inserter2.icons = {
{
icon = inserter2.icon,
tint = {r=1,g=0,b=0,a ...
My code so far (item.lua):
local inserter2 = table.deepcopy(data.raw["inserter"]["inserter"])
inserter2.name = "inserter2"
inserter2.icons = {
{
icon = inserter2.icon,
tint = {r=1,g=0,b=0,a ...