这是本文档旧的修订版!
potion
对目标实体施加药水效果,通常用于自定义生物创建,是一个非常强大的工具;因为它允许无数有趣的应用程序。有关可用药水效果的完整列表,请参阅药水页面。
药水效果是目前使生物隐形的唯一方法,但盔甲架除外,它有自己的无限隐形属性。极高的修饰符级别可能会产生模糊的效果。
属性
属性 | 缩写 | 描述 | 默认值 |
type | t | 要应用的药水效果类型。 | |
duration | d | The duration of the effect in ticks [1]. | 100 |
level | l | The modifier-level of the potion effect. The real level is level's value +1. | 1 |
force | Whether not to override the current potion effect or not. (4.0+) | false | |
hasParticles | particles or p | Whether not to show the status effect particles. (4.6+) | true |
hasIcon | icon or i | Whether not to show the status effect icon. (4.6+) | true |