Mob Heads

Mob Heads

Mod and data pack

Mobs can drop their head on death

Server AdventureDecorationGame Mechanics MobsUtility

36.0k downloads
101 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Mob Heads

Tip

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

Features

1. Adds a head for every mob and mob variant in the game --> over 300 different heads

2. Custom sound for all heads when placed on note blocks

3. Configure the drop condition for the heads

Looting doesn't affect the drop rates

Config

Change the drop condition for the heads:

/scoreboard players set &drop_condition mobheads.config value

value = 0 = no head drops at all

value = 1 = heads will always drop when a mob dies --> default value

value = 2 = heads will only drop when a mob is killed by a player

Next Updates

1. Function to give yourself any head you want

2. Advancements to track what heads you've collected

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.

Showcase

Drop chances for 1.21

0.01 - 1%

  • cave spider
  • enderman
  • skeleton
  • zombie
  • invulnerable wither skull

0.02 - 2%

  • blaze
  • sheep (heads for all 16 different colors)
  • cow
  • drowned
  • iron golem
  • pig
  • snow golem
  • spider
  • witch
  • creeper

0.035 - 3.5%

  • chicken
  • evoker
  • husk
  • piglin
  • slime
  • squid

0.1 - 10%

  • villager (snow, savanna, plains, desert, jungle, taiga, + all professions)
  • bee
  • rabbit (brown, white, gold, salt, black, white splotched, evil)
  • horse (white, creamy, chestnut, brown, black, gray, dark_brown)
  • llama (white, creamy, gray, brown)
  • mooshroom (red, brown)
  • cod
  • frog (cold, temperate, warm)
  • donkey
  • endermite
  • ghast
  • goat
  • guardian
  • hoglin
  • mule
  • phantom
  • piglin brute
  • pillager
  • pufferfish
  • salmon
  • shulker
  • silverfish
  • strider
  • stray
  • tropical fish
  • turtle
  • wolf (woods, spotted, striped, snowy, rusty, pale, chestnut, black, ashen)
  • zombified villager (snow, savanna, plains, desert, jungle, taiga, + all professions)
  • zombified piglin
  • bogged
  • magma cube
  • creaking

0.3 - 30%

  • bat
  • trader llama (white, creamy, gray, brown)
  • dolphin
  • glow squid
  • ocelot
  • polar bear
  • ravager
  • fox (red, snow)
  • skeleton horse
  • vex
  • vindicator
  • zombie horse
  • armadillo
  • breeze
  • camel
  • tadpole
  • illusioner

0.5 - 50%

  • cat (all black, black, british shorthair, calico, jellie, persian, ragdoll, red, siamese, - tabby, white)
  • allay
  • axolotl (pink, wild, gold, cyan)
  • elder guardian
  • panda (normal, weak)
  • zoglin

0.7 - 70%

  • parrot (red, blue, cyan, gray, green)
  • wandering trader
  • sniffer
  • panda (aggressive, lazy, worried, playful, brown)

0.95 - 95%

  • charged creeper
  • warden
  • wither
  • ender dragon
  • blue axolotl

Drop chances for 1.20.4 and 1.20.5-6

You can use Ctrl + F to search

Common = 0.02 = 2%

  • Chicken
  • Cow
  • Cave Spider
  • Creeper
  • Pig
  • Sheep (different heads for all colors)
  • Skeleton
  • Spider
  • Zombie
  • Snow Golem
  • Iron Golem

Rare = 0.1 = 10 %

  • Bat
  • Bee
  • Blaze
  • Bogged
  • Cod
  • Donkey
  • Drowned
  • Enderman
  • Evoker
  • Frog (variants: cold, temperate, warm)
  • Glow Squid
  • Guardian
  • Hoglin
  • Horse (variants: white, creamy, chestnut, brown, black, gray, dark_brown)
  • Husk
  • Llama (variants: white, creamy, gray, bronw)
  • Magma Cube
  • Mooshroom (variants: red, brown)
  • Mule
  • Phantom
  • Piglin
  • Pillager
  • Pufferfish
  • Salmon
  • Slime
  • Squid
  • Tropical Fish
  • Villager (snow, savanna, plains, desert, jungle, taiga)
  • Witch
  • Wolf (woods, spotted, striped, snowy, rusty, pale, chestnut, black, ashen)

Epic 0.2 = 20 %

  • Armadillo
  • Allay
  • Axolotl (variants: pink, wild, gold, cyan, blue)
  • Breeze (1.20.5)
  • Camel
  • Cat (variants: all black, black, british shorthair, calico, jellie, persian, ragdoll, red, siamese, tabby, white)
  • Dolphin
  • Elder Guardian
  • Endermite
  • Fox (variants: red, snow)
  • Ghast
  • Goat
  • Illusioner (not in game)
  • Ocelot
  • Parrot (variants: red, blue, cyan, gray, green)
  • Piglin Brute
  • Polar Bear
  • Rabbit (variants: brown, white, gold, salt, black, white splotched, evil)
  • Ravager
  • Shulker
  • Silverfish
  • Skeleton Horse
  • Stray
  • Strider
  • Trader Llama (variants: white, creamy, gray, bronw)
  • Turtle
  • Vex
  • Vindicator
  • Wandering Trader
  • Zoglin
  • Zombie Horse
  • Zombie Villager
  • Zombified Piglin

Legendary 0.3 = 30%

  • Sniffer
  • Warden
  • Panda (variants: normal, lazy, worried, playful, weak, aggressive)

Mythic 0.5 = 50%

  • Enderdragon
  • Wither
  • Brown Panda

In the datapack, you can edit these chances by changing the value in:

data/minecraft/loot_tables/entities/entity.json

in there, look for "conditions" and the condition "random_chance" and change the "chance" to the value in % you want the head to drop

Info

Bug Fix for when you place down the heads, destroy them, and pick them up again:

Keep Head Names Mod

This bug is fixed in 1.20.5


Project members

Jodek

Owner

Details

Licensed MIT
Published 9 months ago
Updated 11 days ago