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

Getting Started

Supports Minecraft Java Edition 1.21.9 through 26.3 and requires mcfstd 2.4.3 in the same world. Compatibility is tested on 1.21.9 (data pack format 88.0) and 26.3 (121.0). The mannequin fields and pack format follow the Java 1.21.9 release notes.

Minecraft 26.3 renamed the predicate discriminator from condition to type. The pack automatically selects compatible predicates from overlay_26_3 on 26.3, while older releases use the base predicates. This follows the Java 26.3 predicate changes. Keep the overlay directory and pack.mcmeta together when copying or packaging the datapack; copying only data/ will not include the compatibility fix.

Installation

You need permission to run commands: enable cheats in singleplayer or use an operator account on a server.

  1. Download this datapack and mcfstd, and extract them if they are archived.

  2. Place the mcf-replay and mcfstd folders in your world's datapacks/ folder. Each pack's pack.mcmeta must be directly inside its folder, for example datapacks/mcf-replay/pack.mcmeta. Keep the complete packs, including replay's overlay_26_3 folder.

  3. Open the world or start the server, then reload:

    /reload
    
  4. Check that both packs are enabled:

    /datapack list enabled
    

    If either pack is disabled, enable it using its folder name:

    /datapack enable "file/mcfstd"
    /datapack enable "file/mcf-replay"
    

Saved tracks, recording IDs, and active playback survive reloads and world restarts.

First recording

Run these commands as a player with function permissions. Move around between starting and stopping the recording:

/function replay:start
/function replay:stop
/function replay:play_latest

Starting and stopping print the recording's ID. Use it to start another playback:

/function replay:play { id: 1 }

Each player can record one track at a time, and players can record concurrently. New recordings use the mannequin's default skin. See Recording and Playback for timing and chunk behavior.

Calling from command blocks or datapacks

For command blocks or other datapacks, give player commands an explicit executor:

execute as @p at @s run function replay:start
execute as @p at @s run function replay:stop
function replay:play { id: 1 }

Commands inside mcfunction files omit the leading /. See Function Reference for the full public API.