How can I make an infection?

Started by chesscat on

Topic category: Help with modding (Java Edition)

Last seen on 18:58, 3. Mar 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make an infection?

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)

Last seen on 16:02, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's easy enough to convert…
Sat, 01/27/2024 - 13:06

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?

Last seen on 18:58, 3. Mar 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for the late reply,…
Sat, 02/03/2024 - 17:35

Sorry for the late reply, maybe like 30 blocks probably, maybe even 100, and the pattern would be like the sculk catalyst pattern

Last seen on 16:02, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For that you should probably…
Mon, 02/05/2024 - 11:45

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.)

Last seen on 18:58, 3. Mar 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, I'll try that,…
Sun, 02/11/2024 - 16:55

Alright, I'll try that, thanks!