1 Managing Recordings
Victor Westerlund edited this page 2026-11-22 09:51:37 +01:00

Managing Recordings

Saved tracks have unique numeric IDs. Commands using IDs can manage any player's track; there is no separate ownership permission system.

Listing

/function replay:list

The list includes every player's recordings, including active tracks. Each entry shows its ID, status, sampled duration, and sample count. Active durations are measured through the most recent sample.

Older worlds build the recording catalog automatically on reload, in bounded batches. Listing and delete_all report that the list is still loading until this upgrade finishes. Recording and individual deletion remain available.

Halting playback

/function replay:halt { id: 1 }

Halt removes the track's loaded mannequins immediately. Unloaded mannequins are invalidated and removed when next loaded. The recording remains saved and can be played again.

Deleting recordings

/function replay:delete { id: 1 }
/function replay:delete_all

Deleting by ID requires a stopped track and removes its data, samples, and playbacks. Delete-all refuses the entire operation while any recording is active, including an offline player's recording.

Both deletion commands preserve the ID allocator, so deleted IDs are never reused by new recordings. Uninstalling also clears the allocator and resets IDs when the pack is initialized again.

Samples and cleanup

  • Halted or deleted mannequins that were unloaded are removed when next loaded. Deleted sample markers are collected from loaded chunks immediately and again every 100 ticks, so unloaded markers are also removed after their chunks return.
  • Samples remain until their recording is deleted. One marker per sample and a second copy in storage can be expensive for long recordings; delete tracks when they are no longer needed.

Delete unwanted tracks with replay:delete while the pack is installed. Removing the datapack itself does not erase saved entities or command storage.

See Uninstalling to remove replay state before removing the pack.