I need help with network api on 1.21 #4289
Unanswered
TheWhiteDog9487
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I previously made a mod for Minecraft 1.19 and 1.20 following the Fabric Wiki tutorials and it worked fine.
However, when I migrated it to 1.21, I realised that the APIs regarding networking had changed dramatically and what was on the Fabric Docs and Fabric Wiki was outdated. I found a description of the updates on the Fabric Blog, but I couldn't quite figure out what I needed to do to get my Mod working again.
My Mod looks like this.
The errors are mainly in
ServerPlayNetworking.registerGlobalReceiver()
,ClientPlayNetworking.send()
andClientPlayNetworking.registerGlobalReceiver()
. I'm not sure how to make the changes and I think I need some help.Beta Was this translation helpful? Give feedback.
All reactions