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

[Mc 1.6.2, Cc 1.56] Turtle Chests

Started by gudenau, 27 June 2013 - 06:39 PM
gudenau #1
Posted 27 June 2013 - 08:39 PM
First off:


(Arg rg and your mod replacing my wood chest!)

Now for the mod:

Turtle chests, a peripheral for turtles, it lets your turtles have more that 16 slots of inventory. The chests provide some 'pages', witch let you change your turtles' inventory around with code. To get the amount of pages in code you call getPages. To get the current page call getPage and to switch pages call switchPage with an integer that represents the page id. If the turtle breaks, you will lose everything in the pages, sorry!

Here are the sizes:
wood - 1
copper - 2
iron - 3
silver - 4
gold - 5
diamond - 6
crystal - 6
obsidian - 6

Api:

chest = peripheral.wrap('right')
chest.getPages() -- returns the amount of pages avalable
chest.getPage() -- returns the current page
chest.setPage() -- Switches the current page

In the config file you can change the peripheral ids if you ever need to.

Changelog:
1.1:
- Updated to mc 1.6.2!
- No crashing when IronChests is not installed (Hopefully)

1.0:
+ First release!
+ All chest types from IronChests

Downloads:
1.1
Main
Mirror

1.0
Main
Mirror
Mikeemoo #2
Posted 28 June 2013 - 05:55 AM
Nice!

Isn't this pretty much exactly the Misc Peripherals turtle do though?

(Not that I care! just wondering what your USP is? I guess because of the range of different sizes?)
gudenau #3
Posted 28 June 2013 - 10:18 AM
Nice!

Isn't this pretty much exactly the Misc Peripherals turtle do though?

(Not that I care! just wondering what your USP is? I guess because of the range of different sizes?)

I don't know how his chests work, I had this idea long ago and just now did it.
MCGamer20000 #4
Posted 05 July 2013 - 03:38 AM
Nice! But…
If the turtle breaks, you will lose everything in the pages, sorry!
Could you PLEASE fix that?
gudenau #5
Posted 05 July 2013 - 06:12 PM
I guess it could be a config option.
gudenau #6
Posted 04 August 2013 - 05:46 PM
Update:
- Updated to mc 1.6.2!
- No crashing when IronChests is not installed (Hopefully)