Jump to content

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


gurujive

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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);
}

 

 

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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