• 15,057 views, 8 today
    • 1,648 downloads, 0 today
    • 14
    • 12
    • 2
    Plagiatus's Avatar Plagiatus
    Level 57 : Grandmaster Engineer
    70

    1.13/1.14/1.15/1.16 Version available.

    What it does



    Makes players drop their own head if they are killed by another player.

    The head will drop at the location the player was killed at.


    If you want the player to always drop their head, no matter who killed them, use v2.0.0 instead.
    

    How to set up

    Version 2.0 (1.14) and above:



    Download the zip file and place it into your world/datapacks folder. If the world is already running, run reload. That's all you need to do.

    Version 1.0 (1.13):



    After the datapack has been added to your world, it still needs some manual editing for it to work with your own skulls.
    Open up the file data/headdrop/functions/drop.mcfunction and add one of the following lines for each of your players, obviously replacing Playername with the actual name of the player:

    execute at @a[scores={headDeath=1..},name=Playername] run summon item ~ ~ ~ {Item:{id:player_head,Count:1,tag:{SkullOwner:Playername}}}

    Additional Info



    Skulls that are dropped like this won't stack with the ones that have been placed and broken again, because the game converts the name of the SkullOwner into the texture.

    Contact



    If you have any questions, concerns, praise or found a bug, you can contact me directly at contact@plagiatus.net or use my contact form.
    CompatibilityMinecraft 1.13
    toMinecraft 1.16
    Tags

    Create an account or sign in to comment.

    1
    02/21/2022 11:00 pm
    Level 18 : Journeyman Pig
    Piglinoink
    Piglinoink's Avatar
    is it only when another player kills you?
    1
    02/27/2022 2:50 am
    Level 57 : Grandmaster Engineer
    Plagiatus
    Plagiatus's Avatar
    yes, only when another player kills you. But you can modify that to be always.
    Planet Minecraft

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome