Actors | R Documentation |
After 1.18.30, the nbt data of each actor is saved independently in the database, using a key with a prefix and a 16-character storage key: 'actor:0123456789abcdef'. The keys of all actors in a chunk are saved in an ActorDigest record, with format acdig:x:z:dimension'.
get_actors_data(x, z, dimension, db)
get_actors_value(x, z, dimension, db)
put_actors_data(values, x, z, dimension, db)
put_actors_value(value, x, z, dimension, db)
x , z , dimension |
Chunk coordinates to extract data from.
|
db |
A bedrockdb object. |
values |
A list of character vectors.
If |
value |
A list of nbt actors data |
get_actors_value()
loads Actors data for a single chunk in db
.
get_actors_data()
loads Actors data from multiple chunks in db
.
put_actors_value()
and put_actors_data()
store one/multiple chunks
Actors data into db
and update the chunks' ActorDigests.
When storing Actors data, an actor's storage key will be recalculated from
the actor's UniqueID
. The actor's position and dimension are not verified
to be in the chunk it is assigned to.
ActorDigest, Entity
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.