Started by
Greo
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a dimension in which you have a 0.0025% probability per tick to randomly exit the dimension and teleport to the overworld. How to do it? Is there a way? I know how to make probabilitys but I dont know how to do per tick and haw to detect a player beeing inside a dimension. Pls help.
I think there is a block for "dimension of <event/target entity>". Create a procedure, then change "no additional trigger" to "player tick update". Then, add an if statement to check if the player is in your dimension. Then, add a second if statement that checks if "( Random [0, 1) ) < (0.000025)". Then, you can add a block to move the player to the overworld.
Thanks! It worked.
I really could habe got this myself :,)