Interface BarrelBlockEntity

Barrel with ID = 42.

interface BarrelBlockEntity {
    Findable: boolean;
    id: "Barrel";
    isMovable: boolean;
    Items: NBT.Templates.Item<ItemTag>[];
    LootTable?: string;
    LootTableSeed?: number;
    x: number;
    y: number;
    z: number;
}

Hierarchy (view full)

Properties

Findable: boolean

Exploration map can be pointed here, tract as treasure.

false
id

Typed identifier, such as "Chest", "Beacon", etc.

isMovable: boolean

Block Entity will be saved without instantiating new one when transporting (via pistons, commands, etc.).

Contained slots, which is stored in numeral-index sorting starting with zero.

Normally, slot information removes when item became "air" (disappears), so please be careful when calling via <tag>.Items[<index>] convention!

LootTable?: string

Definition to behavior pack path with extension, such as "loot_tables/chests/end_city_treasure.json".

LootTableSeed?: number

Randomly generated seed to determine containment.

x: number
y: number
z: number

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.