此数据包会使你用命名牌命名的生物在死亡时掉落其命名牌(上面带有它们的名称)。现在,你可以妥善纪念逝去的宠物,而不必用它们的身体部位来“框”起来!
它与其他战利品表数据包兼容,如果你像我一样喜欢使用 Vanilla Tweaks 的数据包,这将非常方便。
用法:
建议在世界创建之初就添加此数据包。但如果你打算将其添加到已有世界中,请注意:该数据包无法识别已经拥有名称的生物。要修复此问题,请运行命令 /function drop_name:update_mobs 以更新周围 32 格内的所有生物。
不建议卸载,因为已命名的生物会失去其战利品表配置。但如果确实需要卸载,可以通过以下步骤规避问题。请务必遵循以下说明:
卸载
在移除数据包之前,请先运行命令:
/function drop_name:uninstall
自安装以来被你命名的任何生物,在卸载后将失去其战利品表配置。若要为某个生物恢复战利品表,请注视该生物并输入以下命令:
/data merge entity <TAB COMPLETE> {DeathLootTable:"minecraft:entities/cat"}
使用 TAB 键自动补全生物的 UUID(在注视生物时会显示)。将命令末尾的生物 ID 更改为正确的实体 ID。如果是羊,则需要在后面指定颜色,例如 sheep/blue。
注意事项:
- 可以用桶拾取的生物不会掉落命名牌,因为它们可以在铁砧中重新命名
- 此数据包不适用于那些未引用 minecraft 命名空间作为其战利品来源的生物(例如自定义生物)。你仍可将它与这些生物一起使用,但这些生物会被忽略且不会掉落命名牌
- 一旦运行了更新附近生物的功能,任何被发现拥有自定义名称的生物都会掉落命名牌,即使该名称并非由你亲自命名
同时可在 Planet Minecraft 找到
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:
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
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧