Player Drops Head (+give any head)

Player Drops Head (+give any head)

Mod and data pack

Players drop their head on death or when killed by another player (config) +++ Easily give yourself any head that exists

Server AdventureDecorationManagementSocialUtility

6,652 downloads
26 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Player Drops Head

Tip

Questions or issues? -> discord server | or create an issue on github

Features

1. Players can drop their head on death or only when killed by another player --> change with the config

2. You can give yourself your own head

3. You can give yourself any head that exists

The heads are stackable up to 64

Guides

Tip

If something doesn't work, feel free to join the discord server

How to Install a Datapack in Singleplayer
At the Creation of a World

How to install a datapack in singleplayer

  1. Open Minecraft
    Launch the game.

  2. Create a New World
    Navigate to "More" and click on "Data Packs".

    Minecraft Settings Image

  3. Add the Datapack
    Drag the datapack (a .zip file or directory) into the Minecraft window.

    • A confirmation screen will appear. Click "Yes".
  4. Activate the Datapack
    Move the datapack to the right-hand side of the screen by clicking the triangle on its icon (visible when hovering over it).

Minecraft Settings Image

  1. Complete World Creation
    • Click "Done" at the bottom of the screen.
    • Continue creating your world and click "Create New World".

⚠️ IMPORTANT ⚠️

The datapack only works if cheats are enabled.

You can verify the datapack is active by typing:
/datapack list enabled

This command should list an entry named [file/<your datapack file/directory name>].

In an Existing World

How to Install a Datapack in an Existing Singleplayer World

  1. Open Minecraft
    Launch the game.

  2. Select Your World

    • Choose the world you want to install the datapack for.
    • Click "Edit", then "Open World Folder".
  3. Add the Datapack

    • Open the folder named datapacks.
    • Place the datapack into this folder. It should be a .zip file or a directory.
  4. Reload the World

    • If you are in the world during installation, type /reload in the chat or press F3 + T to reload resources.
      (Make sure cheats are enabled.)

⚠️ IMPORTANT ⚠️

The datapack only works if cheats are enabled.

You can verify the datapack is active by typing:
/datapack list enabled

How to Enable Cheats Permanently After World Creation

If you encounter this issue, here is a step by step guide on how to enable Cheats/Admincommands permanently after you have already created a Minecraft world.

⚠️ Before you begin, you should save and backup your world in case something goes wrong.
(I will not take any responsibility for any corrupt worlds. Do this at your own risk!)
But don't worry this works without any problems.
If you don't want to change this permanently check out this guide.

1. You need NBTExplorer

NBTExplorer is an open-source NBT editor for all common sources of NBT data. It's mainly intended for editing Minecraft game data.

2. Open NBTExplorer and open your Minecraft world, where you want to enable Cheats/Admincommands.

NBTExplorer Image

3. Navigate to:

  • <Your Minecraft World>
  • level.dat
  • Data
  • allowCommands

NBTExplorer Navigation Image

4. Click on "Edit Tag Value"

Edit Tag Image

5. Change the Value from 0 to 1 and click "OK"

Change Value Image

6. Now click on "Save All Modified Tags"

Save Image

That's it. You are done. You can now join your world and check if you have permission to change your gamemode, for example.

How to Enable Cheats Temporarily After World Creation

Enabling Cheats Temporarily After World Creation

If you encounter this issue, here is a step-by-step guide on how to enable Cheats/Admin commands temporarily after you have already created a Minecraft world.

  1. Join Your World
    Open your single-player world and press "Escape".

  2. Open to LAN
    Click on "Open to LAN".

    Open to LAN Screenshot

  3. Allow Commands
    Set "Allow Commands" to ON.

    LAN World Minecraft Screen

  4. Start LAN World
    Click "Start LAN World" to apply the changes.

LAN World MC Screen

Now, you should be able to use commands like changing your gamemode. Keep in mind that this is only temporary and will need to be done every time you join the world.

How to Install a Datapack in Multiplayer

How to Install a Datapack in Multiplayer

  1. Open Your Server Folder
    Navigate to your server folder, then open the folder for the world you wish to install the datapack in (default: world).

  2. Add the Datapack

    • The datapack should be a .zip file.
    • Place the datapack into a folder named datapacks inside the world folder.
  3. Reload the Server

    • Type /reload from the console or as a level 3 operator if the server was running during the installation.
How to Uninstall a Datapack

How to Uninstall a Datapack from Your Singleplayer World or Server

  1. Run the Uninstall Command
    For my datapacks, run the command:
    /function datapack_name:uninstall

  2. Delete the Datapack

    • Delete the datapack from the folder you placed it in.
    • Alternatively, you can run:
      /datapack disable [file/your data pack file/directory name]
  3. Reload the World or Server
    After deleting or disabling the datapack, run:
    /reload

How to Install a Mod on a Minecraft Server

Step-by-Step Guide to Installing a Mod on a Minecraft Server

  1. Download the Mod

    • Make sure to download the correct version of the Mod that matches your server's Minecraft version.
    • Important: The mod file should be a .jar file.
  2. Ensure No Datapacks or Other Mods Conflict

    • Do not have both a datapack and a mod installed at the same time, as they may conflict.
    • Only install one or the other, depending on your server's setup.
  3. Locate the Mods Folder

    • Open your server's root directory.
    • Inside this directory, find the folder named mods.
    • If the mods folder doesn't exist, create one.
  4. Install the Mod

    • Paste the downloaded .jar file for the Mod into the mods folder.
  5. Restart the Server

    • After adding the Mod to the mods folder, restart your Minecraft server for the mod to be activated.
  6. Verify Mod Installation

    • Once the server has restarted, join the server and check if the Mod is working.
    • You can use /mods or a similar command (depending on the mod) to see if the Mod has been successfully loaded.

Additional Tips

  • Backup Your Server: Always create a backup before installing the Mod to avoid data loss in case something goes wrong.
  • Ensure Mod Compatibility: Check that the Mod is compatible with your Minecraft server version and any other mods you have installed.

Give own head

To give yourself your own head:

/trigger give_own_head

Give any head (doesn't work for 1.20.1)

To give yourself any head:

Get a book and quill and write only the name in it

While holding the book and quill run:

/trigger give_head

Config

To change if players are able to give themself their own head:

/scoreboard players set &give_own_head config.player_drops_head value

value = 0 = disabled value = 1 = enabled --> default

To change if players are able to give themself any head: (doesn't work for 1.20.1)

/scoreboard players set &give_head config.player_drops_head value

value = 0 = disabled --> default value = 1 = enabled

Change the head drop conditions:

/scoreboard players set &head_drops config.player_drops_head value

value = 0 = only when killed by player --> default value = 1 = head drops always

Info
To fix the bug where the name of a head changes after being placed and picked up again:

You can istall -> Keep Head Names Mod

This bug will be fixed in 1.20.5


Project members

Jodek

Owner

Mqx

Co-Owner

Details

Licensed MIT
Published 9 months ago
Updated 5 months ago