With ComputerCraft, test and record every possible crafting recipes with UU-Matter.
UU-Matter is an item added by IndustrialCraft2 which is used to craft many different resources. It can be combined at a Crafting Table in various arrangements to make new materials.
Setup a crafty turtle between 2 chest. Feed up chest with some stacks of UU-Matter (more or less 5 stacks). Down chest is output.
pastebin get 2E8PRaYp UUMatter.lua
UUMatter
Every successful craft will be saved in a settings file.
UU.lua
{
UURecipes = {
{
i = 1,
name = "minecraft:dirt",
cost = 1,
pattern = {
0,
0,
0,
0,
0,
0,
0,
0,
1,
},
count = 16,
damage = 0,
},
- i: iterator (1 = 000000001)
- name, damage: item datas resulted bay turtle.getItemDetails()
- count: nb of items resulted
- cost: nb of UU-Matter items used
- pattern: (table) Binary representation of the recipe, correspond with slots {1, 2, 3, 5, 6, 7, 9, 10, 11}
Integer to binary function: https://stackoverflow.com/a/26702880