Download Entity Custom Data — Minecraft Mods — MetaMods
Entity Custom Data

Entity Custom Data

Active

Downloads

0

Last update

1 year ago

Versions

1.21 — 1.21.4
Server
Fabric
Forge
Neoforge
Quilt
Libraries

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: merge and remove

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).

Project members
RedstoneOre

RedstoneOre

Developer

Created: 6 Dec 2024

ID: 66361