Disable/Remove Creepers

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
tanukihat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 05, 2013 11:15 pm
Contact:

Disable/Remove Creepers

Post 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!

User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

Re: Disable/Remove Creepers

Post 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
Last edited by rk84 on Wed Mar 06, 2013 12:10 am, edited 1 time in total.
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela

tanukihat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 05, 2013 11:15 pm
Contact:

Re: Disable/Remove Creepers

Post by tanukihat »

Perfect. Thank you very much.

Post Reply

Return to “Gameplay Help”