Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

1.15.1 How do i add cubes to entity models now?

Featured Replies

Posted

Hello in 1.14.1 i used this to ad cubes to a body-part (here named as bone) of an entity-model:

bone.cubeList.add(new ModelBox(bone, 0, 0, -4.0F, -4.0F, -4.0F, 8, 8, 8, 0.0F, false));

It´s because blockbench made it this way and it gives me the biggest number of property-vanues (2x texture-position, 3x cube-position, 3x cube-size and two more) to set for this cube.

But in 1.15.1 "cubeList" is not visible and it does not know "ModelBox" any more.

How do i add cubes with this number of values now?

 

Edit:

i found this:

bone.func_217178_a("body", -4.0F, -4.0F, -4.0F, 8, 8, 8, 0.0F, 0, 0);

It provides almost all of theese values.

But i miss the one, that is "false" in my old one (the last value in that line).

i think, it´s about mirrored texturing.

So how do i now tell it to mirror a texture for the other leg or something like that?

Edited by Drachenbauer

  • 3 months later...

don't know if it's what you want, and it's a bit late, but maybe you are looking for that?

head.setTextureOffset(25, 46).addBox(-3.0F, -1.0F, -3.0F, 5, 1, 5, 0.0F, false);

 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.