How to remove the grenade?

Place to get help with not working mods / modding interface.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

How to remove the grenade?

Post by WIZ4 »

Please tell me what I should write in the data.lua that would remove the grenade?
My native language is russian. Sorry if my messages are difficult to read.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to remove the grenade?

Post by DaveMcW »

Code: Select all

local effects = data.raw["technology"]["military-2"].effects
for key,_ in pairs(effects) do
  if (effects[key].recipe == "grenade") then
    effects[key] = nil
  end
end
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: How to remove the grenade?

Post by WIZ4 »

DaveMcW wrote:

Code: Select all

local effects = data.raw["technology"]["military-2"].effects
for key,_ in pairs(effects) do
  if (effects[key].recipe == "grenade") then
    effects[key] = nil
  end
end
Thank you:)
My native language is russian. Sorry if my messages are difficult to read.
Post Reply

Return to “Modding help”