Jump to content

Recommended Posts

Posted

Hi, I want to turn the player hand into a BakedQuad. My questions are...: What are the dimensions?, How to position it? and How to bind the player's skin texture? (Is that regular texture binding or not.). So, if you can please answer these questions, and I will appreciate a code too.

Posted

Hi, the vanilla dimensions for the biped arm are 4x12x4, XYZ. You can do the very same thing in .JSON, same exact dimensions. Even if it is to big in-game, you can always do translations, rotations, and scalings in the .JSON model itself. As for binding the texture, you need to first have a "dummy / test" skin to correctly UV onto the model in the .JSON code - that is really simple. I personally do not know how to bind the texture of the player's skin into a model since the model's texture is defined within itself. Also, another problem would be that the player instance would not be created / would be null during the call to bind te texture. If you could find a way to bind the texture when joining the world by somehow saving it, then applying it, that would fix the problem. Maybe TheGreyGhost could possibly post here with some help.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Posted

Thanks, and how the .JSON file would look like? Because I've only used normal .JSON files like, for textures. Do I have to parse the dimensions in the display object? Like this:

 

{
    "parent": "something OR builtin/generated"
    "display": {
         "something for x": 4,
         "something for y": 12,
         "something for z": 4
    }
}

 

Or, I have to use other object...?

Posted

Just make your .JSON as normal, you only need one cuboid for an arm. If you can't figure it, use MrCrayfish's .JSON model creator or BDCraftCubik. I recommend MrCrayFish's, really simple and you can make complex stuff.

www.mrcrayfish.com

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

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.