Question about blocks and entities

Started by 0bscureLight on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Question about blocks and entities
Thu, 02/04/2021 - 22:30 (edited)

So basically i made a cold dimension and wanted to make it so that when you place water in it it turns into ice while lava turns into obsidian. But i can't figure out how to make it work.

[Resolved] And i also wanted that any mob in that dimension gets a custom effect, and i wanted the boss mobs and the mobs native to that place to be unaffected by it. As for the player there is an item for that.

 

Could you please help me? Thanks.

Edited by 0bscureLight on Thu, 02/04/2021 - 22:30
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well you need to use…
Wed, 02/03/2021 - 07:06

Well you need to use procedure with global event "Block Placed " or something like that. I don't have access to mcreator right now.

And then use:

if get block at x y z = lava

do replace block with obsidian.

Same for water just replace lava with water and obsidian to ice. You can do it all in one procedure.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think there is a way of…
Wed, 02/03/2021 - 07:17

I think there is a way of detecting what mob is, so you do that, if current dimension = your dimension do (whatever is used too detect the mod) give effect (the effect).

With the player is easier, on player tick update you check the dimension and, if it's your dimension, give the player the effect for 1 tick.

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I already tried it but it…
Wed, 02/03/2021 - 08:51

I already tried it but it doesn't work.

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@The , the player alerady…
Wed, 02/03/2021 - 08:53

@The , the player alerady has the procedure for the effect, for the mobs i tried it with "world tick update" but the procedure says it needs the world procedure (idk how to explain it propperly)