« Back to search

Mod

Object UUIDs

by SilverSandstone · score 5.3 · license: MIT

Object UUIDs

Download latest release

Assigns a persistent UUID to every object.

library

Object UUIDs

This mod assigns a persistent UUID to every player and entity in the game. Other mods can get an object's UUID or find an object by its UUID using the public API.

UUIDs are persistent between game sessions, and player UUIDs are also persistent between worlds and servers.

This mod can be safely uninstalled. Entities will lose their UUIDs, but not their data.

API Summary

  • objectuuids.get_uuid(object) - Returns the UUID assigned to the specified object.
  • objectuuids.get_object_by_uuid(uuid) - Returns the object with the specified UUID.
  • objectuuids.set_uuid(object, uuid) - Overrides the specified object's UUID.
  • objectuuids.add_entity_with_uuid(pos, name, uuid, [staticdata]) - Spawns a new entity with the specified UUID.

See doc/index.html for full API documentation.