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\"}}"
}
]
}
]
}
]
}
|
|