1. Wiki
  2. /物品
  3. /minecraft:damage

minecraft:damage

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:damage。Get GodCraft

概览

minecraft:damage 是一个物品组件:写在自定义物品的 components 对象中。 用物品攻击生物或玩家时增加额外攻击伤害。

字段

字段类型默认值说明
valueinteger0每次攻击额外增加的伤害点数,请使用正数。范围:0 到 32767

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

BP/items/<name>.json
{
  "minecraft:damage": {
    "value": 0
  }
}

物品: 行为包

We use cookies to improve your experience and analyse site traffic. Learn more