Posted December 29, 20204 yr Hello. I would like to create an 1.16.4 client-side mod which can store per-world info but I don’t know how can I get any unique info about a world in a server? I only found the dimension but I would like to add multiworld support so I have to distinguish the worlds. Thanks for your answer.
January 24, 20214 yr Author I don’t find that method. Can you please explain it more how can I get the server world seed from my client-side mod? Thanks!
January 25, 20214 yr Author I found that on some servers (like Hypixel) the seed is 0. What can cause this? Is there any other way to identify the world? Code: @SubscribeEvent public static void onPlayerJoin(EntityJoinWorldEvent event) { if (Minecraft.getInstance().player == null || event.getEntity() != Minecraft.getInstance().player) { return; } BiomeManager biomeManager = Minecraft.getInstance().player.getEntityWorld().getBiomeManager(); Long seed = ObfuscationReflectionHelper.getPrivateValue(BiomeManager.class, biomeManager, "field_226833_b_"); if (seed == null) { return; } System.out.println("SEED: " + seed); // DEBUG } Edited January 25, 20214 yr by Abattoir
January 25, 20214 yr Author I found a mod called Xaero's Minimap which can store waypoints per world. Do you know how can it recognise the server worlds or it uses a custom method? Edited January 25, 20214 yr by Abattoir
January 29, 20214 yr Author Okay. And what can I do with singleplayer worlds? They have any unique thing I can get?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.