malistaticy, on 23 March 2016 - 04:31 PM, said:
Scratch that, just realized there are a couple alternatives haha
There have been 11 items by grand_mind1 (Search limited from 10-February 22)
Posted by
grand_mind1
on 27 March 2016 - 01:03 AM
in
Peripherals and Turtle Upgrades
malistaticy, on 23 March 2016 - 04:31 PM, said:
Posted by
grand_mind1
on 09 March 2016 - 04:10 AM
in
Peripherals and Turtle Upgrades
Posted by
grand_mind1
on 07 March 2016 - 03:58 AM
in
Peripherals and Turtle Upgrades
Posted by
grand_mind1
on 06 March 2016 - 09:25 PM
in
Peripherals and Turtle Upgrades
Posted by
grand_mind1
on 22 January 2016 - 04:24 AM
in
Peripherals and Turtle Upgrades
Posted by
grand_mind1
on 10 January 2016 - 01:30 AM
in
Peripherals and Turtle Upgrades
Posted by
grand_mind1
on 02 August 2015 - 04:25 AM
in
Ask a Pro
for i, turbine in pairs(turbines) do Total = Total + T[i].getEnergyProducedLastTick() endTo get rid of the decimal, you can round the total using either math.floor() or math.ceil().
Posted by
grand_mind1
on 27 July 2015 - 11:01 PM
in
Peripherals and Turtle Upgrades

p.listAll()[265]Is because this is going to get the 265th item in the ME system, which you don't have. It doesn't work by item ID. Instead you need to loop through every item in the ME system and find the one you want. In your case, this is iron. So, to loop through a table, we do
for k,v in pairs(p.listAll()) do --stuff endSo now, 'v' is every individual item table in the overall items table. To get information out of individual item tables, we access each piece of information as a table index like I listed above. So v[1] would be the unlocalized name, v[2] the metadata, etc. From here, it's fairly simple to get the amount of iron like you wanted. You could something like this:
for k,v in pairs(p.listAll()) do
name = v[1]
amount = v[3]
if name == "minecraft:iron_ingot" then
print("You have "..amount.." iron ingots.")
end
end
Posted by
grand_mind1
on 27 July 2015 - 07:26 AM
in
Peripherals and Turtle Upgrades
gearpenguin, on 25 July 2015 - 07:05 PM, said:
Tolarn, on 27 July 2015 - 06:33 AM, said:
Posted by
grand_mind1
on 21 July 2015 - 04:00 AM
in
Peripherals and Turtle Upgrades
gearpenguin, on 18 July 2015 - 09:24 PM, said:
Daniel_Edits, on 20 July 2015 - 12:51 PM, said:
Posted by
grand_mind1
on 18 April 2015 - 05:00 AM
in
Ask a Pro
