Spawn chests in your world with items you defined in JSON files.
It's quite simple. Fill a chest with desired items and right click it while you are sneaking and in creative mode.
A file will be created in your config folder.
An example:
{
"items": [
{
"modID": "minecraft",
"name": "iron_sword",
"minMeta": 0,
"maxMeta": 0,
"minSize": 1,
"maxSize": 1,
"chance": 90,
"enchantments": [
{
"id": 16,
"strength": 1
},
{
"id": 21,
"strength": 3
}
]
},
{
"modID": "minecraft",
"name": "speckled_melon",
"minMeta": 0,
"maxMeta": 0,
"minSize": 4,
"maxSize": 8,
"chance": 70
},
{
"modID": "minecraft",
"name": "emerald",
"minMeta": 0,
"maxMeta": 0,
"minSize": 2,
"maxSize": 4,
"chance": 10
},
{
"modID": "minecraft",
"name": "coal",
"minMeta": 0,
"maxMeta": 1,
"minSize": 32,
"maxSize": 64,
"chance": 100
},
{
"modID": "minecraft",
"name": "gold_ingot",
"minMeta": 0,
"maxMeta": 0,
"minSize": 4,
"maxSize": 16,
"chance": 40
},
{
"modID": "minecraft",
"name": "stained_glass",
"minMeta": 0,
"maxMeta": 15,
"minSize": 2,
"maxSize": 60,
"chance": 80
},
{
"modID": "minecraft",
"name": "baked_potato",
"minMeta": 0,
"maxMeta": 0,
"minSize": 1,
"maxSize": 32,
"chance": 100
}
],
"biomes": [
"desert",
"jungle",
"taiga"
],
"light": true,
"chance": 75,
"minY": 32,
"maxY": 128
}
- items: the list of items
- modID: the mod ID, for vanilla items it is "minecraft"
- name: name of the item (F3+H will help you to find the names)
- minMeta: minimum metadata of the item
- maxMeta: maximum metadata of the item (e.g. for a random wool you set min to 0 and max to 15)
- minSize: minimum size of the stack
- maxSize: maximum size of the stack
- chance: chance that the item appears (0-100)
- enchantments: enchantments of the item
- biomes: valid biomes: "anywhere", "overworld", "nether", "end" and the normal biom names like "savanna" or "forest"
- light: if true, torches will spawn around the chest
- chance: chance that the chest spawns (0-100)
- minY: minimum level
- maxY: maximum level