登陆 注册 QQ登陆
快捷导航
查看: 0|回复: 0

[模组分享] 智能食谱 (Smart Recipes)-MOD模组

[复制链接]

4932

主题

60

回帖

9555

积分

龙❁妻

Rank: 8Rank: 8

经验
9555 EP
金粒
4980 粒
绿宝石
20 块
爱心
0 点
发表于 昨天 19:21 | 显示全部楼层 |阅读模式 IP:浙江宁波
智能食谱 (Smart Recipes)Github |相关wiki |源站链接支持: fabric一款扩展了配方格式的面料MOD,可以通过条件进行扩展。



你是否认为标准的Minecraft配方格式很无聊?或者你希望使游戏更加事件驱动,就像Terraria一样? 如果是这样,那么“智能食谱”正是你所需要的!使用我们的新条件配方格式来打造你自己独特的游戏体验吧!

格式

如果你更喜欢实际示例而不是解释,可以直接跳到#example]示例部分。但是,不要忘记稍后回顾#conditions]条件和#reload-conditions]重新加载条件部分。

条件格式

“智能食谱”mod扩展了[基本配方格式](链接)。重要的是要了解基本格式的工作原理;否则,以下描述可能没有意义。

此模组引入了一个新的 `smart_recipes:conditions` 属性用于配方格式。这在某种程度上类似于战利品表中的条件。让我们更仔细地看看:

jsonc

\"smart_recipes:conditions\": []

此属性确定了配方加载的条件。如果指定了多个条件,则所有条件必须通过。

jsonc

\"smart_recipes:conditions\": [

  {

    \"condition\": \"conditionName0\",

    \"args\": [

      // 传递给名为 `conditionName0` 的条件的参数。

      4,

      \"2\"

    ]

  },

  {

    \"condition\": \"conditionName1\",

    \"args\": [

      // 传递给名为 `conditionName1` 的条件的参数。

      \"foo\"

    ]

  }

]

此示例与战利品表中的条件编写方式相同。 但是,我觉得它们太冗长了。 让我们探讨一下如何改进我们的条件。

jsonc

// 让我们将这个条件声明:

{

  \"condition\": \"conditionName1\",

  \"args\": [

    \"foo\"

  ]

}

// 改为:

\"conditionName1\": [\"foo\"]

好多了,是不是?

jsonc

\"smart_recipes:conditions\": [

  {

    \"conditionName0\": [4, \"2\"]

  },

  {

    \"conditionName1\": [\"foo\"]

  }

]

这比之前还要好,但仍有改进的空间。 让我们将我们的条件合并为单个对象:

jsonc

\"smart_recipes:conditions\": [

  {

    \"conditionName0\": [4, \"2\"],

    \"conditionName1\": [\"foo\"]

  }

]

最后,如果数组只包含一个对象,`Smart Recipes`mod允许您省略其声明。 这是最终结果:

jsonc

\"smart_recipes:conditions\": {

  \"conditionName0\": [4, \"2\"],

  \"conditionName1\": \"foo\"

}

我应该指出,`智能食谱`可以解析上面的*所有*示例,因此您可以选择自己喜欢的样式。

重新加载条件格式

重新加载条件允许重新评估不同场合上的配方条���。 如果您的配方依赖于天气、时间和/或其他易变实体,这可能会很有用。

这个过程非常简单。你只需要提供配方依赖的重新加载条件的名称:

jsonc

\"smart_recipes:reload_conditions\": [

  \"weather_changed\",

  \"time_changed\"

]

条件

`false`

不需要参数,始终返回`false`。

jsonc

\"smart_recipes:conditions\": [

  \"false\"

]

`true`

不需要参数,始终返回`true`。

jsonc

\"smart_recipes:conditions\": [

  \"true\"

]

`or` 和 `any`

如果指定的任一条件返回`true`,则返回`true`。

jsonc

\"smart_recipes:conditions\": {

  \"or\": [

    { \"false\": {} },

    false,

    \"true\"

  ]

}

`and` 和 `all`

如果指定的所有条件都返回`true`,则返回`true`。

jsonc

\"smart_recipes:

来自Modrinth所有游戏版本1.20.21.20.31.20.41.201.20.11.19.41.19.31.191.19.11.19.21.18.21.181.18.11.171.17.1所有类型fabric0.2.1+1.20.2smart-recipes-0.2.1+1.20.2+build.24.jar下载0.2.1+1.20.2#Releasesmart-recipes-0.2.1+1.20.2+build.24-sources.jar下载0.2.1+1.20.2#Release### Features:- Minecraft `1.20.2` support### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.20.2支持游戏: 1.20.2, 1.20.3, 1.20.4类型:FabricRelease下载次数: 2280.2.1+1.20smart-recipes-0.2.1+1.20.jar下载0.2.1+1.20#Releasesmart-recipes-0.2.1+1.20-sources.jar下载0.2.1+1.20#Release### Features:- Minecraft `1.20` support### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.20支持游戏: 1.20, 1.20.1类型:FabricRelease下载次数: 4100.2.1+1.19.4smart-recipes-0.2.1+1.19.4.jar下载0.2.1+1.19.4#Releasesmart-recipes-0.2.1+1.19.4-sources.jar下载0.2.1+1.19.4#Release### Features:- Minecraft `1.19.4` support### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 1310.2.1+1.19.3smart-recipes-0.2.1+1.19.3.jar下载0.2.1+1.19.3#Releasesmart-recipes-0.2.1+1.19.3-sources.jar下载0.2.1+1.19.3#Release### Features:- Minecraft `1.19.3` support### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.19.3支持游戏: 1.19.3类型:FabricRelease下载次数: 1250.2.1+1.19smart-recipes-0.2.1+1.19.jar下载0.2.1+1.19#Releasesmart-recipes-0.2.1+1.19-sources.jar下载0.2.1+1.19#Release### Features:- Minecraft 1.19 support### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.19支持游戏: 1.19, 1.19.1, 1.19.2类型:FabricRelease下载次数: 1,1220.2.1+1.18.2smart-recipes-0.2.1+1.18.2.jar下载0.2.1+1.18.2#Releasesmart-recipes-0.2.1+1.18.2-sources.jar下载0.2.1+1.18.2#Release### Changes:- `minecraft:conditions` and `minecraft:reload_conditions` entries are obsolete *(but are still supported)* for the sake of compatibility with other mods. Use `smart_recipes:conditions` and `smart_recipes:reload_conditions` instead.展开版本: 0.2.1+1.18.2支持游戏: 1.18.2类型:FabricRelease下载次数: 2820.2.0+1.18.2smart-recipes-0.2.0+1.18.2.jar下载0.2.0+1.18.2#Releasesmart-recipes-0.2.0+1.18.2-sources.jar下载0.2.0+1.18.2#Release### Features:- Minecraft 1.18.2 support展开版本: 0.2.0+1.18.2支持游戏: 1.18.2类型:FabricRelease下载次数: 2060.2.0+1.18smart-recipes-0.2.0+1.18.jar下载0.2.0+1.18#Releasesmart-recipes-0.2.0+1.18-dev.jar下载0.2.0+1.18#Releasesmart-recipes-0.2.0+1.18-sources-dev.jar下载0.2.0+1.18#Releasesmart-recipes-0.2.0+1.18-sources.jar下载0.2.0+1.18#Release### Features:- Minecraft 1.18 support- ModManager integration### Breaking Changes:- Name of the root package was changed展开版本: 0.2.0+1.18支持游戏: 1.18, 1.18.1类型:FabricRelease下载次数: 3940.1.1+1.17smartrecipes-0.1.1+1.17.jar下载0.1.1+1.17#Releasesmartrecipes-0.1.1+1.17-dev.jar下载0.1.1+1.17#Releasesmartrecipes-0.1.1+1.17-sources-dev.jar下载0.1.1+1.17#Releasesmartrecipes-0.1.1+1.17-sources.jar下载0.1.1+1.17#Release### Features:- Added `debug` config option that enables/disables logger output ([#1](https://github.com/Kir-Antipov/smart-recipes/issues/1))展开版本: 0.1.1+1.17支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 4100.1.0+1.17smartrecipes-0.1.0+1.17.jar下载0.1.0+1.17#Release### Features:- Initial release for Minecraft 1.17.x展开版本: 0.1.0+1.17支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 86全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
智能食谱
楼主 昨天 19:21 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-8-11 04:58 , Processed in 0.508648 second(s), 35 queries , Redis On.

快速回复 返回顶部 返回列表