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