Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = {}
- list["r1"] = { recipe = "i11x2", group = "basic", name = "sticks", yields = 4 }
- list["r2"] = { recipe = "r1", group = "gear", name = "wooden", yields = 1 }
- list["r3"] = { recipe = "r2 i1x4", group = "gear", name = "stone", yields = 1 }
- list["r4"] = { recipe = "r3 i23x4", group = "gear", name = "tin", yields = 1 }
- list["r5"] = { recipe = "r3 i3x4", group = "gear", name = "copper", yields = 1 }
- list["r15"] = { recipe = "r3 i13x4", group = "gear", name = "iron", yields = 1 }
- list["r11"] = { recipe = "i11x4", group = "basic", name = "crafting table", yields = 1 }
- list["r12"] = { recipe = "i12x2 i14x1", group = "other", name = "redstone reception coil", yields = 1 }
- list["r13"] = { recipe = "r4 i21x4 i13x4", group = "machine", name = "frame", yields = 1 }
- list["r14"] = { recipe = "r12 r13 r11 r5 r5 i23x2", group = "machine", name = "fabricator", yields = 1 }
- function createTree()
- local recipes = {}
- for key, value in pairs(list) do
- if(recipes[value.group] == nil) then
- recipes[value.group] = {}
- end
- recipes[value.group][value.name] = value
- recipes[value.group][value.name].iden = key
- end
- return recipes
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement