= 创作分享 =
你问我答
help,有没有大佬知道loottweaker的使用方法
QQ酱273980

help,有没有大佬知道loottweaker的使用方法

QQ酱273980 于 2023-3-26 15:54 ( 1年前 ) [复制链接] [只看楼主] [打印]
552 0
5RF
版本1.12.2我写了一个箱子生成维克枪械的战利品表,但因为1.12.2没有数据包,所以选择loottweaker
但是我实在是看不懂,有没有大佬知道怎么搞吗?举个例子也行
战利品表如下:
{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "item",
          "name": "mw:m4a1",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"m4a1\"}}"
            }
          ]
        }
      ]
    },
    {
      "rolls": 2,
      "entries": [
        {
          "type": "item",
          "name": "mw:m4a1mag_2",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"m4a1mag\"}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "mw:bullet556x45",
          "functions": [
            {
              "function": "set_count",
              "count": 60
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"556x45\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:ak47",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"ak47\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:ak47mag",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"ak47mag\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:bullet762x39",
          "functions": [
            {
              "function": "set_count",
              "count": 60
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"762x39\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:gunmetalplate",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"gunmetalplate\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:gunmetalingot",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"gunmetalingot\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:copperingot",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:copperingot\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:gunmetalcomposite",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:gunmetalcomposite\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:sulfurdust",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:sulfurdust\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:steeldust",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:steeldust\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:steelingot",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:steelingot\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:steelingot",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:steelingot\"}}"
            }
          ]
        }
      ]
    },
        {
      "rolls": 2,
      "entries": [
        {
          "type": "item",
          "name": "minecraft:gunpowder",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 3,
                "max": 5
              }
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"gunpowder\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:carbonfiber",
          "functions": [
            {
              "function": "set_count",
              "count": 2
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:carbonfiber\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:syntheticpolymercomposite",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:carbonfiber\"}}"
            }
          ]
        },
                {
          "type": "item",
          "name": "mw:syntheticplastic",
          "functions": [
            {
              "function": "set_count",
              "count": 4
            },
            {
              "function": "set_nbt",
              "tag": "{display:{Name:\"mw:syntheticplastic\"}}"
            }
          ]
        }
      ]
    }
  ]
}


发表于 2023-3-26 15:54:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

回复 | 举报

该帖共收到 0 条回复!
百科目前不允许匿名发帖哦~ 请先 [ 登陆 ][ 注册 ] 吧~

本版积分规则

发新帖
  • 回复
  • 点评
  • 评分

[ MC百科(mcmod.cn) 除另有声明,所有开放公共编辑的内容均使用 BY-NC-SA 3.0 协议 ]

Minecraft百科CC协议
快速回复 返回顶部 返回列表