marcel0ll / CustomItems

The most simple way to add your custom items to minecraft
https://marcel0ll.github.io/CustomItems/
20 stars 19 forks source link

Changing Block Drop #44

Closed Omuck3 closed 8 years ago

Omuck3 commented 8 years ago

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?

QuImUfu commented 8 years ago

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