Page 1 of 1

Disable/Remove Creepers

Posted: Tue Mar 05, 2013 11:19 pm
by tanukihat
I'm having trouble finding a straight answer to this on the forums.

Is there a way to edit the JSON or LUA files to permanently remove creeper attacks, or at least disable them while leaving the creeper spawners?

I've tried editing some of the values in some of the data files, but nothing seems to prevent them - turning their health to 0, increasing spawn time...maybe I'm editing the wrong files? Clear directions are needed please.

Thanks!

Re: Disable/Remove Creepers

Posted: Wed Mar 06, 2013 12:04 am
by rk84
Yes. Remove/Comment this command in control.lua in your savegame folder (or in freegame.lua for all new games)

Code: Select all

      game.setmulticommand({type=defines.command.attack,
                             target=glob.player,
                             distraction=defines.distraction.byenemy},
                             glob.attackcount)
or you can stop attack timing by neutralizing this line.

Code: Select all

 glob.untilnextattacknormal = glob.untilnextattacknormal - 1

Re: Disable/Remove Creepers

Posted: Wed Mar 06, 2013 12:08 am
by tanukihat
Perfect. Thank you very much.