1. Wiki
  2. /Items
  3. /minecraft:allow_off_hand

minecraft:allow_off_hand

Don't want to write this by hand? GodCraft sets minecraft:allow_off_hand for you with a switch.Get GodCraft

Overview

minecraft:allow_off_hand is an item component: it goes in the components object of a custom item. Lets players hold this item in their off hand (the left hand slot). Turn it on for things like torches, shields or maps that are handy to carry alongside a tool.

Fields

FieldTypeDefaultDescription
valuebooleanfalseSet to true so the item fits in the off hand slot.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

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

Items: Behavior pack

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