VOOZH about

URL: https://minecraft.wiki/w/Block_entity_format

โ‡ฑ Block entity format โ€“ Minecraft Wiki


Block entity format

From Minecraft Wiki
Jump to navigation Jump to search
๐Ÿ‘ Image
Not to be confused with Entity format.
This feature is exclusive to Java Edition.
 

A block entity is used to store information about a block that can't be stored in the block's block states. It is stored inside the chunk data and structure files.

Block Entities
Block Entity ID Associated Block
banner Banners
barrel Barrel
beacon Beacon
beehive Bee Nest/Beehive
bell Bell
blast_furnace Blast Furnace
brewing_stand Brewing Stand
brushable_block Suspicious Gravel/Suspicious Sand
calibrated_sculk_sensor Calibrated Sculk Sensor
campfire Campfire
chest Chest/Copper Chests
chiseled_bookshelf Chiseled Bookshelf
comparator Redstone Comparator
command_block Command Block
conduit Conduit
copper_golem_statue Copper Golem Statues
crafter Crafter
creaking_heart Creaking Heart
daylight_detector Daylight Detector
decorated_pot Decorated Pot
dispenser Dispenser
dropper Dropper
enchanting_table Enchanting Table
ender_chest Ender Chest
end_gateway End Gateway
end_portal End Portal
furnace Furnace
hanging_sign Hanging Signs
hopper Hopper
jigsaw Jigsaw Block
jukebox Jukebox
lectern Lectern
mob_spawner Monster Spawner
piston Moving Piston
potent_sulfur Potent Sulfur
shelf Shelves
shulker_box Shulker Boxes
sign Signs
skull Heads
sculk_catalyst Sculk Catalyst
sculk_sensor Sculk Sensor
sculk_shrieker Sculk Shrieker
smoker Smoker
soul_campfire Soul Campfire
structure_block Structure Block
test_block Test Block
test_instance_block Test Instance Block
trapped_chest Trapped Chest
trial_spawner Trial Spawner
vault Vault

NBT format

[edit | edit source]

Block entities are stored using NBT in the following format:

  • [NBT Compound / JSON Object]: A block entity
    • [String] id: Block entity ID
    • [Boolean] keepPacked: 1 or 0 (true/false) - If true, this is an invalid block entity, and this block is not immediately placed when a loaded chunk is loaded. If false, this is a normal block entity that can be immediately placed.
    • [Int] x: X coordinate of the block entity.
    • [Int] y: Y coordinate of the block entity.
    • [Int] z: Z coordinate of the block entity.
    • [NBT Compound / JSON Object] components: Optional map of data components that are not represented by additional fields.
    • Additional fields depending on the block entity type ([String] id), see Block entity format ยง Types

Types

[edit | edit source]

History

[edit | edit source]
Java Edition Beta
1.2Added Trap for dispensers.
Added Music for note blocks.
1.7Added Piston for moving pistons.
1.8Pre-releaseChest is now used to render chests newly changed model.
Java Edition
1.0.0Beta 1.9 Prerelease 3Added Cauldron for brewing stands.
Added EnchantTable for enchantment tables.
Added AirPortal for End portal blocks.
1.3.112w21aAdded EnderChest for ender chests.
1.4.212w32aAdded Control for command blocks.
Added Beacon for beacons.
12w36aAdded Skull for heads.
1.513w01aAdded DLDetector for daylight sensors.
Added Hopper for hoppers.
Added Comparator for redstone comparators.
13w03aAdded Dropper for droppers.
1.7.213w36aAdded FlowerPot for flower pots.
1.814w30aAdded Banner for banners.
1.915w31aAdded EndGateway for the End gateway block.
Added Structure for structure blocks.
Added powered and conditional fields to Control
15w47aAdded PaymentItem to Beacon.
15w49aRemoved PaymentItem from Beacon.
1.1116w32aThe namespaced ID of block entities have been lowercased, renamed and namespaced.
16w39aAdded shulker_box for shulker boxes.
1.1217w15aAdded bed for beds.
1.1317w47aRemoved noteblock for note blocks.
Removed flower_pot for flower pots.
Removed color from bed.
Removed Base from banner.
Removed Rot and SkullType from skull.
Added trapped_chest for trapped chests.
Merged fields BlockId and BlockData into blockState for piston.
Removed Record from jukebox.
18w15aAdded conduit for conduits.
1.1418w44aAdded barrel for barrels.
Added bell for bells.
Added lectern for lectern.
18w46aAdded jigsaw for jigsaw block.
19w02aAdded campfire for camfires.
18w50aAdded blast_furnace for blast furnaces.
Added smoker for smokers.
1.1519w34aAdded beehive for beehives and bee nests.
1.1720w49aAdded sculk_sensor for sculk sensors.
1.19Deep Dark Experimental Snapshot 1Added sculk_catelyst for sculk catelyst.
Added sculk_shrieker for sculk shriekers.
22w11aImplemented the previously mentioned features into normal snapshot.
1.19.3
Experiment
Update 1.20
22w42aAdded chiseled_bookshelf for chiseled bookshelves.
Added hanging_sign for hanging signs.
1.19.4
Experiment
Update 1.20
23w07aAdded decorated_pot for decorated pots.
Added suspicious_sand for suspicious sand.
1.2023w12aAdded calibrated_sculk_sensor for calibrated sculk sensors.
Renamed suspicious_sand to brushable_block.
1.20.223w32aSome fields in beacon were changed:
  • Primary (integer) -> primary_effect (string, resource identifier)
  • Secondary (integer) -> secondary_effect (string, resource identifier)
1.20.3
Experiment
Update 1.21
23w45aAdded trial_spawner for trial spawners.
23w42aAdded crafter for crafters.
1.20.5
Experiment
Update 1.21
24w05aAdded vault for vaults.
1.21.2
Experiment
Winter Drop
24w40aAdded creaking_heart for creaking heart.
24w39aRenamed Lock field in containers to lock as now it has become a compound that represents an item predicate.
1.21.4Pre-Release 2Some fields for furnace, blast_furnace, and smoker were changed:
  • Renamed CookTime to cooking_time_spent.
  • Renamed CookTimeTotal to cooking_total_time.
  • Renamed BurnTime to lit_time_remaining.
  • Added the field lit_total_time representing the total time the furnace should be lit.
  • 1.21.525w03aAdded test_block for test blocks.
    Added test_instance_block for test instance blocks.
    25w07aThe CustomName field is no longer preserved when removed.
    The LootTable field is no longer preserved when removed.
    The exit_portal field for end_gateway is no longer preserved when removed.
    The RecipesUsed field for furnace, smoker and blast_furnace is no longer preserved when removed.
    The note_block_sound field for skull is no longer preserved when removed.
    25w09aThe CookingTimes and CookingTotalTimes for campfire fields are no longer preserved when removed.
    The last_interacted_slot field for chiseled_bookshelf now defaults to -1 if not specified.
    The TransferCooldown field for hopper now default to -1 if not specified.
    The jigsaw fields, name, target, and pool now default to minecraft:empty if not specified, and the final_state field now defaults to minecraft:air if not specified.
    The warning_level field for sculk_shrieker now defaults to 0 if not specified.
    structure_blockThe ignoreEntities and showboundingbox fields now default to true if not specified, the posY field now defaults to 1 if not specified.
    1.21.925w31aAdded copper_golem_statue for copper golem statues.
    Added shelf for shelves.
    25w34aAdded align_items_to_bottom to shelf.
    26.2snap3Removed bed for beds.
    snap5Added potent_sulfur for potent sulfur.
    Upcoming Java Edition
    26.3snap1minecraft:decorated_pot: Field sherds no longer stores a list of 4 item IDs. Instead, the new format is an object with 4 optional item stack fields.

    Navigation

    [edit | edit source]
    Retrieved from "https://minecraft.wiki/w/Block_entity_format?oldid=3647170"

    Navigation menu