PortalTransform

模组

· 作者 QiHuang02

添加了新的传送门配方。

0 本站下载 0 关注 更新于 9 个月前

最新 0.7.2+1.20.1 · 1.20.1 · Forge

一键开服(送7天)

PortalTransform 配方

示例 GUI

传送门转化 - 当玩家向传送门投掷物品时,它们会发生元素转换并可能产生副产物。支持完整的数据包扩展性!通过 JSON 配置文件设计自定义的转化链。

此 JSON 文件应放置在以下目录中:/data/portaltransform/recipe/

{
        "type": "portaltransform:portal_transform",
        "input": {
            "item": "minecraft:diamond",
        },
        "result": {
            "id": "minecraft:emerald"
        },
        // 可选:维度限制
        // "current_dimension": "minecraft:overworld",
        // "target_dimension": "minecraft:the_nether",
        "byproducts": [
            {
                "byproduct": { "id": "minecraft:lapis_lazuli" },
                "chance": 0.9,
                "counts": {
                    "min": 1,
                    "max": 3
                }
            }
        ]
    }

ServerEvents.recipes((event) => {
    event.recipes.portaltransform.item_transform(
        "minecraft:cobblestone",
        "minecraft:prismarine",
        [
                 Byproduct.of("minecraft:redstone", 0.8, 1, 4)
        ],
        {
            current: "minecraft:overworld",
            target: "minecraft:the_nether"
        },
        "any", // 可以是 "any"、"clear"、"rain"、"thunder"
        0.1
    );
})

如果您发现本页面代码存在错误,可能需要查看此处。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源