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.

Why Does My Entity Not Render Correctly Unless It has a MotionY Greater Than 1.0

Featured Replies

Posted

I have a snowball type entity, I go to put it in a command block.

 

/summon guru.FireOrb ~ ~1 ~ {Motion[0.0,1.0,0.0]}

 

This summons the entity and it disappears half way in the air.

Then when it lands it produces sound.

 

 

/summon guru.FireOrb ~ ~1 ~ {Motion[0.0,1.1,0.0]}

 

This both summons and renders (completely) the said entity through the whole entire motion.

 

Is this currently not a working feature in 1.9 forge?

If it is, How am I doing something wrong?

  • Author

I have found that it has something to do with the render...

 

and this line of code within that render class.

 

model.render(entity, 0.0F, 0.0F, -0.0F, 0.0F, 0.0F, 0.0625F);

 

I am not certain what to change 0.0625F to...

 

but at least I know where I'm looking now.

  • Author

ok well maybe not... that changed the size... lol ^-^;

 

..... I've got some learning to do.

  • Author

If I knew how to fix this I'll be ready to do a release >.<

 

this is literally the only thing holding me back from doing that though...

  • Author

I found the answer. And I solved this.

 

by raising the number represented by # in the next said code line, it will change the rendering of the entity summoned with motion by a command block:

 

private static void register(Class cls, String name)
{
	EntityRegistry.registerModEntity(cls, name, id++, Guru.getInstance(), 64, #, true);
}

 

 

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.