Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
Prevent biters from attacking something
Re: Prevent biters from attacking something
If you mark the entity as indestructible they won't attack it. https://forums.factorio.com/wiki/inde ... structible
If you want to get ahold of me I'm almost always on Discord.
Re: Prevent biters from attacking something
I added the below, but did not seem to work. It also did not crash though
What is the correct syntax?
![Smile :)](./images/smilies/icon_e_smile.gif)
Code: Select all
data.raw["straight-rail"]["straight-rail"].destructible = false
data.raw["curved-rail"]["curved-rail"].destructible = false
Re: Prevent biters from attacking something
It's not prototype field, it's entity field. You need to do that when they are built.
Other way to try would be to remove "player-creation" from the prototype flags in definition or rails.
Other way to try would be to remove "player-creation" from the prototype flags in definition or rails.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Prevent biters from attacking something
I think you want to create a new force, (by default there are 3 forces, player, neutral, biter) and assign the rail entities to the new force. Alternatively, assign the rails to the neutral force. Biters should ignore entities not part of the player force.TheSAguy wrote:Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
Note: I have not tested this, I only speculate forces will work (as delineating ownership is their purpose)
Re: Prevent biters from attacking something
Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.Afforess wrote:I think you want to create a new force, (by default there are 3 forces, player, neutral, biter) and assign the rail entities to the new force. Alternatively, assign the rails to the neutral force. Biters should ignore entities not part of the player force.TheSAguy wrote:Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
Note: I have not tested this, I only speculate forces will work (as delineating ownership is their purpose)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: Prevent biters from attacking something
Huh, is that actually an actual "chewing" behavior? I always thought biters just damaged structures that they passed too closely to.prg wrote: Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.
Re: Prevent biters from attacking something
They have to actually attack something if they want to damage it, yes. They don't tear down walls by just looking at them funny.Afforess wrote:Huh, is that actually an actual "chewing" behavior? I always thought biters just damaged structures that they passed too closely to.prg wrote: Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.