• check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
  • 3,675 views, 2 today
  • 319 downloads, 0 today
  • 30
  • 25
  • 20
michaelo's Avatar michaelo
Level 32 : Artisan Chef
24
This data pack makes mobs that you have named with a name tag drop their name tags (with their name on them) when they die. Now you can properly memorialise a fallen pet without having to frame their body parts!

It is compatible with other loot table data packs, which is handy if you like using Vanilla Tweaks packs like me.


USAGE:


It's recommended to add this pack before you start a world, but if you're going to add this to an existing world, be aware that this pack won't know what mobs already have an name. To fix this, run the command to update any mob within 32 blocks:

/function drop_name:update_mobs
Once you have installed this pack it is a pain to uninstall and get back default drops to your named mobs, so make sure you're happy before adding :)

If you need to remove this pack from a world after playing with it, read these instructions carefully before doing so:

Uninstalling
Before removing the pack, run the command:


/function drop_name:uninstall


Any mob you have named since installation will lose their loot table after uninstalling. To grant a loot table back to a mob, look at them and enter this command:


/data merge entity <TAB COMPLETE> {DeathLootTable:"minecraft:entities/cat"}

TAB complete the UUID of the entity which shows up automatically when looking at it. Change the ID of the entity at the end of the command to the correct entity. If it is a sheep you will need to specify the colour after, e.g. sheep/blue


NOTES:


Compatibility:
> Mobs that you can pick up with a bucket won't drop name tags, as they can be renamed in an anvil
> This pack won't work for mobs that don't reference the minecraft namespace for their loot (e.g. a custom mob). You can still use it alongside them, but those mobs will be ignored and won't drop name tags.
> Once you run the function to update nearby mobs, anything found with a custom name will drop a name tag, even if you didn't name it yourself.

Drops:
> If a red sheep that has been converted from a blue sheep by an evoker dies, its loot table won't update and it will still drop red wool. This will only happen in very select circumstances so I didn't think it was worth accounting for it.


If you find mods easier, then I found a few that do what this pack does after I had started making this. Search 'name tag' on Curseforge or Modrinth and you should be able to find several.


THANKS!


This is the first datapack I publicly released, so thanks for reading/downloading! If you have any issues or feedback, please do leave a comment. Have a nice day :)
CompatibilityMinecraft 1.18
toMinecraft 1.20
Tags

3 Update Logs

Update #3 : by michaelo 01/16/2024 3:57:03 pmJan 16th

It's finally been updated!

- Relocate download to Modrinth
- Multi-version support in one pack, 1.18 to latest
- Removed support for bucketable mobs (you rename them in an anvil anyway)
- Code clean-up
LOAD MORE LOGS

Create an account or sign in to comment.

1
02/06/2024 9:33 am
Level 1 : New Explorer
Happysss
Happysss's Avatar
The best datapack preview image I have ever seen
1
02/06/2024 11:19 am
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
lol
1
01/18/2024 12:36 pm
Level 34 : Artisan Lemon
FlintN_Steel
FlintN_Steel's Avatar
A masterpiece.
2
01/18/2024 1:28 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
I am Picasso but for data packs
1
12/29/2023 7:58 pm
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Is the datapack configurable? Can I choose what type of Mobs can drop their tag when they die?
1
12/29/2023 9:49 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
Absolutely! By default every mob drops their tag, but you can remove this behaviour for any mob by adding them to the can't_be_named tag. You can find that in the data pack here:

Name Tag Drops > data > drop_name > tags > entity_types > cant_be_named.json

Just need to make sure you format it like the rest of the list (let me know if you're not sure how).

You may also need to remove them from the transform tag as well if they're a mob that can change e.g. zombies and zombie villagers.
1
12/29/2023 7:55 pm
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Hello friend, I'm here again, another question, nothing happens when applying the datapack on a server in version 1.20, right?
1
01/16/2024 3:59 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
1.20 support now available :)
1
12/29/2023 9:25 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
Hey again! I forgot to tell you before, but this pack should probably still work fine on 1.20, unless you try and name a sniffer.

Sorry it's taking so long to update, but good news is I am now able to work on data packs again and have literally just started to properly update this! Will hopefully be releasing in the coming days, just need to test a few things :)
1
08/18/2023 11:25 am
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Friend XD, could you please update the datapack to 1.20 pls?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome