Jump to content

i have a question


Recommended Posts

how to make entity jump while im riding it like a horse,


but im riding spider and i want to make it jump when i press space

how to set it up?

Proud mod developer of:


Mob Armor mod

Block monster mod

Clay Living Dolls mod

Much More Spiders mod

Elemental cows reborn

Mr gorilla mod

Link to comment
Share on other sites

It is not that easy if you never used packets, but the way you do it is you handle InputEvent.KeyInputEvent and in it you check for:



and in case it is true, you send a packet to the server, upon handling, you set the player's ridingEntity's motionY:

player.ridingEntity.motionY += 1.0;


Which will make the ridden entity jump one block. Note that this will jump for whatever entity the player is riding. If you want it to only work for spider, check for:

player.ridingEntity instanceof EntitySpider

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.

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.

  • Create New...

Important Information

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