The Meaning of Life, the Universe, and Everything.
Join Date:
11/4/2013
Posts:
51
Minecraft:
anti344
Member Details
Overview
JsonRecipes - my version of well known Minecraft mod called CustomRecipes. It is for 1.7.2/1.7.10 and it uses JSON format to add recipes in the game.
Advantages of my version:
JSON Format - easy to read and use, used everywhere else in Minecraft.
Full NBT support. Throw any NBT tags on your items.
OreDictionary support. Use ANY copper for your recipe.
Aliases system. You can easily link back to some item(like renamed enchanted and damaged golden sword) by short and simple string. Same for fluids and recipe types(BuildCraft|Core-refinery => refinery, etc)
Nice and easy API for modders to use.
Coming Soon:
Some of the big mods support(Like IC2, BuildCraft, etc).
Recipes loaded from resource packs.
Some kind of nice JSON editor, probably in-game one.
Disadvantages:
My version is still pretty raw, bugs can be found.
Not everybody can properly understand how to use JSON.
Licence/Modpacks
My mod is opensource and it is released under GNU Lesser General Public Licence v3, which means you can freely use parts of its code or modify/compile/publish your own version(Only if it also will be published under LGPL or GPL).
Also this means you can freely add my mod to any modpacks, just post here something like 'Added to modpack X' if you want me to know about it.
GitHub
You can found sources of Json Recipes on my GitHub.
Also i used GitHub as a wiki host, so you can learn, how to use my mod on it here. Wiki is not done yet, but the main part(items, aliases and vanilla recipes) is covered.
And if you find any bug, or want me to add a feature, you can use GitHub issue tracker to do it.
Installation
Simple as everything now.
Install forge, drop JsonRecipes-x.x.x-universal.jar in mods/ folder, play!
Recipes are .minecraft/recipes/*.json, more on the wiki.
So I have been trying to understand how this mod works for approximately 4 hours, probably more along the lines of 5, and I still haven't been able to accomplish anything. I have read and reread all the pages of the wiki too many times. Now I know nothing about JSON and coding so I feel this may be the reason why I'm having issues. I took the entire json objects posted on the wiki and straight over copy and pasted them into text files which I changed the extensions to json so the mod would see those as recipes. They still didn't work.
This is the recipe I'm trying to add. This is an exact copy of the entire text file. Can anyone explain what is wrong, and how the issue can be fixed?
This is the recipe I'm trying to add. This is an exact copy of the entire text file. Can anyone explain what is wrong, and how the issue can be fixed?
Don't feel bad. JSON was intended for machine to machine, not for humans. It's unforgiving and doesn't support basic features for clarity, such as comments. I've been thinking of creating a JSON building spreadsheet to make this easier.
I spotted two issues. You were missing a comma after "item" in your "A" row and you need to enclose all recipes in a set of brackets. I tried to add that to the wiki, but it's not open for public edits. I checked the rest of your JSON and it is valid, so the recipe should work.
So I tried it and... It still says some of the recipes weren't loaded right. And when I go to forge it still only shows that I can decraft a diamond block into 9 diamonds. No others. I made the changes you suggested. Is there other files or more objects i need aside from this?
Okay, I knocked up a spreadsheet to build JSON recipes (yay long conference calls). Here's a temporary link to the file. If it works out, I'll find a more permanent home for it (unless anti_344 has a more elegant solution in mind).
Disclaimer: Being a user of this mod (including the previous version) is the first time I have ever used JSON. Everything I know about it I have learned sporadically over the last couple weeks. I am also not a programmer. If you see something on the interwebs that disagrees with me on JSON, the interwebs is probably the better source.
The Meaning of Life, the Universe, and Everything.
Join Date:
11/4/2013
Posts:
51
Minecraft:
anti344
Member Details
Please always enable `Print errors in chat` in mod option before asking for a help. Also, .json IS human-readable, machine-to-machine is ones and zeros(NOT human readable). Fixed wiki, read 'File format' page again.
Rollback Post to RevisionRollBack
If you want updates and sneak peaks of my mods, you can follow me of @Twitter.
Overview
JsonRecipes - my version of well known Minecraft mod called CustomRecipes. It is for 1.7.2/1.7.10 and it uses JSON format to add recipes in the game.
Advantages of my version:
Licence/Modpacks
My mod is opensource and it is released under GNU Lesser General Public Licence v3, which means you can freely use parts of its code or modify/compile/publish your own version(Only if it also will be published under LGPL or GPL).Also this means you can freely add my mod to any modpacks, just post here something like 'Added to modpack X' if you want me to know about it.
GitHub
You can found sources of Json Recipes on my GitHub.Also i used GitHub as a wiki host, so you can learn, how to use my mod on it here. Wiki is not done yet, but the main part(items, aliases and vanilla recipes) is covered.
And if you find any bug, or want me to add a feature, you can use GitHub issue tracker to do it.
Installation
Simple as everything now.Install forge, drop JsonRecipes-x.x.x-universal.jar in mods/ folder, play!
Recipes are .minecraft/recipes/*.json, more on the wiki.
Downloads
It works both for 1.7.2 and 1.7.10Changelog
I've been using and enjoying your mod, but I'm having a problem getting it to run on a server. Before I dig too far into it, is it server compatible?
I'm working on an open-source mod called Craft++. Check it out!
2.New CustomRecipes with JSON - same as here, this is the latest version, just renamed(because of licance problems).
3.I dont know other mods that capable of adding recipes with OreDictionary and NBT(and such easy API).
*snip*
This is the recipe I'm trying to add. This is an exact copy of the entire text file. Can anyone explain what is wrong, and how the issue can be fixed?
{
"type":"shaped",
"shape":["ABA","BCB","ABA"],
"input":{
"A":{"item:"minecraft:lapis_lazuli"},
"B":{"item":"minecraft:glowstone_dust"},
"C":{"item":"minecraft:nether_quartz"}
},
"output":"minecraft:diamond"
}
Don't feel bad. JSON was intended for machine to machine, not for humans. It's unforgiving and doesn't support basic features for clarity, such as comments. I've been thinking of creating a JSON building spreadsheet to make this easier.
I spotted two issues. You were missing a comma after "item" in your "A" row and you need to enclose all recipes in a set of brackets. I tried to add that to the wiki, but it's not open for public edits. I checked the rest of your JSON and it is valid, so the recipe should work.
{
"type":"shaped",
"shape":["ABA","BCB","ABA"],
"input":{
"A":{"item":"minecraft:lapis_lazuli"},
"B":{"item":"minecraft:glowstone_dust"},
"C":{"item":"minecraft:nether_quartz"}
},
"output":"minecraft:diamond"
}
]
http://1drv.ms/1q8TgK8
Disclaimer: Being a user of this mod (including the previous version) is the first time I have ever used JSON. Everything I know about it I have learned sporadically over the last couple weeks. I am also not a programmer. If you see something on the interwebs that disagrees with me on JSON, the interwebs is probably the better source.
[
{
"type":"shaped",
"shape":["XYX","YZY","XYX"],
"input":{
"X":{"item":"minecraft:lapis_lazuli"},
"Y":{"item":"minecraft:glowstone_dust"},
"Z":{"item":"minecraft:nether_quartz"}
},
"output":"minecraft:diamond"
}
]
Tada
minecraft:nether_quartz... doesn't exist
minecraft:quartz does...
epic fail
Tada