how do you create a block that spreads to its neighbours

Started by snicktrix on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you create a block that spreads to its neighbours
Mon, 07/31/2023 - 15:32 (edited)

I need infection block, how do i do it

Edited by snicktrix on Mon, 07/31/2023 - 15:32
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello!Go in "Advanced…
Mon, 07/31/2023 - 21:27

Hello!
Go in "Advanced properties" on your block and enable Tick randomly.

Then go in triggers and create an update tick procedure.

Inside the procedure, create 3 number local variables, and follow this tutorial image:

[Image]

Replace the green block with the block you want to be corrupted, and the red block with the corruption block.

Hope this helps!

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but what if i want to…
Sat, 09/07/2024 - 19:32

but what if i want to corrupt any block except air?

do i do like get block at (the things) not = to air do?