加载中...
自定义生物掉落

自定义生物掉落

videoCover-【网易1.20+】自定义生物掉落.studio_video_1720322464260.1607538631.png

前置

/scoreboard objectives add 随机 dummy

/scoreboard objectives add 物品 dummy

配置

用结构方块保存一个你需要自定义掉落的物品

(支持多物品,多数量,改名字)

注意:记得把移除方块和保存实体打开

1.循环无条件:execute as @e[name=蜘蛛眼] run scoreboard players set @s 物品 1

指令

1.循环无条件:execute as @e[tag=!检测,type=item,scores={物品=1}] run scoreboard players random @s 随机 1 100

2.连锁无条件:execute as @e[tag=!检测,type=item,scores={物品=1,随机=..10}] at @s run structure load (你保存的结构名字) ~ ~ ~

3.连锁无条件:execute as @e[tag=!检测,type=item,scores={物品=1}] run tag @s add 检测

CC BY-NC-SA 4.0 Deed | 署名-非商业性使用-相同方式共享
最后更新时间:2025-10-20 14:43:31