Minecraft – How to record all player actions in minecraft

minecraft-java-edition

I'm trying to work out a way to record all actions a player makes in minecraft, including moving, stopping moving, changing direction, placing a block (and block location/type), breaking a block (and block location/type), eating, pushing buttons, pulling levers, opening doors, attacking mobs (being hit by mobs) etc.

I've looking for a minecraft API but this doesn't exist yet! Is there any way to do this at the moment?

Best Answer

The best option I know of is the Instant Replay project by Sethbling that can be found here. The map is available for download in the video description so you can use that code or parts of it. However, you sound as if you're looking for a mod and this project relies entirely on command blocks, so this may not be what you really want.