milo crafting improvements

This commit is contained in:
kepler155c@gmail.com
2019-06-26 12:10:34 -04:00
parent 8a88df815f
commit bbd36ec96a
7 changed files with 207 additions and 43 deletions

View File

@@ -238,6 +238,12 @@ function Milo:learnRecipe()
return false, 'No recipe defined'
end
for _,v in pairs(ingredients) do
if v.count > 1 then
return false, 'Too many items'
end
end
turtle.select(1)
if not turtle.craft() then
return false, 'Failed to craft'