jaszlo / Playerautoma

Record and replay player actions to automate tasks. Also, re-stacks blocks when used up like Inventory tweaks. The mod works on servers but can be regarded as cheating by some.
https://modrinth.com/mod/playerautoma
Creative Commons Zero v1.0 Universal
4 stars 2 forks source link

Can I edit .rec files? #9

Closed MRCUOGUO closed 8 months ago

MRCUOGUO commented 8 months ago

If it is possible to support the editing of .rec files, I would like to know how to edit them. If editing .rec files is not possible, I hope to have support for editing .rec files so that I can adjust the delay between operations.

jaszlo commented 8 months ago

The .rec files are just serialized Java Objects. When you store a recording, all that happens is that an object of this class gets serialized.

I have been wanting to add something like that, but it seems like a really large addition. I could look into adding the option of storing the recording as some readable data format like .json as well as exporting/importing them. That would make them editable.

I could make a dedicated application for edditing these files in the future. But I don't think I will add this feature nativly in minecraft itself.

If you have any further questions please let me know :) Also feel free to add such a feature yourself and create a pull request 👍🏼

jaszlo commented 8 months ago

Will be added with the next patch. Allready got it working here Still will need to add/fix some other stuff for the next release. But I will probably release it in the next view days

jaszlo commented 8 months ago

Release has been published that allows export as json. So you can now manually edit recording