跳到正文

Aquaila’s No Mob Armor Drops

作者:UAVwaffle

This Datapack stops entities from dropping their armor by setting their Hand drop and Armor Drop chances to 0.0

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This Datapack stops entities from dropping their armor when they die. The best part is that if a zombie picks up your armor or other items, it’ll still drop them when it gets killed!

Special Thx to u/GalSergey for showing how to do this in a command on Reddit to some guy 4 years ago. Replace this with a description

Only tested on 1.20.1. It MIGHT work on other versions

It works by automatically setting the entities’ “HandDropChances” and “ArmorDropChances” to 0.0. The entities are also given the “NoDrops” tag, so the “command” only gets run once per mob

The command:

Spoiler

You can easily edit the command by extracting the zip file and editing the following code to add exceptions or only make it work on specific mobs

execute as @e[type=!minecraft:player,tag=!NoDrops, type=!minecraft:item, type=!minecraft:experience_orb, type=!minecraft:end_crystal, type=!minecraft:ender_dragon, type=!#minecraft:boat] run data merge entity @s {HandDropChances:[0.0f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],Tags:[“NoDrops”]}

常见问题

Aquaila’s No Mob Armor Drops 支持哪些 Minecraft 版本?

Aquaila’s No Mob Armor Drops 支持 Minecraft Java 版 1.20.1。下载时注意选择和你游戏版本一致的文件。

Aquaila’s No Mob Armor Drops 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

UAVwaffle 的其他作品

查看全部 →