跳到正文

Player Steps Recorder

作者:Happy_AlexRO

Player Steps Recorder is a datapack library that adds recordings into minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Player Steps Recorder saves step recordings that map creators can record. They can be played via mannequin entities and can be helpful in maps or games where you have to use accurate player movement.

The features that PSR can support are:

  • Movement
  • Rotation
  • Items & Armor
  • Pose (standing, sneaking, crawling, swimming)

… More can be tracked by your datapack via actions!

How To Use

If you want a short command list, you can use /function psr:help, or read below for a more in-detail explanation.

Recording

function psr:record {name:<name>,x:<x>,y:<y>,z:<z>} (also works with ~ and ^)\
Each recording starts with spawning an origin point, at x,y,z.\
The origin point helps by replaying your recording anywhere you’d like.

function psr:stop_recording stops the recording

Playing your recording

function psr:play {name:<name>,x:<x>,y:<y>,z:<z>} (also works with ~ and ^)\
Fun Fact: By moving the origin point, you can move the whole recording while it’s playing.\
Also, you can play multiple instances of the same recording at the same time!

function:psr:stop_playback {name:<name>} stops all playing recording instances with the same name. Be careful when playing multiple instances of the same recording!

Other / Documentation

Steps can only save values that have changed. For example, the longer you stay still, the less data will be saved.
Each recording gets stored like a file. If you want to access it via other datapacks, recordings is saved in this storage: psr:recordings recordings.

Recordings

Recordings are SNBT data in a storage that can be used to recreate player-like movement.\
Components in storage
|Component|Type|Description|
|-|-|-|
|name|String|Name of the recording|
|version|String|Version the recording was saved in|
|frames|Int|Number of frames. Used to keep the recording from cutting off faster than usual when not updating anything|
|steps|Array (contains Steps)|Steps of the recording|

Steps

Steps are parts of a Recording. They track player properties and only save changes.\
Components in storages
|Component|Type|Description|
|-|-|-|
|frame|Int|The frame that the step tracks. Since steps only track changing values, using the index value as a frame value would break the playback|
|Pos|Array|Position that the recorder had (relative to the origin point)|
|Rotation|Array|Rotation that the recorder had (relative to the origin point)|
|mainhand|Item NBT|Item that the recorder had in their mainhand|
|offhand|Item NBT|Item that the recorder had in their offhand|
|head|Item NBT|Item that the recorder was wearing on their head|
|chest|Item NBT|Item that the recorder was wearing on their chest|
|legs|Item NBT|Item that the recorder was wearing on their legs|
|feet|Item NBT|Item that the recorder was wearing on their feet|
|action|String|Action that the recorder triggered|

Actions

Actions are items that can be right clicked while recording to add comments or mark frames easily for other datapack purposes.

常见问题

Player Steps Recorder 支持哪些 Minecraft 版本?

Player Steps Recorder 支持 Minecraft Java 版 1.21.9–26.3,共 8 个版本。下载时注意选择和你游戏版本一致的文件。

Player Steps Recorder 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Happy_AlexRO 的其他作品

查看全部 →