Entity Custom Data
Library for adding custom data to any entities through datapacks
Command Format
Commands are executed in the following format:
execute as <entity> run function entity_custom_data:<operation> <arguments>
Available Operations
The following data management operations are supported:
- Data retrieval:
get.print,get.run,get.save - Data modification:
modify.set,modify.append,modify.prepend,modify.insert,modify.merge - Data management:
mergeandremove
Library Features
The system provides the ability to store custom data simultaneously for 2⁶² different entities. All entities can have their own sets of custom data managed through datapacks.
For easier work with the library, an interactive control panel is available. Run the command /function entity_custom_data:control to open the help menu with descriptions of all features.
Automatic Cleanup
- Data from non-playable entities is automatically deleted after their death
- The system controls checking for deletion of unnecessary data
Library Removal
To remove the library from the world, use the command:
function uninstall:entity_custom_data.<mode>
Two modes are available: DELETE (requires special conditions) and data saving mode (just one command).