Jump to content

SergOmarov

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by SergOmarov

  1. 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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.