#Cannot Set non-integer position in Modded Entity - MCP export.

11 messages · Page 1 of 1 (latest)

lethal tide
#

Hi! I'm trying to take a 1.18.2 LivingEntity model and backport it to 1.16. I've got the deobfuscated java file and I'm using that to try to reconstruct the model in blockbench. I'm having a hard time because I cannot figure out how to set non-integer position values.

For instance, take this line of java code:

   "bodybottom",
   CubeListBuilder.create().texOffs(0, 30).addBox(-3.0F, -1.5F, -1.5F, 6.0F, 3.0F, 3.0F) .texOffs(64, 19).addBox(-3.5F, -2.0F, -2.0F, 7.0F, 4.0F, 4.0F),     PartPose.offsetAndRotation(0.0F, -13.5F, 0.0F, 0.3927F, 0.0F, 0.0F));```

Looks to me like it's creating a bone (folder, right?) with two cubes of geometry. One is 6x3x3 at -3, -1.5, -1.5 and the other is 7x4x4 at -3.5, -2, -2, then it takes that bone and places it at 0, -13.5, 0  with a rotation of .3927 degrees around the x axis. (Probably in radians?)

Problem is I cannot for the life of me figure out how to position something at -3, -1.5, -1.5! All it does is let me drag the position in the "element" menu back or forth in full integer steps.

What am I missing?
dusty nimbusBOT
# raw gorge !faq precise-movement

To move/scale cubes in smaller increments than 1 you can hold the following key combinations:
-Shift: 0.25
-Ctrl: 0.1
-Ctrl+Shift: 0.025
If those default values are not to your liking you can change these incrementsin File > Preferences > Settings > Snapping

PS: If you want to allign 2 elements we suggest using the vertex snapping tool instead (see !faq vertex-snapping for more info)
Disclaimer: The modded entity format does NOT allow decimal cube sizes and neither does the Optifine Entity format if box-uv is enabled!

raw gorge
#

alternatively you can also type in values there

#

(in anything except the size value fields at least)

lethal tide
#

Typing wasn't working. Not sure why. Thanks for such a fast answer to my question! Sorry I asked something so basic it could be covered with a !faq command, lol!

Is there a rep system in here so I can thank you, or do I just close my question now?

raw gorge
#

Sorry I asked something so basic it could be covered with a !faq command, lol!
No worries, we have the commands so we don't have to type out the full thing every time ^^

#

No rep system.
You can close your post by typing !close whenever you feel like you have no relevant follow up questions or problems

#

(you can also reopen a channel by just sending a message in it again in case something does come up)

lethal tide
#

Thanks again!

#

!close