Jump to content




Read Metadata from block next to computer or turtle


  • You cannot reply to this topic
4 replies to this topic

#1 ag0x

  • New Members
  • 1 posts

Posted 11 February 2014 - 03:01 AM

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?

#2 tesla1889

  • Members
  • 351 posts
  • LocationSt. Petersburg

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.

#3 CometWolf

  • Members
  • 1,283 posts

Posted 11 February 2014 - 12:18 PM

Not a thaumcraft user myself, but openPeripherals might be able to read this info.

#4 FileStriker

  • Members
  • 3 posts

Posted 11 February 2014 - 12:22 PM

I don't know, if it works but:

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 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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:

while not turtle.compare() do end






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users