Alright, so i searched the net for any solution regarding this, but cannot find any so here it goes..
What im trying to do is to put down a jar of essentia and a computer/turtle behind it.
The computer needs to detect when its below completly full. When looking at the item, it is storing this
information in the NBT data.
So to the core question:
Is there any way to read the meta data (not set it) from an adjacent block or item with code?
Read Metadata from block next to computer or turtle
Started by ag0x, Feb 11 2014 03:01 AM
4 replies to this topic
#1
Posted 11 February 2014 - 03:01 AM
#2
Posted 11 February 2014 - 10:23 AM
you're going to have to do this in Java (i.e. use a mod or write your own).
there currently is no way to read NBT data from computercraft.
there currently is no way to read NBT data from computercraft.
#3
Posted 11 February 2014 - 12:18 PM
Not a thaumcraft user myself, but openPeripherals might be able to read this info.
#4
Posted 11 February 2014 - 12:22 PM
I don't know, if it works but:
I hope, I could help you
turtle.select(1)
i = turtle.compare() -- check if the item have the same id then the block (jar)
while i == false do -- repeat it
i = turtle.compare()
end
-- your program
I hope, I could help you
#5
Posted 11 February 2014 - 12:31 PM
Nope, that would just compare the same block over and over again.
It's literally the same as this:
It's literally the same as this:
while not turtle.compare() do end
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











