CrackedScreen Posted September 4, 2022 Share Posted September 4, 2022 (edited) Certain actions such as reloading the crossbow or pulling the bowstring hide the shield model. Where is the implementation for this, and what's the best way to use it if possible? Edited September 5, 2022 by CrackedScreen Marking thread as solved Quote Link to comment Share on other sites More sharing options...
warjort Posted September 4, 2022 Share Posted September 4, 2022 It's hardcoded in ItemInHandRenderer.evaluateWhichHandsToRender() Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
CrackedScreen Posted September 5, 2022 Author Share Posted September 5, 2022 In that case, are there any forge event handlers which allow me to do this or any existing examples where player arms are hidden? Quote Link to comment Share on other sites More sharing options...
warjort Posted September 5, 2022 Share Posted September 5, 2022 (edited) RenderHandEvent, you cancel the event to stop the rendering. e.g. @Mod.EventBusSubscriber(modid = MODID, value = Dist.CLIENT) public class ClientEvents { @SubscribeEvent public static void renderHand(RenderHandEvent event) { if (event.getHand() == InteractionHand.OFF_HAND) { if (Minecraft.getInstance().player.getItemInHand(InteractionHand.MAIN_HAND).is(Items.DIAMOND)) { event.setCanceled(true); } } } } Edited September 5, 2022 by warjort Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
CrackedScreen Posted September 5, 2022 Author Share Posted September 5, 2022 This works, thanks for helping. Marking this thread as solved. Quote Link to comment Share on other sites More sharing options...
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.