Started by
chesscat
on
Topic category: Help with Minecraft modding (Java Edition)
So for example: There's a infecting block that replaces the blocks next to it
Another example: Sculk Infector (Every few ticks, the blocks next to it get turned to sculk)
It's easy enough to convert adjacent blocks to sculk; the problem is infecting larger areas. (This is why vanilla sculk uses charges, which move through the sculk to infect stuff.) How far do you want this to be able to spread, and in what sort of pattern?
Sorry for the late reply, maybe like 30 blocks probably, maybe even 100, and the pattern would be like the sculk catalyst pattern
For that you should probably use the 'check for block in 6*6*6 box' procedure template. By default it checks every block in a 6*6*6 box to see if it matches a desired block; but you can expand the size of the box, and instead of checking for a block, check if the block at the currently selected position is tagged as sculk spreadable, and, if it is, have a 10% chance or so to replace it with sculk. (If you want to limit the number of sculk that can be generated in one go, you could also add a local number variable to keep track of this.)
Alright, I'll try that, thanks!