Posted June 19Jun 19 ๐ ๏ธ Fix for Transparent or Clipping Item Render Issues When Held in First Person (Forge 1.20+) Hey everyone! I recently ran into a frustrating bug while making a custom item (a rocket) for my Forge mod, and Iโm sharing the fix because itโs a bit obscure โ and it worked wonders. ๐ฅ The Problem: My item rendered semi-transparent and see-through โ but only in first person. It also clipped through nearby blocks when held, unlike default items like swords or leads. The texture file was confirmed to be fully opaque (alpha 255), so the issue wasnโt the PNG itself. Interestingly, when no texture was present and the default purple-black checkerboard appeared, the clipping issue disappeared. โ The Fix: I ended up resolving it by randomly trying something I found on a Forge forum post about block rendering. I added this property to my item's model JSON โ even though it's typically only used for blocks: { "parent": "item/generated", "textures": { "layer0": "farbeyond:item/rocket_item" }, "render_type": "minecraft:cutout" } Boom. That single line forced the item to render using a proper opaque (cutout) layer, removing all the unwanted transparency and clipping behavior in first person. ๐ Credit: I originally found the "render_type" trick mentioned here, in a block rendering context: ๐ https://forums.minecraftforge.net/topic/149644-1201-help-with-transparent-blocks/ Even though it was meant for blocks, I thought, why not try it on an item? And it worked! Big thanks to the poster โ this fix wouldnโt have happened without that tip. Hopefully this helps anyone else stuck on a weird rendering bug like I was. This isnโt a common item solution, so feel free to share it further. Iโd love to know if it works for you too. Edited June 19Jun 19 by Loghan i did not put a title fitting with the description
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.