marcel0ll/CustomItems

Changing Block Drop

Omuck3 opened this issue · 1 comments

Hello. I'm trying to use CustomItems to change block drops. I'm trying to have Iron Ore drop Crushed Iron ore from Flaxbeard's Steam Power. This is the description of the crash I get from the game:

Description: Initializing game

com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 15 column 4

Here's the code I'm using:

{
    "blocksDrop":[
        {
            "id": "minecraft:iron_ore",
            "overrides": true,
            "drops":[
            {
                    "id": "Steamcraft:smashedOre:0",
                    "min" : 1,
                    "max" : 1,
                    "chance" : 100.0
                },

            ]
        ]     
    }
}

Is there a way for me to fix this?

wrong formatting, should be:

{
   "blocksDrop":[
      {
         "id":"minecraft:iron_ore",
         "overrides":true,
         "drops":[
            {
               "id":"Steamcraft:smashedOre:0",
               "min":1,
               "max":1,
               "chance":100.0
            }
         ]
      }
   ]
}

A good site for testing you formatting is Json Formatter/Validator