Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • 4 weeks later...
  • 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!

  • 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 by Abattoir

  • Author

I found a mod called Xaero's Minimap which can store waypoints per world.

 

reC4NtI.png

 

Do you know how can it recognise the server worlds or it uses a custom method?

Edited by Abattoir

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.