A fluid that changes neighbor block into different blocks

Started by XiaoNanAlpha on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2020
Points:
688

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
A fluid that changes neighbor block into different blocks

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 :(

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
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.

Active 1 year ago
Joined May 2020
Points:
688

User statistics:

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

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

Active 3 weeks ago
Joined Aug 2017
Points:
947

User statistics:

  • Modifications: 1
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 166
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

Active 8 months ago
Joined Jul 2021
Points:
647

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
can you put a screenshot pls?
Tue, 08/10/2021 - 12:24

can you put a screenshot pls?