0

所以我所拥有的是下面的配置。

"minecraft:blaze" {
"HOB Night" {
    # This Feature has not been Implemented yet
    "============Custom Drops============" {
        # True = Custom Drops, False = Vanilla
        "Enable Custom Drops: "=false
        # List out the Minecraft ID(ie. minecraft:Iron_sword) and the Number of them
        "List of Items and Amount"=
         "minecraft:dirt 5",
         "minecraft:stone 15"
    }
}

所以我到目前为止是这个

ConfigurationManager.getInstance().getSpawnControl().getNode("minecraft:blaze", "HOB Night", "============Custom Drops============", "List of Items and Amount" ).getList(transformer)

但是...我不知道如何将“变压器”放入 getList 功能的那部分...帮助?

4

1 回答 1

0

如果你让我建议。首先,您应该重新考虑您的关键配置名称。缺少两件事,正确关闭大括号和列表需要用方括号括起来。例如:

"minecraft:blaze": {
  "HOB Night": {
    "============Custom Drops============": {
        "Enable Custom Drops: ": false,
        "List of Items and Amount": ["minecraft:dirt 5", "minecraft:stone 15"]
    }
  }
}
于 2017-11-26T16:59:47.407 回答