Jump to content

[SOLVED] How to create a MeshDefiniton of a json?


Grookey

Recommended Posts

create the model with Blockbench, than:

  1. create a new MeshDefinition
  2. get the PartDefinition from the MeshDefinition
  3. use CubeListBuilder#create to create a new one, and copy the texture offset and the box from the Blockbench model into the CubeListBuilder
  4. add the CubeListBuilder and a String and the position and rotation offset (use PartPose) to the PartDefinition
  5. use LayerDefinition#create to create a new one and register them

finally you have a model for an Entity

Link to comment
Share on other sites

  • Grookey changed the title to [SOLVED] How to create a MeshDefiniton of a json?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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