HomeJavaDatapacksEntityDB
EntityDB

entitydb - Store arbitrary NBT data for any entity

Uninstallation

Run

function entitydb:uninstall

to clear all stored data. Then disable and delete the pack file(s).

Usage

Open a database entry for editing:

execute as <entity> run function entitydb:open

The stored data is now available for usage at entitydb:data open, e.g.:

data modify storage entitydb:data open merge value {text:"hello!"}

After you're done, run

execute as <entity> run function entitydb:close

Where <entity> is the same entity that ran entitydb:open.

At most one data entry may be opened for editing at any time.

Delete an entry

This may be run regardless of whether an entry was opened for editing or not.

execute as <entity> run function entitydb:close
Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more