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

minecraft:allow_off_hand

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

概览

minecraft:allow_off_hand 是一个物品组件:写在自定义物品的 components 对象中。 让玩家可以把这个物品拿在副手(左手栏位)。适合火把、盾牌或地图这类方便和工具一起携带的物品。

字段

字段类型默认值说明
valuebooleanfalse设为 true 后,物品可以放进副手栏位。

示例

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

BP/items/<name>.json
{
  "minecraft:allow_off_hand": {
    "value": false
  }
}

物品: 行为包

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