This simple Minecraft mod allows you to experience High Fidelity's spatial audio while playing Minecraft: Java Edition with others. The mod will allow you to hear spatial audio from other players who also have the mod installed and are connected to the same audio space.
Seth Alves, Sabrina Shanman
- Install Java 8 (OpenJDK, aka HotSpot) from AdoptOpenJDK or your local package manager
- Add Java 8 to your PATH
- Install a ForgeGradle-supported IDE such as Eclipse or IntelliJ Idea Community
- Eclipse: Select "Eclipse IDE For Java Developers" in the installation menu
- Prepare the IDE workspace using gradle
- Eclipse:
- Windows Powershell:
gradlew.bat genEclipseRuns eclipse
- Unix-like:
./gradlew genEclipseRuns eclipse
- Windows Powershell:
- IntelliJ Idea:
- Windows Powershell:
gradlew.bat genIntellijRuns idea
- Unix-like:
./gradlew genIntellijRuns idea
- Windows Powershell:
- Eclipse:
- Start your IDE and open your workspace, where you can edit the mod
- Eclipse:
- It is recommended to select a workspace folder at least one directory higher than this one, for example the
minecraft
folder in this repository. - Import this Minecraft mod into your workspace
- In the Package Explorer, Select "Import Projects"
- Select "General" > "Existing Projects into Workspace" and click "Next"
- Next to "Select root directory", click "Browse" and select this folder
- This directory should be listed and checked in the list of projects
- Click "Finish"
- It is recommended to select a workspace folder at least one directory higher than this one, for example the
- IntelliJ Idea: You may see a "module not specified" error. To fix this, edit your Configurations and select your "main" module.
- Eclipse:
- Build the mod
- Windows Powershell:
gradlew.bat build
- Unix-like:
./gradlew build
- The mod will be built at
build/libs/hifimc-VERSION.jar
- Windows Powershell:
- Install Minecraft Forge for Minecraft: Java Edition version 1.16
- After the mod is built at
build/libs/hifimc-VERSION.jar
, copy it to your.minecraft/mods
folder, or themods
folder of your instance as applicable for your Minecraft launcher. - Configure your modded instance to use the audio space JWT of your choice in
.minecraft/config/hifimc-client.toml
. An example config file is provided below:
#Client configuration settings
[general]
#Defines the JWT to use to connect to a High Fidelity audio space.
#Visit localhost:7777 in a web browser when the mod is loaded to connect to the space.
hifiJwt = "MY_HIFI_JWT"
- Start your Minecraft client, connecting to a Minecraft server, and open (or refresh) a tab in a supported browser to
localhost:7777
to have spatial audio while playing Minecraft.
- As High Fidelity's API currently does not support streaming audio in the Java programming language, you will need to have a web browser tab open to send and receive audio.
- As the JWT is configured on startup, you will use the same audio space regardless of which world or dimension you are in.
- This mod is only suitable for use on the Minecraft client and does not need to be installed on a Minecraft server.