Started by
GamerGoat56
on
Topic category: Help with MCreator software
Hey! I was wondering whether it was possible to use the world seed as the seed to randomize variables so that the variable is the same every time the world is generated, but different for each world; and if so, how? Thanks for any help in advance!
I found this, for 1.18.2:
It returns current world's seed in a variable of type Long.
Use a Custom code snippet.
If you want to convert it to a variable of type Int or Double, DON'T do this:
It will return a different value to your seed.
Instead, first convert the Long variable to a String, and then parse it.
I hope this is helpful to you.
Sorry, it's not Int.ParseInt() or Double.ParseDouble(). It's Integer.parseInt() and Double.parseDouble()
ShadowGriff872 does this work for Mcreator 2023.2? If so, how do I make it work?