显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== Break Block And Give Item ====== ---- 在目标位置打破方块并提供物品。这个机制也会掉落方块(基岩除外)。需要''forcesync=true''。 ===== 属性 ===== |属性|缩写|描述|默认值|-| |doDrops|drops, d|是否掉落方块|true|-| |doEffect|efffect, e|是否显示破坏效果|true|-| |useTool|tool, t|是否使用玩家手中的工具|true|-| |fakelooting|fl|从原点播放拾取物品动画|false|-| |items|item, i|要掉落的物品或整个掉落表||-| ===== 例子 ===== 使用坩埚物品: 它不会掉落泥土,而是会为玩家提供钻石。 <code yaml [enable_line_numbers="true"]> #Items Document CustomItem: Id: GOLDEN_SHOVEL Display: 'Lucky Shovel' Skills: - skill{s=dirtToDiamonds;sync=true} @TargetLocation ~onBreakBlock #Skills Document dirtToDiamonds: TargetConditions: - blocktype{t=DIRT,GRASS_BLOCK} true Skills: - breakBlockAndGiveItem{dodrops=false;items=diamond} </code> 插件手册/mythicmobs/技能/机制列表/breakblockandgiveitem.txt 最后更改: 2021/09/07 09:14由 duangfafa