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

minecraft:swing_sounds

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

概览

minecraft:swing_sounds 是一个物品组件:写在自定义物品的 components 对象中。 替换玩家挥动这个物品击打东西时播放的声音。

字段

字段类型默认值说明
attack_missLevelSoundEvent无挥空或没有造成伤害时的声音。
attack_hitLevelSoundEvent无普通命中时的声音。
attack_critical_hitLevelSoundEvent无暴击时的声音。

示例

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

BP/items/<name>.json
{
  "minecraft:swing_sounds": {
    "attack_miss": {},
    "attack_hit": {},
    "attack_critical_hit": {}
  }
}

物品: 行为包

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