MinecraftToolbox

Command Minecraft (TM) from MATLAB using this Toolbox and Minecrat Forge modding software. Contains tools to allow easy modding setup.

You are now following this Submission

https://www.youtube.com/watch?v=0tFP3koYDiI&t=5s

This Add-On exposes static methods to allow MATLAB to send commands to the game. By default, this Add-On will send messages to a Minecraft (running our mod) on localhost at port 57777. The address and port of the running Minecraft can be modified by setting the following environment variables before starting MATLAB:
MW_MINECRAFT_ADDRESS - IP address or hostname where the modded Minecraft is running.
MW_MINECRAFT_LISTENING_PORT - Port to send commands to.

Similarly, before starting the modded Minecraft, the following environment variables can be used to specify the appropriate MATLAB to communicate with:
MW_MATLAB_LISTENING_ADDRESS - IP address or hostname where MATLAB is running.
MW_MATLAB_LISTENING_PORT - Port MATLAB will listen to (defaults to 58777).

The Setup.installForge function can be used to initiate the mod installation. Be sure to install Minecraft before running Setup.installForge.

Cite As

Brendan Cashman (2026). MinecraftToolbox (https://www.mathworks.com/matlabcentral/fileexchange/60546-minecrafttoolbox), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.1

Updated copyrights.

1.0.0.0

Addressed reviewer feedback.