Posted 23 July 2015 - 05:53 PM
Hi
Im using MineCraft 1.7.10 with Direwolf20 1.5 Modpack and getting sick with "new" Auto-Workbench when the 9 slots are full with same items but need 3 differents…
So i had the idea to code a Script for Turtles to Autocraft… But now i have a stupid problem:
In slot#5 is: Tin Plate
In slot#6 is: Iron Plate
But turtle.getItemDetail(5) and getItemDetail(6) returns the same name! :angry:/> -> IC2:itemPlates
How can i fix that? :wacko:/>
I want that the turtle gets the respective object from a chest… But dont want to hardcode it
Heres the debug code:
Im using MineCraft 1.7.10 with Direwolf20 1.5 Modpack and getting sick with "new" Auto-Workbench when the 9 slots are full with same items but need 3 differents…
So i had the idea to code a Script for Turtles to Autocraft… But now i have a stupid problem:
In slot#5 is: Tin Plate
In slot#6 is: Iron Plate
But turtle.getItemDetail(5) and getItemDetail(6) returns the same name! :angry:/> -> IC2:itemPlates
How can i fix that? :wacko:/>
I want that the turtle gets the respective object from a chest… But dont want to hardcode it
Heres the debug code:
local InSlots = {1,2,3, 5,6,7, 9,10,11}
for i=1, #InSlots do
local data = turtle.getItemDetail(InSlots[i])
if data then
print(InSlots[i]..": "..data.name)
end
end
Edited on 23 July 2015 - 03:57 PM