-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Jadikan Sakura38 Sebagai Tempat Anda Meraih Kemenangan Besar! Dengan Daftar Link Slot Minimal Deposit 1000 Dijamin Menang Bergabunglah Sekarang Dan Rasakan Pengalaman Berjudi Yang Mengasyikkan Serta Peluang Menang Yang Tinggi
-
By EagleOfFire · Posted
Hello, for educational purpose I am trying to port a mod from 1.20.1 to 1.20.2+ but I can't understand how the new networking system works. I manage to get through it for the most part, but I'm stuck on how to register packets. The previous method was: INSTANCE.registerMessage(id++, CPExecuteSkill.class, CPExecuteSkill::toBytes, CPExecuteSkill::fromBytes, CPExecuteSkill::handle); with instance being of type SimpleChannel. (The forge document is not up to date for this part unfortunatly) Any help or clear documentation would be welcome. -
A code: public class CommonProxy { public void registerItemRenderer() { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register( ModItems.YOUR_ITEM, 0, new ModelResourceLocation(ModItems.YOUR_ITEM.getRegistryName(), "inventory") ); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register( ModItems.YOUR_ITEM, 0, new ModelResourceLocation(ModItems.YOUR_ITEM.getRegistryName(), "inventory"), new CustomItemRenderer(Minecraft.getMinecraft().getTextureManager(), Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getModelManager(), Minecraft.getMinecraft().getItemColors()) ); } } In YOUR_ITEM you must specify item. If not working try this: public class ModInit { @Mod.EventHandler public void init(FMLInitializationEvent event) { CommonProxy commonProxy = new CommonProxy(); commonProxy.registerItemRenderer(); } }
-
By TileEntity · Posted
Delete the jei-server.toml file in your config folder and test it again -
By TileEntity · Posted
java.util.ConcurrentModificationException at java.base/java.util.HashMap.computeIfAbsent(Unknown Source) at Genesis//com.moonsworth.lunar. ... Looks like an issue with the Launcher - Make a test with another Launcher like MultiMC, AT Launcher or Technic Launcher or try the original one
-
-
Topics
-
Who's Online (See full list)
- Starfall
- GAMPANG MAXWIN
- azrielamerylin
- QUENZZ
- EMCIALAN
- Ugdhar
- Im_Maker
- jocky
- miserablefancie
- slot gacor bonus 100
- slot bonus new member 100
- Paint_Ninja
- Slot bonus 100
- Jeannie Golabek - Vigna
- yona.8b
- yona.8bc
- sera3.e
- simae_d
- Choonster
- Legacy
- Mai Me Ya
- SANCA_
- lagicarirezeki
- kimakk
- Chronicles
- Bowl
- Shadow222
- Odyssey11
- Skyward
- Masak Air
- PULSA
- EagleOfFire
- TileEntity
- telurmartabak
- balon168
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.