Posted August 10, 20178 yr This code should cancel the render of the model, it works, but the model is rendered: //Scala @SubscribeEvent def onRenderItem(e:RenderSpecificHandEvent): Unit = { val item=e.getItemStack if(item.getItem.isInstanceOf[ItemCustomRender]) { println("test") //work, test e.setCanceled(true) println("test1",e.isCanceled) //work, test1,true } } If RenderSpecificHandEvent is not designed to remove the model, then how do I get an empty model for my item? Thank you in advance.
August 11, 20178 yr Author It seems I understood: this event cancels the rendering only from the first person view.
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.