Posted August 17, 20214 yr I have a json model and I want to put the model on a ThrownItemProjectile Edited August 18, 20214 yr by Grookey
August 17, 20214 yr create the model with Blockbench, than: create a new MeshDefinition get the PartDefinition from the MeshDefinition use CubeListBuilder#create to create a new one, and copy the texture offset and the box from the Blockbench model into the CubeListBuilder add the CubeListBuilder and a String and the position and rotation offset (use PartPose) to the PartDefinition use LayerDefinition#create to create a new one and register them finally you have a model for an Entity
August 17, 20214 yr Author I have two errors on CubeListBuilder.create().addBox() code: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/models/HitOfNatureModel.java#L32-L33
August 17, 20214 yr remove the last two parameters (float and boolean) Edited August 17, 20214 yr by Luis_ST
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.