More Outputs API

More Outputs API

A developer API to add recipes with more than one output

by
1.7K Downloads
fabriclibraryutility
Rent Server with this Mod

Screenshots

More Outputs API Screenshot 1
More Outputs API Screenshot 2

About this Mod

More Outputs API

You should only download this mod if you are a developer who wants to use the lib/api or when some mod requires this lib/api.

What is this mod?

Ever wanted to make recipes with more than one output? Now is the chance to do so! This mod is a library for developers to add more than one output to their recipes. This 'mod' will not do ANYTHING on its own!
This lib/api makes it much easier for developers to add recipes with more than one output to their mod. Before, some developers made custom recipe classes that did have the neccessary requirements but for most it was impossible.
The lib is aimed at devs who don't know how to start or just are generally new to modding but could also be a valuable asset to more experienced modders.

It works by instead of only implementing Recipe, you also implement one of the classes from this mod.
Short ex.:


public class SomeCustomRecipe implements Recipe<SimpleInventory>, Output2Recipe<SimpleInventory> {
    [... All methods that are needed to implement from Recipe ...]
    
    //All methods implemented by Output2Recipe
    @Override
    public ItemStack getSecondResult(DynamicRegistryManager registryManager) {
      return secondOutput;
    }

    @Override
    public ItemStack craftSecond(DynamicRegistryManager registryManager) {
      return secondOutput;
    }
    
}

This will make sure you can use those methods outside the SomeCustomRecipe for registering screenhandlers, block entities etc. An indepth tutorial with a complete guide on how to use this is found on the wiki

Features:

  • Up to 4 possible outputs
  • Included example implementation (Not yet implemented)

Issues:

Please report issues to the github repository. Suggestions may also be submitted trough the issues. If you have any other questions, please ask them personally via discord. Username: scaredrabbitnl_. (Support server is coming sometime)

Available Versions

More Outputs API 2.0.0.1-1.21release
MC 1.21fabric
July 4, 2024
More Outputs API 1.0.6.1-1.20.6release
MC 1.20.6fabric
July 4, 2024
More Outputs API 1.0.5.1-1.20.5release
MC 1.20.5fabric
July 4, 2024
More Outputs API 1.0.4.1-1.20.4release
MC 1.20.4fabric
July 4, 2024
More Outputs API 1.0.3.1-1.20.3release
MC 1.20.3fabric
July 4, 2024

How to Install More Outputs API on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21).

3

Install Mod

Open the mod browser in the dashboard and search for "More Outputs API". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21, 1.20.6, 1.20.5 (+13 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

More Outputs API server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21). You can switch loaders with one click in the panel.

Is More Outputs API compatible with fabric?

More Outputs API officially supports fabric for Minecraft 1.21, 1.20.6, 1.20.5. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with More Outputs API – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if More Outputs API consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install More Outputs API with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.211.20.61.20.51.20.41.20.31.20.21.20.11.201.19.41.19.3+6 more