perky / Minechem

Add chemistry to minecraft.
http://www.minecraftforum.net/topic/988773-11-minechem-v15/
23 stars 7 forks source link

recipe code generation #66

Closed vitzli closed 11 years ago

vitzli commented 11 years ago

Hi, I've made a tool for automatic code generation of minechem recipes, it is available on vitzli/minechem-recipebuilder There are examples (source files and generated code) - mostly dusts and cells from gregtech mod - feel free to take them, but give me a note, I'll exclude them from my mod (it is a tiny mod - additional recipes for minechem, no problems at all)

Rushmead commented 11 years ago

Looks Good Ljdp will look into it

perky commented 11 years ago

This is great vitzli! I'd love to be able to parse text like that in java, so i can keep all the recipes in a config. I have experience using regex in java from the last minechem, so I might give this ago, your python code helps.

vitzli commented 11 years ago

I've updated recipebuilder, it is a bit cleaner now, support space inside ore names, total multipliers and probabilities for decomposition. To test that I've forked minechem, removed ore dictionary recipes from it and created addon for it: https://github.com/vitzli/Minechem-AddRecipes , generated ~300 recipes, put them to AddRecipes, built them both and it seems it worked :-) There was bug with block,dust and ingot synthesis - "ingotCopper", "blockCopper" and "dustCopper" trigger .contains("Copper") recipe clause (the same happened for titanium, chrome and something else).

perky commented 11 years ago

Thanks vitzli, taking a look now

vitzli commented 11 years ago

Minechem-AddRecipes has been dropped, it is now MCAddon-Base, I had to rebuild Minechem with now-empty ForgeSubscribe method, all ore dictionary recipes are now inside MCAddon-Base, access to Minechem via API seems to be working. Compiled Minechem-2-pr6.1-vitzli-build.zip is available at https://www.dropbox.com/s/2s7d5epv4jvutcg/Minechem-2-pr6.1-vitzli-build.zip MCAddon-Base is available at https://www.dropbox.com/s/eyb2lvjo3s8063r/MCAddon-Base.zip source code is available at https://github.com/vitzli/ upd: Base supports GregTech, Railcraft, IC2, Forestry and MFFS recipes