Skip to content

Tile Entities

Tile entities are blocks that contain additional data, beyond the 4-bit Metadata/Damage Value every item/block has.

Base

All tile entities share a common layout that they then add their additional fields onto.

FieldTypeDescription
idString16The label of the tile entity
xIntegerThe X position of the block
yIntegerThe Y position of the block
zIntegerThe Z position of the block

As these are always the same, they will only be included as part of the examples.

Sign

Signs just store what lines they contain. The rest is handled by the block they attach to, namely their rotation. Their data needs to be sent to any clients via the designated Sign Packet. Each line of a sign should only have 15 characters.

FieldTypeDescription
Text1String16First Line on the sign
Text2String16Second Line on the sign
Text3String16Third Line on the sign
Text4String16Fourth Line on the sign

Example

FieldValue
Text1Welcome to
Text2the Beta Wiki
Text3Thank you
Text4for helping!
idSign
x17
y55
z60

Mob Spawner

FieldTypeDescription
DelayShortHow often per tick a mob spawn attempt can be issued
EntityIdString16The label of the spawnable entity

Example

FieldValue
Delay20
EntityIdZombie
idMobSpawner
x17
y55
z60

Chest

FieldTypeDescription
ItemsListA list of Compound-tagged items

NOTE

Large chests are just normal chests that happen to be adjacent when opened. They do not share a tile entity entry!

Example

FieldValue
Items
idChest
x20
y55
z61

Furnace

FieldTypeDescription
ItemsListA list of Compound-taged items
BurnTimeShortTime remaining in ticks until the fuel is used up
CookTimeShortTime remaining in ticks until the item is cooked

Example

FieldValue
Items
BurnTime0
CookTime0
idFurnace
x20
y55
z61

Dispenser

The dispenser is internally referred to as Trap.

FieldTypeDescription
ItemsListA list of Compound-tagged items

Example

FieldValue
Items
idTrap
x20
y55
z61