BlockEntity {rbedrock}R Documentation

Load and store BlockEntity NBT data

Description

BlockEntity data (tag 49) holds a list of NBT values for entity data associated with specific blocks.

get_block_entity_data() and get_block_entity_value() load BlockEntity data from db. get_block_entity_data() will silently drop and keys not representing BlockEntity data. get_block_entity_value() supports loading only a single value. get_block_entity_values() is a synonym for get_block_entity_data().

put_block_entity_values(), put_block_entity_value(), and put_block_entity_data() store BlockEntity data into db.

Usage

get_block_entity_data(db, x, z, dimension)

get_block_entity_values(db, x, z, dimension)

get_block_entity_value(db, x, z, dimension)

put_block_entity_values(db, x, z, dimension, values)

put_block_entity_value(db, x, z, dimension, value)

put_block_entity_data(db, data)

Arguments

db

A bedrockdb object.

x, z, dimension

Chunk coordinates to extract data from. x can also be a character vector of db keys.

values

A list of nbt objects

value

An nbt object.

data

A named-list specifying key-value pairs.

Value

get_block_entity_data() returns a named-list of nbt data. get_block_entity_values() returns a single nbt value.


[Package rbedrock version 0.3.2 Index]