Special item model

Helpers that build a minecraft:special_item_model object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

Banner

Banner
Banner(color, attachment?)
color
DyeColor
attachmentoptional
BannerAttachment

Defaults to ground.

Bell

Bell
Bell()

Book

Book
Book(open_angle, page1, page2)
open_angle
number

Angle in degrees between book cover and book centerline. 0.0 for closed, 90.0 for open flat.

page1
number

The position of the first page inside the book. 0.0 for leftmost, 1.0 for rightmost.

page2
number

The position of the second page inside the book. 0.0 for leftmost, 1.0 for rightmost.

Chest

Chest
Chest(texture, openness?, chest_type?)
texture
texture id
opennessoptional
number 0..1

Defaults to 0.

chest_typeoptional
ChestType

Defaults to single.

Conduit

Conduit
Conduit()

CopperGolemStatue

CopperGolemStatue
CopperGolemStatue(pose, texture)
pose
CopperGolemStatuePose
texture
string

DecoratedPot

DecoratedPot
DecoratedPot()

EndCube

EndCube
EndCube(effect)
effect
EndCubeEffectType

Head

Head
Head(kind, texture?, animation?)
kind
HeadType
textureoptional
texture id

Texture to use instead of the texture from kind.

animationoptional
number

Controls the animation time for piglin and dragon heads. Defaults to 0.

PlayerHead

PlayerHead
PlayerHead()

Shield

Shield
Shield()

ShulkerBox

ShulkerBox
ShulkerBox(texture, openness?)
texture
texture id
opennessoptional
number 0..1

Trident

Trident
Trident()