changed craft guide to show amount of output items
This commit is contained in:
parent
9d77913786
commit
66046aea57
|
@ -36,11 +36,11 @@ function craftingguide.get_formspec(name)
|
||||||
form = form .. "label[4.1,1.73;"..method.."]"
|
form = form .. "label[4.1,1.73;"..method.."]"
|
||||||
end
|
end
|
||||||
|
|
||||||
form = form .. default.ui.fake_itemstack(6.25, 1.5, ItemStack(user.item), "guide_craftresult")
|
|
||||||
|
|
||||||
local recipes = craftingguide.items[user.item]
|
local recipes = craftingguide.items[user.item]
|
||||||
local recipe = recipes[user.itemno]
|
local recipe = recipes[user.itemno]
|
||||||
|
|
||||||
|
form = form .. default.ui.fake_itemstack(6.25, 1.5, ItemStack(recipe.output), "guide_craftresult")
|
||||||
|
|
||||||
-- print(dump(recipe))
|
-- print(dump(recipe))
|
||||||
for slot_index, itemname in pairs(recipe.items) do
|
for slot_index, itemname in pairs(recipe.items) do
|
||||||
local x = slot_index - 1
|
local x = slot_index - 1
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 319 B |
Loading…
Reference in New Issue