This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Chain's profile picture

Possible to get the blockID Inside Inventory?

Started by Chain, 01 September 2012 - 09:40 AM
Chain #1
Posted 01 September 2012 - 11:40 AM
Hi, ive written a Building Program for the Mining Turtle and like to know if its possible to get the BlockID's from the Blocks inside the Turtles Inventory?

My Prog is based on layout files wich you can create with my editor. And i like the turtle to place the right blocks as in the Layout provided and not just every block he got in his Inventory.

the format of those files are:

<BlockID>,<BlockID>,<BlockID>,<BlockID>
<BlockID>,<BlockID>,<BlockID>,<BlockID>
<BlockID>,<BlockID>,<BlockID>,<BlockID>

As you can see i would need a function to check the BlockID of the Blocks in the Turtles inventory, so I can let him place the correct blocks.

Is there a Mod, Addon, API or anything wich can achive this?
Sadly I cant write Minecraft mods my self or extend the turtles capabilitys. Because I somehow dont get the Decompileing and Recompileing to work. And also I have no experience at all in Modding Minecraft.

Thanks Chain
Hackingroelz #2
Posted 01 September 2012 - 01:06 PM
You can use Aperture Science Turtle Upgrades for that: http://www.computercraft.info/forums2/index.php?/topic/2942-cc-14-mc-125-aperture-science-turtle-upgrades-now-with-database-turtles/
Chain #3
Posted 01 September 2012 - 01:18 PM
You can use Aperture Science Turtle Upgrades for that: http://www.computerc...tabase-turtles/

Lets it detect the BlockID of the blocks inside the mining turtle inventory? When not then I cant use it.

Or is it possible to add this functionality to the mining turtles via Upgrade or mod?

I'm looking for a sort of "turtle.compare()" function but it should only compare the <Block in Inventory Slot> VS. <Provided BlockID in Layout>
Hackingroelz #4
Posted 01 September 2012 - 02:00 PM
You can use Aperture Science Turtle Upgrades for that: http://www.computerc...tabase-turtles/

Lets it detect the BlockID of the blocks inside the mining turtle inventory? When not then I cant use it.

Or is it possible to add this functionality to the mining turtles via Upgrade or mod?

I'm looking for a sort of "turtle.compare()" function but it should only compare the <Block in Inventory Slot> VS. <Provided BlockID in Layout>

You can use database turtles.
Chain #5
Posted 01 September 2012 - 02:11 PM
You can use Aperture Science Turtle Upgrades for that: http://www.computerc...tabase-turtles/

Lets it detect the BlockID of the blocks inside the mining turtle inventory? When not then I cant use it.

Or is it possible to add this functionality to the mining turtles via Upgrade or mod?

I'm looking for a sort of "turtle.compare()" function but it should only compare the <Block in Inventory Slot> VS. <Provided BlockID in Layout>

You can use database turtles.

nvm I dont get your Upgrade to work Properly.