90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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 /function drop_name:update_mobs to update any mob within 32 blocks

Uninstalling is not recommended as named mobs will lose their loot table, but if you wish to do so you can get around this. Make sure to follow these instructions:

UninstallingBefore 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

Few things to note:

  • 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, any mob found with a custom name will drop a name tag, even if you didn't name it yourself

Also on Planet Minecraft


Project members

michaelo

Owner

Details

Licensed ARR
Published 8 months ago
Updated 9 months ago