Hey, everyone! I just got into coding with ComputerCraft and I need some help with printing. It's very basic, but I can't seem to work it out. Here is part of the coding that I'm not getting right
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spawner=peripheral.wrap("top")
x = spawner.getTankInfo()
print(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So basically I'm trying to get an Advanced Computer to check what's inside the Auto-Spawner from MFR, and display it. But every time I run it, I get "table: 4110bb08". Am i going to have to do something with tables? If anyone knows what the problem is, please let me know
btw, this is what I get with "spawner.getTankInfo()"
{
{
capacity = 4000,
contents = {
rawName = "Essence",
amount = 2000,
name = "mobessence",
id = 152,
},
},
}
That's what I'm trying to print ^^^
Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spawner=peripheral.wrap("top")
x = spawner.getTankInfo()
print(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So basically I'm trying to get an Advanced Computer to check what's inside the Auto-Spawner from MFR, and display it. But every time I run it, I get "table: 4110bb08". Am i going to have to do something with tables? If anyone knows what the problem is, please let me know
btw, this is what I get with "spawner.getTankInfo()"
{
{
capacity = 4000,
contents = {
rawName = "Essence",
amount = 2000,
name = "mobessence",
id = 152,
},
},
}
That's what I'm trying to print ^^^
Thanks!