跳到正文

More Outputs API

A developer API to add recipes with more than one output

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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)

常见问题

More Outputs API 支持哪些 Minecraft 版本?

More Outputs API 支持 Minecraft Java 版 1.18–1.21,共 16 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

More Outputs API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

scaredrabbitnl_ 的其他作品

查看全部 →