First of all i know how to get random value with FastMath. I’m trying make mobs spawn randomly with:
node.setLocalTranslation(FastMath.nextRandomInt(-100, 100), 0, FastMath.nextRandomInt(-100, 100));
But i don’t really want them to spawn between -100 and 100. i want them to spawn between; -100 and -90 OR 100 and 90.
I’ve kinda tried something like this:
node.setLocalTranslation(FastMath.nextRandomInt((-100,-90), (100,90)), 0, FastMath.nextRandomInt((-100,-90));
I know this method doesn’t work like this.
Simply i want them to spawn around the house, not inside.
Is there any way/trick to make it happen?
i’ve tried few things but all failed.