村庄英雄效果指令
minecraft:hero_of_the_village英文名 Hero of the Village
村庄英雄(minecraft:hero_of_the_village)是有益的状态效果。村民交易打折(打败袭击后获得)。下面是给予、清除和做成药水的命令。
常用命令
给最近的玩家 30 秒(I 级)
/effect give @p minecraft:hero_of_the_village 30 0
等级 II,持续 1 分钟
/effect give @p minecraft:hero_of_the_village 60 1
等级从 0 开始数:0 是 I 级,1 是 II 级
所有玩家,永久,不显示粒子
/effect give @a minecraft:hero_of_the_village infinite 0 true
清除村庄英雄
/effect clear @p minecraft:hero_of_the_village
村庄英雄药水(3 分钟)
/give @p potion[potion_contents={custom_effects:[{id:"minecraft:hero_of_the_village",amplifier:0,duration:3600}]},custom_name={translate:"effect.minecraft.hero_of_the_village",italic:false}]duration 的单位是刻(20 刻 = 1 秒)
站在金块上时获得
/execute as @a at @s if block ~ ~-1 ~ minecraft:gold_block run effect give @s minecraft:hero_of_the_village 2 0 true
放进循环命令方块里一直运行
基本信息
- 效果 ID
- minecraft:hero_of_the_village
- 类型
- 有益
- 作用
- 村民交易打折(打败袭击后获得)
其他有益效果
数据来自 Minecraft Java 26.3 官方数据,命令都经过 26.3 语法检查。