- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
手冊:minecraft:attack
出自Minecraft基岩版开发Wiki
設定實體的攻擊。
模式[編輯]
object "minecraft:attack" : opt
{
range "damage"
float "effect_duration"<0-*> : opt
string "effect_name" : opt
}
結構[編輯]
列舉值[編輯]
狀態效果[編輯]
鍵名 | 值 | 介面字串 | 實驗性玩法 | 有害 | 顏色 | 粒子 | 圖示索引 | 描述 | ||
---|---|---|---|---|---|---|---|---|---|---|
資源名稱 | 元件名稱 | 描述ID | ||||||||
EMPTY_EFFECT |
0 | empty |
minecraft:effect.empty |
空字串 | N/A | 否 | #385DC6 |
0 | 空效果 | |
MOVEMENT_SPEED |
1 | speed |
minecraft:effect.speed |
potion.moveSpeed |
N/A | 否 | #7CAFC6 |
0 | 速度 | |
MOVEMENT_SLOWDOWN |
2 | slowness |
minecraft:effect.slowness |
potion.moveSlowdown |
N/A | 是 | #5A6C81 |
1 | 緩慢 | |
DIG_SPEED |
3 | haste |
minecraft:effect.haste |
potion.digSpeed |
N/A | 挖掘加速 | ||||
DIG_SLOWDOWN |
4 | mining_fatigue |
minecraft:effect.mining_fatigue |
potion.digSlowDown |
N/A | 挖掘疲勞 | ||||
DAMAGE_BOOST |
5 | strength |
minecraft:effect.strength |
potion.damageBoost |
N/A | 力量 | ||||
HEAL |
6 | instant_health |
minecraft:effect.instant_health |
potion.heal |
N/A | 立即治療 | ||||
HARM |
7 | instant_damage |
minecraft:effect.instant_damage |
potion.harm |
N/A | 立即傷害 | ||||
JUMP |
8 | jump_boost |
minecraft:effect.jump_boost |
potion.jump |
N/A | 跳躍提升 | ||||
CONFUSION |
9 | nausea |
minecraft:effect.nausea |
potion.confusion |
N/A | 嘔心 | ||||
REGENERATION |
10 | regeneration |
minecraft:effect.regeneration |
potion.regeneration |
N/A | 回復 | ||||
DAMAGE_RESISTANCE |
11 | resistance |
minecraft:effect.resistance |
potion.resistance |
N/A | 抗性 | ||||
FIRE_RESISTANCE |
12 | fire_resistance |
minecraft:effect.fire_resistance |
potion.fireResistance |
N/A | 抗火 | ||||
WATER_BREATHING |
13 | water_breathing |
minecraft:effect.water_breathing |
potion.waterBreathing |
N/A | 水中呼吸 | ||||
INVISIBILITY |
14 | invisibility |
minecraft:effect.invisibility |
potion.invisibility |
N/A | 隱形 | ||||
BLINDNESS |
15 | blindness |
minecraft:effect.blindness |
potion.blindness |
N/A | 失明 | ||||
NIGHT_VISION |
16 | night_vision |
minecraft:effect.night_vision |
potion.nightVision |
N/A | 夜視 | ||||
HUNGER |
17 | hunger |
minecraft:effect.hunger |
potion.hunger |
N/A | 飢餓 | ||||
WEAKNESS |
18 | weakness |
minecraft:effect.weakness |
potion.weakness |
N/A | 虛弱 | ||||
POISON |
19 | poison |
minecraft:effect.poison |
potion.poison |
N/A | 中毒 | ||||
WITHER |
20 | wither |
minecraft:effect.wither |
potion.wither |
N/A | 凋零 | ||||
HEALTH_BOOST |
21 | health_boost |
minecraft:effect.health_boost |
potion.healthBoost |
N/A | 生命值提升 | ||||
ABSORPTION |
22 | absorption |
minecraft:effect.absorption |
potion.absorption |
N/A | 傷害吸收 | ||||
SATURATION |
23 | saturation |
minecraft:effect.saturation |
potion.saturation |
N/A | 飽食 | ||||
LEVITATION |
24 | levitation |
minecraft:effect.levitation |
potion.levitation |
N/A | 飄浮 | ||||
FATAL_POISON |
25 | fatal_poison |
minecraft:effect.fatal_poison |
potion.poison |
N/A | 中毒 | ||||
CONDUIT_POWER |
26 | conduit_power |
minecraft:effect.conduit_power |
potion.conduitPower |
N/A | 海靈能量 | ||||
SLOW_FALLING |
27 | slow_falling |
minecraft:effect.slow_falling |
potion.slowFalling |
N/A | 緩降 | ||||
BAD_OMEN |
28 | bad_omen |
minecraft:effect.bad_omen |
potion.badOmen |
N/A | 不祥之兆 | ||||
HERO_OF_THE_VILLAGE |
29 | village_hero |
minecraft:effect.village_hero |
potion.villageHero |
N/A | 村莊英雄 | ||||
DARKNESS |
30 | darkness |
minecraft:effect.darkness |
potion.darkness |
N/A |
範例[編輯]
"minecraft:attack": {
"damage": 4,
"effect_duration": 10.0,
"effect_name": "wither"
}
歷史[編輯]
基岩版 | |||||
---|---|---|---|---|---|
? | 加入了minecraft:attack。 |