I just need a (hopefully) simple plugin that allows players to Double Jump by double clicking the space bar, sending them forward in the direction they’re looking.
There are a few small (optional) things that would be great if you could implement, but not necessary, and you could send me a simpler build first before going into this stuff:
Disable Double-Jumping when /fly is enabled
Have some kind of command to toggle double jump (eg. /doublejump)
Have some kind of permission for this toggle (eg. doublejump.toggle)
I may be wrong, but I don’t think it’s possible to tell if a player hits the space bar again after they’re already in the air, since Minecraft doesn’t allow jumping while airborne.
This is in fact incredibly easy. You allow fly, and when the player starts flying, you update their velocity and remove their ability to fly until they touch the ground again. It’s a little bit janky, but it 100% works.
Good to hear! I have no idea how to do this (or any plugin developing) unfortunately, any chance you (or of course anyone else) could quickly draw a plugin up for me?
I’ve tried before, but Sponge presents entity velocities in a different way than bukkit (not sure how different), so I’m not sure the math you’d need to use.
This plugins great, actually incredibly well done, thank you so much -
My players have been requesting one small thing that I was wondering if possible: Can you change the vertical/horizontal ratio depending on where a player is looking when they double jump? For example, looking up would give me a lot of vertical and not much horizontal, and reverse for looking straight.
Hm, okay, that’s of course your decision. I only thought that you could share your work in a more public way.
I didn’t mentioned Ore because it’s beta and it could be reset at every moment.