ModsJava
JumpAPI
Java mod listed for Minecraft 1.8–1.13. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotFor many years, the Spigot API has been a popular API to develop Minecraft server-sided plugins. It has thousands and thousands of unique resources, ranging from mini games to advanced mechanical plugins such as cheat-protection systems. The API is still active today and used by hundreds of developer worldwide and is growing in harmony with Minecraft versions itself.
The API contains a lot of features. You can basically do anything to the server using the API and thus, it’s the main choice for many developers. This is where our problem starts to take shape. Using the API, we can track the events that happen on the server, such as a player that interacts, moves, teleports or an entity that explodes. This is all very handy and people get really crafty with these features yet I found something that has been missing in the API for quite some time.
As you will get familiar with the API, the PlayerMoveEvent seems like the go-to event for handling anything you want to do whenever the player moves. When you want to check if a player is jumping though, you run into a problem. There is at the moment no single API or built-in event that handles player jump movement. This is where JumpAPI comes into play.
JumpAPI uses sampling to track a player’s movement. Whenever a player starts going up, sample points are gathered and saved in a small data-set. These values are than compared to pre-sampled values such as regular jump movement, fast jump movement, or jump movement with a potion multiplier.
It will output a Bukkit event called PlayerJumpEvent whenever the sampled data is matched!
This API is currently only able to detect straight-movement jumps. This means it can only detect jumps when a player is running/walking forward and jumping. Improvements and additions will be made!
(NOTE: This plugin can be resource-intensive!)
Here's an example of how to use it
The API contains a lot of features. You can basically do anything to the server using the API and thus, it’s the main choice for many developers. This is where our problem starts to take shape. Using the API, we can track the events that happen on the server, such as a player that interacts, moves, teleports or an entity that explodes. This is all very handy and people get really crafty with these features yet I found something that has been missing in the API for quite some time.
As you will get familiar with the API, the PlayerMoveEvent seems like the go-to event for handling anything you want to do whenever the player moves. When you want to check if a player is jumping though, you run into a problem. There is at the moment no single API or built-in event that handles player jump movement. This is where JumpAPI comes into play.
JumpAPI uses sampling to track a player’s movement. Whenever a player starts going up, sample points are gathered and saved in a small data-set. These values are than compared to pre-sampled values such as regular jump movement, fast jump movement, or jump movement with a potion multiplier.
It will output a Bukkit event called PlayerJumpEvent whenever the sampled data is matched!
This API is currently only able to detect straight-movement jumps. This means it can only detect jumps when a player is running/walking forward and jumping. Improvements and additions will be made!
(NOTE: This plugin can be resource-intensive!)
Here's an example of how to use it
Spoiler: PlayerJumpEvent
Code (Java):
@EventHandler
public void onJump (PlayerJumpEvent event ) {
Player player = event. getPlayer ( ) ;
JumpPattern pattern = event. getJumpPattern ( ) ;
float score = event. getScore ( ) ;
Bukkit. broadcastMessage (player. getName ( ) + " has jumped! (Score= " + score + ")" ) ;
}
public void onJump (PlayerJumpEvent event ) {
Player player = event. getPlayer ( ) ;
JumpPattern pattern = event. getJumpPattern ( ) ;
float score = event. getScore ( ) ;
Bukkit. broadcastMessage (player. getName ( ) + " has jumped! (Score= " + score + ")" ) ;
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
JumpAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 216 times (via Spigot). Download it and open it directly in the game.