Need help making an Infection mod.
Please can I have full code on how to do this.
Let's say, I have a bunch of NodeA floating in middair. Every five seconds each NodeA should have a 0.5 chance of changing air node directly beneath it into another NodeA. Every five seconds each NodeA should have a 0.25 chance of turning any air node directly beside it into NodeA.
Now, imagine NodeA has spread to the ground. Every five seconds each NodeA should have a 0.5 chance of changing any non-air node touching it into NodeB.
Let's say, I have a bunch of NodeA floating in middair. Every five seconds each NodeA should have a 0.5 chance of changing air node directly beneath it into another NodeA. Every five seconds each NodeA should have a 0.25 chance of turning any air node directly beside it into NodeA.
Now, imagine NodeA has spread to the ground. Every five seconds each NodeA should have a 0.5 chance of changing any non-air node touching it into NodeB.