Download IAPI — Minecraft Mods — MetaMods
IAPI

Downloads

0

Last update

1 year ago

Versions

1.20.4
Client
Fabric
Utils

IAPI

This modification adds functionality to Minecraft for importing items from external programs and utilities, opening up new possibilities for both players and developers.

How players can use it: Enable creative mode in Minecraft and use the IAPI import option in your external program. The system will automatically add the required items to your inventory.

Capabilities for developers: Developers can transmit items into the game via POST requests to the local device at address 127.0.0.1. Port 25530 is used by default, but it can be changed if needed.

// Example for web applications

port = 25530; // We recommend adding the ability to change the port

// Browsers often block receiving responses from such requests
// Error information will be displayed in the game logs
// Desktop applications don't have this problem
fetch("http://127.0.0.1:" + port, {
  method: "POST",
  headers: {
    "Content-Type": "text/plain"
  },
  body: "minecraft:stone{display:{Name:'\'Happy Stone\''},Enchantments:[{}]}"
});

Using this API, you can easily integrate various external item generators with your Minecraft gaming session.

Project members
Totobird-Creations

Totobird-Creations

Developer

Created: 23 Mar 2024

ID: 24164