Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeadDrops

This fork of HeadDrops is updated to support Minecraft 1.21+. Previous versions of Minecraft (1.8.8 - 1.18.2) are no longer supported in this version. The plugin alters the player experience by allowing players on the server to drop their heads when they die.

Building from Source

To build the project, you will need:

  1. Clone the repository

    git clone https://github.com/StupidCraft/HeadDrops.git
  2. From the root directory of the cloned source code, run:

    mvn package
  3. Move the generated JAR file (located in /target directory) to your server/plugins directory

  4. Start your server

API

The plugin contains a custom event that you can hook into that allows you alter the default behavior of the plugin from your own plugin. Below is an example of how you can make all head drops be pumpkins.

@EventHandler
public void onHeadDropped(HeadDropEvent event) {
    // Get the head that is supposed to be dropped
    ItemStack originalHead = event.getHeadDrop();

    // Implement your changes... For example, maybe it's Halloween, and you want all head drops to be a pumpkin head
    event.setHeadDrop(new ItemStack(Material.PUMPKIN));
}

License

MIT

About

A minecraft server plugin that adds head drops for players.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages