Jump to content

Recommended Posts

Posted

I found this:

    Vec3d vec3d = this.getMotion();
    if (!this.onGround && vec3d.y < 0.0D)
    {
        this.setMotion(vec3d.mul(1.0D, 0.6D, 1.0D));
    }

But how can i apply this to the player, if holding the umbrella?

Posted

Now i used PlayerTickEvent.

With this, i could check for holding the umbrella very similar to the LivingFallEvent.

And after testing, it looks very much like gliding with a parachute.

That´s what i want.

It reminds me also abit to elythra-flying.

Posted (edited)

Is there any way to give it a classic "item/generated"-sprite for displaying in gui or item-frame and keep the .obj-model for all other display-types (laying on ground and all equip-variants)

Edited by Drachenbauer
Posted (edited)

now i try this solution:

https://forums.minecraftforge.net/topic/83298-solved-1152-different-item-model-when-rendered-in-the-inventory-vs-handheld/

 

It uses the deprecated variant of getQuads.

but if i try to replace it with the better one, new IBakedModel() says, that i have to use the old one, because it´s an unimplemented method.

How can i use the new one without this error?

 

Now i found IForgeBakedModel.

How can i use it instead of IBakedModel here?

Edited by Drachenbauer

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.