A Minecraft integration for Voiceflow! Demo video: https://youtu.be/yUGFjKahGUQ
Built based off the Python example from Voiceflow's Python API Example.
We connect to the Minecraft server's RCON interface to send commands to the server, and monitor the server's log file to get player messages.
- Install Python 3.8 or higher.
- Install the required packages with
pip install -r requirements.txt
. - Create a
.env
file in the root directory of the project and set the your Voiceflow API key asVF_API_KEY="VF.DM.XXXXXXXXXX
- Download the Minecraft server application from here. Place the server in a subfolder called minecraft-server.
- Follow the installation instructions, run the server once, accept the ELUA, and then close the server.
- In
server.properties
, setenable-rcon=true
andrcon.password=yourpasswordhere
to enable RCON. Be sure to take note of the RCON port inrcon.port
(usually 25575). - In
mrcon.py
set theRCON_HOST
(the server's IP),RCON_PORT
, andRCON_PASSWORD
variables to the values you set inserver.properties
.
- Run the Minecraft server with
java -Xmx1024M -Xms1024M -jar minecraft_server.1.20.4.jar
. - Start the Voiceflow integration with
python main.py
. - To stop it, from in game, type
!stop
in the chat.