Jump to content

Recommended Posts

Posted

Hi,

I'm trying to make an animal entity, and I've looked at the code for standard animal models.

I've got no problem with the size for each part of the animal and the texture offset.

I can't get my head around the relation between the offsets in addBox and the coordinates supplied to setRotationPoint, so I can't get the blocks where I want them. 

I thought rotation point would be to do with movement and addBox to do with initial position, but changing the parameters to setRotationPoint seems to change where the block is positioned.

Can someone explain or point me at some documentation?

Thanks!

  • Confused 2
  • 6 years later...
Posted (edited)

Throughout a day i tried to understand what each variable does, and at the end of a day, i finally got it, but what EXACTLY (difference between) setRotationPoint and addBox does - idk

Alias for setRotationPoint = "srp", addBox = "ab"

-----------------NERD-TALK-----------------

SO, the most sussy value is Y-axis. Starting from srp, 24.0F - is height +0, meaning a starting point. in ab, 0.0F is also height +0. When you decrement srp or ab y-axis  values - you get height +1 with each -1, meaning you can interpretate same height in infinite ways, same for X axis but srp starting point is 0.0F, note that none of each applies to Z axis - it is 'normal'

For example, task: Place cube with dimensions 3, 3, 3 to coords -1.5, 6, -4.
My theory approach: Decrement cube Y dimension from ab value, and decrement srp value until satisfied(3 in this case).
I think X and Z axis do not need explanation, but still: you can set -1.5 and -4 to either srp or/and ab

-------------INTERESTING-PART-------------

this.head = new ModelRenderer((ModelBase)this, 0, 10)). addBox(-1.5f, -3.0f, -3.0f, 3, 3, 3);
# For X and Y axis - decrement its dimension to get position 0. To achieve -1.5 in X axis - add this reverted value to srp/ab (ab in this case)
this.head.setRotationPoint(0.0f, 21.0f, -2.0f); # Decrementing 3 to achieve "6" height (you can do so with ab value, but NOTE that i don't know the difference between both)
Edit: I Figured it out by playing with java entity class file for forge 1.7.10

Hope this helps someone if you went this far somehow ;)

Edited by Sputchik

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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