Skip to content

A Minecraft Forge Mod that implements an http interface for reading and writing blocks. Intended for use in the GDMC competition

License

Notifications You must be signed in to change notification settings

nikigawlik/gdmc_http_interface

Repository files navigation

This project has moved somewhere else!

Development has kindly been picked up by Niels-NTG and the project now lives over here.

Minecraft HTTP Interface Mod (Minecraft 1.16.5)

This repo is based on the GDMC example mod which is based on the Forge MDK.

What it's all about

This mod opens an HTTP interface so that other programs (on the same machine) can read and modify the world. It is meant as a tool to be used for the Generative Design in Minecraft Competition.

When you open a Minecraft world, this mod opens an HTTP Server on localhost:9000. I recommend using Postman or a similar application to test out the http interface. A Python example of how to use the interface can be found here.

Features / HTTP Endpoints

The current endpoints of the interface are

GET,PUT /blocks     Modify blocks in the world
POST    /command    Run Minecraft commands
GET     /chunks     Get raw chunk nbt data
GET     /buildarea  Get the build area defined by the /setbuildarea chat command

A detailed documentation of the endpoints can be found over here.

Installation

Install instructions are over here. You need to own a copy of Minecraft to use the http interface!

About

A Minecraft Forge Mod that implements an http interface for reading and writing blocks. Intended for use in the GDMC competition

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages