Перейти к содержимому
Mineforgian

RoomRecipes

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.

Загрузки
2K
Подписчики
1
Обновлён
27 марта 2026 г.
Лицензия
MIT

Опубликован 20 мая 2023 г.

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"
    }
  ]
}

Ченджлог

1.19.2-0.0.7-alpha.1Альфа1.19.2, 1.19.3, 1.19.4 · 24 августа 2025 г.

Changed from "sonar" style room detection to "wall walking" style. This is a significantly simpler implementation to maintain and fix bugs on and it may be faster, too.

1.19.2-0.0.6-alpha.4Альфа1.19.2, 1.19.3, 1.19.4 · 13 июля 2025 г.

Fixing a bug where rooms were not detected if they had a single block wall in the corner.

1.19.2-0.0.6-alpha.3Альфа1.19.2, 1.19.3, 1.19.4 · 19 февраля 2025 г.
1.18.2-0.0.6-beta.1Бета1.18.2 · 19 февраля 2025 г.
1.18.2-0.0.6-alpha.3Альфа1.18.2 · 19 февраля 2025 г.

Final 1.18 Release

  • From now on, 1.19 is the reference version for RoomRecipes
  • Aside from major bug fixes and backports, don't expect active development on 1.18

Improvements

Fixed some crashes and log spam

1.18.2-0.0.6-alpha.2Альфа1.18.2 · 3 января 2025 г.

Fixing crashes due to complex room shapes

1.18.2-0.0.6-alpha.1Альфа1.18.2 · 30 декабря 2024 г.

Updates to support Questown development

1.18.2-0.0.5-beta.1Бета1.18.2 · 29 августа 2024 г.

Same as 0.0.5-alpha.3 - but it's been stable and reliable, so marking as beta.

Комментарии

Загружаем…