Sunday, April 1, 2012

Minecraft Tekkit 2.1.1 - ComputerCraft Turtle using Redpower2 Deployer

Minecraft Tekkit 2.1.1 - ComputerCraft Turtle using Redpower2 Deployer

Until Tekkit includes ComputerCraft 1.31 the programmable Turtle lacks some features that would have probably made this a bit easier, but anyway, I wanted to be able to use items that the Turtle can't use (for example buckets of water and to place pipes) but the deployer can. I noticed that the Turtle places redpower machines so that they always face up, but it can use them so I tried to find some compact algorithm to have it construct a "machine" for deploying each item, then dismantling the machine and proceeding to next spot to repeat. This has some uncertainty still but it does work in principle. The primary problem is that just once the turtle screwed up by throwing the items over the transposer, so it might be wise to have an extra "back wall" block placed there to make sure it goes in. Before starting the program you should have the to-be-deployed items in slot 1, a deployer in slot 2, a filter in slot 3 and a transposer in slot 4. The algorithm roughly: go up, place ! deployer down, go up, place transposer down, go back, throw deployable item into transposer (gets sucked into deployer), go down, pickup transposer, go down, activate deployer, go down, forward, down, place filter up, activate filter (suck extra items from deployer back to turtle), pick up filter, go up, pickup deployer, proceed to next. The program knows what items it's using because it assumes a slot ordering and selects the proper slot before placing or picking up the machines and because the filter ...





0 comments: