KubeJS Ars Nouveau

模组

· 作者 MasterOfBob777

Ars Nouveau 的 KubeJS 支持

0 本站下载 0 关注 更新于 3 年前

需要前置:KubeJS

最新 1.0.1 · 1.19.2 · Forge

一键开服(送7天)

此附加组件允许你为模组 Ars Nouveau 创建配方。

注意:Modrinth 不托管 Ars Nouveau 模组,因此要运行此模组,你必须从其他来源安装它。

ServerEvents.recipes(event => {
	event.recipes.ars_nouveau.enchanting_apparatus(
        [
            "minecraft:sand",
            "minecraft:sand",
            "minecraft:sand",
            "minecraft:sand",
        ], // 输入物品
	    "minecraft:gunpowder", // 试剂
	    "minecraft:tnt", // 输出
	    1000, // 源消耗
	    // true // 保留试剂的 NBT,类似于锻造台配方
	);

	event.recipes.ars_nouveau.enchantment(
        [
            "minecraft:sand",
            "minecraft:sand",
            "minecraft:sand",
            "minecraft:sand",
        ], // 输入物品
        "minecraft:vanishing_curse", // 应用的附魔
        1, // 附魔等级
        1000, // 源消耗
    );

	event.recipes.ars_nouveau.crush(
        "minecraft:tnt", // 输入方块
        [{
            item: "minecraft:sand",
            chance: 1
        }] // 掉落表
        // true // 是否在世界中掉落物品?
    );

    /*
    // 这*确实*有效,但配方必须是一个有效的符文
    // 在书中,所以这实际上只能用于
    // 替换符文的配方
    event.recipes.ars_nouveau.glyph(
        "minecraft:tnt", // 输出物品(符文)
        [
            "minecraft:sand", 
            "minecraft:gunpowder",
        ], // 输入物品
        3 // 经验消耗
    );
    */

    // 可以通过 `/ars-tome id` 访问,在这种情况下是 `/ars-tome kubejs:not_glow`
  	// 这是直接复制自基础版 Ars Nouveau 中的发光陷阱之书
    event.recipes.ars_nouveau.caster_tome(
        "Not-Glow Trap", // 名称,
        [
            "ars_nouveau:glyph_touch",
            "ars_nouveau:glyph_rune",
            "ars_nouveau:glyph_snare",
            "ars_nouveau:glyph_extend_time",
            "ars_nouveau:glyph_light"
        ], // 法术
        "Doesn't snare the target and grant other targets Glowing.", // 描述
        16718260, // 颜色
        {
            "family": "ars_nouveau:default",
            "pitch": 1.0,
            "volume": 1.0
        },
    ).id("kubejs:not_glow")

    event.recipes.ars_nouveau.imbuement(
        "minecraft:sand", // 输入物品
        "minecraft:tnt", // 输出
        1000, // 源消耗
        [
            "minecraft:gunpowder" 
        ] // 祭坛物品 // 可选
    )
})

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源