Farming for Blockheads

Farming for Blockheads

76M Downloads

Empty market place upon adding custom entries

CosmicRune opened this issue ยท 10 comments

commented

Market becomes empty after I added custom entries in Market.json config file. But without custom entries, everything loads fine. I'm using 1.12.2 version.

Screenshot_1

commented

IIRC there is a link to an example file on the readme.

https://gist.github.com/blay09/93a48d092d6dc570a64c81e1912dc4d0

commented

Errors loading the registry are printed in both chat and logs.

commented

IIRC there is a link to an example file on the readme.

https://gist.github.com/blay09/93a48d092d6dc570a64c81e1912dc4d0

I already tried that and it didn't work, But I thought that link example is for datapack, and not Market.json file in the config folder?

commented

Errors loading the registry are printed in both chat and logs.

Nothing showed up in the chat but here's my latest log.

latest.log

commented

[22:46:33] [Client thread/ERROR]: Failed to load Market registry: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 52 column 2 path $.custom entries.minecraft:stone

commented

How do I fix that error?

commented

Post your full market config, the screenshot is outdated since there's no mentioning of minecraft:stone in there, yet the error is complaining about it.

commented

There's an extra comma at the end that shouldn't be there.

commented

{
"defaults": {
"__comment": "You can disable defaults by setting these to false. Do NOT try to add additional entries here. You can add additional entries in the custom section.",
"Vanilla Seeds": true,
"Vanilla Flowers": false,
"Vanilla Mushrooms": false,
"Vanilla Saplings": true,
"Bonemeal": true,
"Animal Eggs": false,
"Pams Harvestcraft Saplings": true,
"BiomesOPlenty Saplings": true,
"Forestry Saplings": false,
"BiomesOPlenty Sacred Oak Sapling": false,
"Pams Harvestcraft Seeds": true
},
"defaults payment": {
"__comment": "You can define custom payment items for the default entries here.",
"Vanilla Seeds": "1minecraft:emerald:0",
"Vanilla Flowers": "1
minecraft:emerald:0",
"Vanilla Mushrooms": "1minecraft:emerald:0",
"Vanilla Saplings": "1
minecraft:emerald:0",
"Bonemeal": "1minecraft:emerald:0",
"Animal Eggs": "1
minecraft:emerald:0",
"Pams Harvestcraft Saplings": "1minecraft:emerald:0",
"BiomesOPlenty Saplings": "1
minecraft:emerald:0",
"Forestry Saplings": "2minecraft:emerald:0",
"BiomesOPlenty Sacred Oak Sapling": "1
minecraft:emerald:8",
"Pams Harvestcraft Seeds": "1*minecraft:emerald:0"
},
"defaults amount": {
"__comment": "You can define custom amounts for the default entries here.",
"Vanilla Seeds": 1,
"Vanilla Flowers": 1,
"Vanilla Mushrooms": 1,
"Vanilla Saplings": 1,
"Bonemeal": 1,
"Animal Eggs": 1,
"Pams Harvestcraft Saplings": 1,
"BiomesOPlenty Saplings": 1,
"Forestry Saplings": 1,
"BiomesOPlenty Sacred Oak Sapling": 1,
"Pams Harvestcraft Seeds": 1
},
"defaults blacklist": [
"examplemod:example_item"
],

"custom entries": {
"__comment": "You can define additional items to be sold by the Market here. Defaults can be overridden. Prefix with ! to blacklist instead.",
"examplemod:example_item": "2minecraft:emerald",
"minecraft:stone": "2
minecraft:emerald",
}
}

commented

Oh my god, thank you so much <3 It works now :)