minecraft:allow_off_hand for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
value | boolean | false | Set 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
}
}