Started by
0bscureLight
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
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.
I already tried it but it doesn't work.
@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)