#How to get a list of registered enchantments?

6 messages · Page 1 of 1 (latest)

fallen shuttle
#

Hi - I'm been trying for a while now. All the resources I can find say to get the call getRegistryManager() on the world object. But for the life of me I can't get a reference to the world object. I've tried this on server side and client side.

Both of the following lines are supposed to work, but world is null and getNetworkHandler() returns null as well. Once I have a proper wrapperLookup I can use that to get a RegistryEntryList of Enchantments.

Any suggestions?

        RegistryWrapper.WrapperLookup wrapperLookup = MinecraftClient.getInstance().getNetworkHandler().getRegistryManager();
        RegistryWrapper.WrapperLookup wrapperLookup = MinecraftClient.getInstance().world.getRegistryManager();

BTW: Is there any reason that there are so few tags to select from for these posts? Seems a bit limited.

serene dragon
civic dirge
#

where are you running that code?

#

also does the client get the enchantment registries synced?

serene dragon
#

It has to, right? Otherwise it couldn't apply soul speed properly and probably other stuff I'm forgetting

#

Riptide