// Disable armor and tool drops from mobs
EntityEvents.spawned((event) => {
const { entity } = event;
if (!entity.alive) return;
let nbt = entity.getNbt();
nbt.ArmorDropChances = [NBT.f(0), NBT.f(0), NBT.f(0), NBT.f(0)];
nbt.HandDropChances = [NBT.f(0), NBT.f(0)];
entity.setNbt(nbt);
});
Updated for KubeJS 6+
Original Thread: https://discord.com/channels/303440391124942858/1070765020717269063
```js