How do i turn lava into a custom block in a custom dimention?

Started by crowinsanity13 on

Topic category: Help with modding (Java Edition)

Last seen on 19:33, 16. Apr 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i turn lava into a custom block in a custom dimention?

im not sure if this is simple or complex, but i want every lava block in my world turned into a custom block, i dont want anyone bringing lava inside the dimension so.heres the code i got so far

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use dimension generation-…
Fri, 08/06/2021 - 05:22

use dimension generation--fluid block

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
procedure on block tick…
Fri, 08/06/2021 - 05:25

procedure

on block tick update:

if block at <x y z> is lava:

    replace block at <x y z> extinguished_lava(or whatever block)

    play sound lava_extinguish

    summon particle extinguish at <x y z> amount:(some amount)

else if block at <x y z> is flowing_lava:

    remove(not break unless you want lava breaking particle!) block at <x y z>

    summon particle extinguish at <x y z> amount:(some amount)

    play sound lava_extinguish

    //if you have a "extinguished flowing lava block" or something like that change remove block to replace block

Last seen on 19:33, 16. Apr 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that didnt do anything,…
Sat, 08/14/2021 - 20:55

that didnt do anything, thesupermoder, the lava is still there, might be because i don't know what you mean with block update, there wasnt an option for that unless you make a new block, which i don't see what kind of block i need to make to do that