Skip to content

Displays Minecraft time as human time on a seven segment display via an Arduino

License

Notifications You must be signed in to change notification settings

antonilol/mc_arduino

Repository files navigation

Build

mc_arduino

Install and use

This mod runs on Fabric, so make sure you have that installed.

Download the Fabric API if you don't have it already. Put it in your mods folder.

Go to Releases and download the latest release. Also put it in your mods folder.

The mods folder can be found in .minecraft. If not, create it.

Start Minecraft and open a world or join a server.

Have an arduino connected (or connect in now) with the program loaded.

Type /mc_arduino serial list to list serial devices.

Type /mc_arduino serial connect <device> to connect and start the Minecraft clock on the displays.

Type /mc_arduino serial disconnect to stop it and make the serial port available again. (You can't upload any programs to an Arduino when the serial port is busy)

/mc_arduino serial is also available as /serial.

I will be adding a led strip to it later for the XP bar

Compiling

Linux and Mac OS

Clone the repo

git clone https://github.com/antonilol/mc_arduino.git

or download the zip and unzip it.

Enter the folder (cd or double click).

If you downloaded the zip, make gradlew executable.

chmod +x gradlew

And finally, compile.

./gradlew build

Windows

Clone or download like mentioned above and build with

gradlew.bat build

Developing

Clone the repo.

To get completions in your IDE (if applicable) run ./gradlew genSources (unix) or gradlew.bat genSources (windows).

More on that here.

License

MIT