[我的世界][首发] 你绝对没见过的最好自定义掉落物 指令课堂 (无实体或...

/execute @e[tag=随机生物,tag=!随机初始化] ~ ~ ~ replaceitem entity @s slot.weapon.offhand 0 destroy totem 1 0
回复 @小安JT :/execute @e【tag=随机生物,tag=!随机初始化】 ~ ~ ~ tag @s add 随机初始化
tag @e[tag=!随机生物,type=minecraft:zombie] add 随机生物
/execute @e[tag=随机生物,tag=随机初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie] ~ ~ ~ particle minecraft:lava_particle ~ ~1.5 ~
clone ~ ~1 ~ ~ ~1 ~ ~ ~1 ~1
setblock ~ ~1 ~ air 0 destroy
tp @e[r=3,c=1,type=item,name=!箱子] @e[tag=随机生物,tag=随机初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie]
kill @e[r=4,type=item]
/execute @e[tag=随机生物,tag=随机初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie] ~ ~ ~ summon minecraft:lightning_bolt ~ ~2 ~
/execute @e[tag=随机生物,tag=随机初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie] ~ ~ ~ kill
这个模板是僵尸的,需要其他生物自己改,type直接改