RoomRecipes 是一个实用型模组,它添加了以下两项功能:
- 房间检测
- 房间配方
注意
RoomRecipes 最初是为了支持 Questown 模组而创建的。但它也可以被其他模组使用。
房间检测
当提供 X、Z 坐标时,该库可以识别一个封闭空间(即“房间”)。最简单的例子是由四面直墙在角落处连接形成的矩形。但 RoomRecipes 也能检测更复杂的形状,并且拥有广泛的单元测试集,以保护其检测逻辑不被破坏。
房间配方
房间配方是一个 JSON 文件,包含一组与方块对应的物品。这些文件通常放在模组和资源包用于向 Minecraft 添加合成配方的 “recipes” 文件夹中。
RoomRecipes 模组可用于检查某个房间是否包含所有指定方块。如果房间包含了配方所需的所有方块,则该配方视为完成。
房间配方可以通过模组或资源包添加。一个房间配方的示例如下:
crafting_room.json
{
"type": "roomrecipes:room",
"recipe_strength": 1,
"ingredients": [
{
"item": "minecraft:torch"
},
{
"item": "minecraft:crafting_table"
}
]
}
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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RoomRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
首个 1.20.1 构建版本(Forge 47)。功能与 1.19.2-1.0.0-beta.2 相同:盔甲架和物品展示框算作房间内容物,且在大型建筑中墙壁行走速度更快并设有边界限制。
房间检测:修复了在崎岖墙壁区域导致的长达数分钟的服务器卡顿问题(通过限制墙壁行走范围、优化已访问集合)。盔甲架和物品展示框现在被计为房间内容物。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧