A fluid that changes neighbor block into different blocks

Started by XiaoNanAlpha on Tue, 03/02/2021 - 02:43

Topic category: Help with modding (Java Edition)

Last seen on 10:03, 5. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
A fluid that changes neighbor block into different blocks
Tue, 03/02/2021 - 02:43

I wanted to make a liquid that melts almost everything(except stone), and stone converts to a custom block I made, but the fluid doesn't melt anything and it does not convert stones to custom blocks, I need some help please :(

Last seen on 18:46, 8. Apr 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use the block's update tick…
Tue, 03/02/2021 - 07:20

use the block's update tick to check surrounding blocks and do whatever. but make sure the procedure is not executing every tick or else the world will lag if there are lots of your custom fluid block around.

Last seen on 10:03, 5. Apr 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Actually, I need some help…
Tue, 03/02/2021 - 11:09

Actually, I need some help with the procedures too X)

Last seen on 16:57, 30. Mar 2021
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if block at x - 1 y z is …
Sun, 03/21/2021 - 05:43

if block at x - 1 y z is [insert you block here]

      set block x - 1 y z to [insert second block]

 

repeat this for each surrounding coordinate you want ex: perpendicular would be x-1 y z, x+1 y z, x y-1 z, x y+1 z, x y z-1, x y z+1