跳到正文

RoomRecipes

作者:bradsk88

RoomRecipes is a utility mod which can detect a "rooms" and "room recipes". It is not much use on its own, and is typically used as a dependency for other mods.

收藏

截图

介绍

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

RoomRecipes is a utility mod which adds two things:

  • Room Detection
  • Room Recipes

Note

RoomRecipes was created to power the Questown mod. But it may also be used for other mods.

Room Detection

When given an X,Z coordinate, this library can identify an enclosed space (a “room”). The simplest example of this would be a set of four straight walls connected at the corners to form a rectangle. But RoomRecipe can also detect more complex shapes and has an extensive set of unit tests to protect its detection logic from breaking.

Room Recipes

A Room Recipe is a JSON file which consists of a set of items that correspond to blocks. These files go in the typical “recipes” folder that mods and resource packs use to add crafting recipes to Minecraft.

The RoomRecipes mod can be used to check if a Room contains all of those blocks. If the room contains all of the recipe’s blocks, that recipe is complete.

Room recipes can added via mods or resource packs. A room recipe looks like this:

crafting_room.json

{
  "type": "roomrecipes:room",
  "recipe_strength": 1,
  "ingredients": [
    {
      "item": "minecraft:torch"
    },
    {
      "item": "minecraft:crafting_table"
    }
  ]
}

常见问题

RoomRecipes 支持哪些 Minecraft 版本?

RoomRecipes 支持 Minecraft Java 版 1.18.2–1.19.4,共 4 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

RoomRecipes 怎么安装?

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

评论

登录后评论和评分

bradsk88 的其他作品

查看全部 →