1. Wiki
  2. /Blocks
  3. /minecraft:leashable

minecraft:leashable

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

Overview

minecraft:leashable is a block component: it goes in the components object of a custom block. Lets players tie a lead to the block, like a fence post.

Fields

FieldTypeDefaultDescription
offsetvec3[0,0.25,0]Where the lead knot sits, measured from the center of the block.

Example

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

BP/blocks/<name>.json
{
  "minecraft:leashable": {
    "offset": [
      0,
      0.25,
      0
    ]
  }
}

Blocks: Behavior pack

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