TheAbelDev
New Member
Hi, I have a question about ChangeDimensionPacket.
I was able to make the loading screen appear when a player changes levels. But the world seems like it's in the nether and I'd like to solve that.
My code:
I was able to make the loading screen appear when a player changes levels. But the world seems like it's in the nether and I'd like to solve that.
My code:
Code:
ChangeDimensionPacket pk = new ChangeDimensionPacket();
pk.dimension = 1;
pk.x = x;
pk.y = y;
pk.z = z;
((Player) player).dataPacket(pk);
PlayStatusPacket pk2 = new PlayStatusPacket();
pk2.status = 3;
((Player) player).dataPacket(pk2);