Home›Java›Mods›Integrated REST
Integrated REST
ModsJava

Integrated REST

Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.

by kroeser · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.11 · NeoForge⬇ Download for 1.21.10 · NeoForge⬇ Download for 1.21.8 · NeoForge⬇ Download for 1.21.4 · NeoForge⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.21 · NeoForge⬇ Download for 1.20.4 · NeoForge⬇ Download for 1.20.1 · Forge⬇ Download for 1.19.4 · Forge⬇ Download for 1.19.3 · Forge⬇ Download for 1.19.2 · Forge⬇ Download for 1.19 · Forge⬇ Download for 1.18.2 · Forge⬇ Download for 1.18.1 · Forge⬇ Download for 1.16.5 · Forge⬇ Download for 1.16.4 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Integrated REST — screenshot 1Integrated REST — screenshot 2

Integrated REST — Minecraft Java mod, screenshot 1

 

This requires the Cyclops Core library and Integrated Dynamics!

Come talk to us in #integratedmods on the Cyclops Discord server!

 

This mod allows you to read from and write to your Integrated Dynamics networks via a REST API.
This makes it possible to read the status of your networks and worlds via Web-protocols, and interact with them by POST-ing values to HTTP Proxy blocks in your world.

 

Some examples on what is possible with this mod (and some external coding):

 

WARNING: If you have never heard about 'API' or 'REST' before, then this probably is nothing for you. This mod is mainly aimed at advanced users wanting to do very advanced automation using external system that can communicate over HTTP.

 

This mod exposes your networks as JSON on a configurable port. Here is a snippet of a single network element output:

 

{
  "@context": "https://raw.githubusercontent.com/CyclopsMC/IntegratedREST/master-1.12/src/main/resources/context.jsonld",
  "@id": "http://localhost:3000/",
  "networkElements": [
    {
      "@id": "http://localhost:3000/networkElement/integrateddynamics/part/4",
      "position": {
        "world": 0,
        "x": -26,
        "y": 57,
        "z": -249,
        "side": "ir:east"
      },
      "block": "http://localhost:3000/registry/block/integrateddynamics/cable",
      "@type": [
        "NetworkElement",
        "http://localhost:3000/registry/part/display_panel"
      ],
      "channel": 0,
      "priority": 0,
      "updateInterval": 1,
      "network": "http://localhost:3000/network/1619976862",
      "valueType": "http://localhost:3000/registry/value/valuetype/valuetypes/integrateddynamics/string/name",
      "value": "I was updated\\nvia HTTP!",
      "target": {
        "world": 0,
        "x": -25,
        "y": 57,
        "z": -249,
        "side": "ir:west"
      },
      "loaded": true
    },
  ...
  ]
}

In fact, this JSON is valid JSON-LD (Linked Data JSON), which makes it possible to use this output in RDF tools. 

 

Next to the state of your network and its elements, this mod also exposes the state of most Forge registries.
All available information (accessible via the API index page):

This mod adds a single craftable block to the game, the HTTP Proxy.

Integrated REST — Minecraft Java mod, screenshot 2

 

Like all network elements, this block is accessible via HTTP. For example, an HTTP Proxy with ID 7 will be accessible via http://localhost:3000/networkElement/integrateddynamics/http/7.

This block has an internal value state that can be updated via HTTP POST requests (more information on the wiki).

 

Note: If you are using this mod on a server, you'll probably want to disable starting up the HTTP server client-side, by disabling it via the config file of the players.

 

This mod collects anonymized startup data, this can be disabled in the config file and adheres to Minecraft's snooper settings.

 

Bisect Hosting
Support us via the referral code cyclops when renting a server at Bisect Hosting, and get 25% off your first month!


If you like this mod, consider supporting me on Patreon!

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more