A help please?Solved

Hi.

I edit all the settings and realized that when I put randomOutbreaksOccur: false (I understand that if true, it does random outbreaks) the infection does not load.

Because I want them to only get infected when they consume what I put in the configuration

Try to check my json file for Mosaic. It is a disease that will occur only when you eat vegetables.
I use these settings:

  "infectionChanceCovered": 1.0,
  "infectionChanceUncovered": 1.0,​

I know it's not zero but if I got the plugin right, these should do. I am testing it right now so eventually I'll update

well my question is if I leave it true, does it produce random shoots or only works if what I put in the settings is consumed

Merged post

Pongo lo que me dijiste:
"InfectionChanceCovered": 1.0,
"InfectionChanceUncovered": 1.0,
La gente sigue infectada sin consumir la comida que les pongo.

Si pongo esto así, la gente no se contagia con la comida:
randomOutbreaksOccur: falso

Merged post

I put what you told me:
"InfectionChanceCovered": 1.0,
"InfectionChanceUncovered": 1.0,
People continue to be infected without consuming the food that I put on them.

If I put this like this, people do not get infected with food:
randomOutbreaksOccur: false

drWxxSoEASuj8PF.jpg relaxito

well my question is if I leave it true, does it produce random shoots or only works if what I put in the settings is consumed

Merged post

Pongo lo que me dijiste:
"InfectionChanceCovered": 1.0,
"InfectionChanceUncovered": 1.0,
La gente sigue infectada sin consumir la comida que les pongo.

Si pongo esto así, la gente no se contagia con la comida:
randomOutbreaksOccur: falso

Merged post

I put what you told me:
"InfectionChanceCovered": 1.0,
"InfectionChanceUncovered": 1.0,
People continue to be infected without consuming the food that I put on them.

If I put this like this, people do not get infected with food:
randomOutbreaksOccur: false

I think you are understanding this correctly, when you set randomOutbreaksOccur to false, it is supposed to remove the possibility of people "spontaneously" becoming infected. If set to false, they would only be able to be infected through other means, like spreading from a player or consuming an item that causes infection... that's how it is supposed to work anyways.

Looking at the code, it seems there is a bug that if randomOutbreaksOccur is set to false, it (mistakenly) also disables disease spreading between individuals. This is not intended and I will have to fix this in the future. In the meantime, I would recommend you set randomOutbreaksOccur to true, and set randomOutbreakInfectionChance to 0. This should be a valid workaround for what you want, it doesn't technically disable random outbreaks, but it makes it so it is impossible for them to infect anyone that way.

I hope this helps and answers your question!

So, if I get it right (and until the next upgrade), these settings:

  "randomOutbreaksOccur": true,
    "randomOutbreakInfectionChance": 0,​

Entities won't get a spontaneous infection BUT they will only get it from items consumption, right? This will produce infections only among players, I guess. Nice!

I was talking to him and he told me this, I leave you this information to help you:

in order to make it so they can only get infected by eating chicken, I recommend the following settings:

"randomOutbreaksOccur": true,
"randomOutbreakInfectionChance": 0,
"itemsThatCauseOutbreaksOnConsumption": [
    {
      "shortName": "chicken.raw",
      "percentChance": 100.0
    },
]​

If you have these settings, they cannot get infected randomly. They will only get infected by eating raw chicken and becoming infected by spreading from other players. If you want to disable player disease spreading too I recommend adding these settings too:

"infectionChanceCovered": 0,
"infectionChanceUncovered": 0,
sw1BuJXN3Z3qZSW.png JagsterWintermute

So, if I get it right (and until the next upgrade), these settings:

  "randomOutbreaksOccur": true,
    "randomOutbreakInfectionChance": 0,​

Entities won't get a spontaneous infection BUT they will only get it from items consumption, right? This will produce infections only among players, I guess. Nice!

Yes thats correct

Locked automatically