Posted November 5, 20222 yr Hello everyone! I know how to draw a model using a custom texture. In this example I draw a book like in the enchantment table in my method render in my BlockEntityRenderer: pose.pushPose(); pose.translate(0.5D, 1.0625D, 0.5D); pose.mulPose(Vector3f.YP.rotationDegrees(0)); pose.mulPose(Vector3f.ZP.rotationDegrees(67.5F)); pose.translate(0.0D, -0.125D, 0.0D); bookModel.setupAnim(0.0F, 0.1F, 0.9f, 1.2F); VertexConsumer vertexconsumer = buffer.getBuffer(RenderType.entitySolid(bookTexture)); bookModel.render(pose, vertexconsumer, light, overlay, 1.0F, 1.0F, 1.0F, 1.0F); pose.popPose(); Now I'm looking for a way to draw the book with its texture and with the added glint effect like that of enchanted items. Can anyone tell me what is the right RenderType if there is any? Or is there another way? Thank you all Edited November 5, 20222 yr by Zacomat solved
November 5, 20222 yr Not my area of expertise, but this thread has some code for doing it with a block https://forums.minecraftforge.net/topic/117560-solved-blockentity-rendering-too-dark/?do=findComment&comment=517765 I don't know enough about model rendering to say if it is correct, or it will work with what you are doing? Edited November 5, 20222 yr by warjort 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.
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.