[我的世界][首發(fā)] 你絕對沒見過的最好自定義掉落物 指令課堂 (無實(shí)體或...

/execute @e[tag=隨機(jī)生物,tag=!隨機(jī)初始化] ~ ~ ~ replaceitem entity @s slot.weapon.offhand 0 destroy totem 1 0
回復(fù) @小安JT :/execute @e【tag=隨機(jī)生物,tag=!隨機(jī)初始化】 ~ ~ ~ tag @s add 隨機(jī)初始化
tag @e[tag=!隨機(jī)生物,type=minecraft:zombie] add 隨機(jī)生物
/execute @e[tag=隨機(jī)生物,tag=隨機(jī)初始化,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=隨機(jī)生物,tag=隨機(jī)初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie]
kill @e[r=4,type=item]
/execute @e[tag=隨機(jī)生物,tag=隨機(jī)初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie] ~ ~ ~ summon minecraft:lightning_bolt ~ ~2 ~
/execute @e[tag=隨機(jī)生物,tag=隨機(jī)初始化,hasitem={location=slot.weapon.offhand,quantity=0,slot=0,item=totem},type=minecraft:zombie] ~ ~ ~ kill
這個(gè)模板是僵尸的,需要其他生物自己改,type直接改