Posted August 6, 201510 yr 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.
August 8, 201510 yr 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]
August 9, 201510 yr Author 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...?
August 9, 201510 yr 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]
August 9, 201510 yr I'm not home right now, when I am I'll try it out, I have a working model wrapper prototype/ test. 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.