Internal Exception: java.io.IOException: Connection reset by peer
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By MagicSpear · Posted
So I'm working on a clothing mod and the idea is that there's an armor that in it's 3D view covers the players main arm and I basically want when I wear this armor for it to also show in first person that the player's arm is covered in this model too. So basicaly what I wanted to do is copy the player's arm model and simply make it copy his main arm's animations. However I've found out that it doesn't do it properly at all & the animations are very chunky? Here's The Code so far. -
For my mod I want to reload a single texture from the assets. (So all resource packs and such). I've succeeded in forcing a client to reload all assets, basically forcing an F3+T, but now I want to know if its possible to reload a single texture or resource. While it would be good to be able to reload models as well (When I say resource I mean sounds, textures, models, those things), I would settle for just being able to reload a texture. I've reloaded all assets using Minecraft.getInstance().reloadResourcePacks(); on the client side. My client is receiving a custom packet that contains a string resource location. This string is turned into an actual ResourceLocation, before being sent to my ResourceReloader.reloadSingleTexture utility function. What I've tried in my utility function: Resources I've looked at: Reloading all textures, and outdated (somewhere around 1.9-1.12) Maybe a "new way" with forge to reload textures? Seems mostly for testing and not for use as a part of your mod: https://gist.github.com/Gegy/148be244454fe667ade6c09cc6d5145e Havent looked much at this one, but it seems to be reloading groups/namespaces of textures somehow? Also outdated - 1.12 https://www.curseforge.com/minecraft/mc-mods/resource-reloader Isn't super helpful, since fabric, but also seems to just be mixin the keyboard so that F3+T works in GUI's, nothing very useful: https://modrinth.com/mod/f3-t-everywhere
-
By TileEntity · Posted
Then it may refer to the system - I have no idea -
By scientistknight1 · Posted
Yeah, Minecraft.getInstance().player only works on the client side. Is there a way to get the player from the NetworkEvent.Context?
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.