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

[Computercraft 1.6.4+] Turtle 3D Map

Started by TurtleHunter, 30 September 2014 - 12:54 AM
TurtleHunter #1
Posted 30 September 2014 - 02:54 AM
Using the new Computercraft 1.6.4 feature, I made a program that uses a turtle to create a 3d map. Right now, it only adds to the map the highest block in that coordinate, but it will eventually map all the blocks till bedrock.

Installation:
pastebin get uRBbkJhx 3dmap
http://pastebin.com/uRBbkJhx

How to use:
For creating a map, use a turtle with a wireless modem(set useRednet to false in the first line if you dont want to use rednet) and run the program without arguments
For reading a map (very basic for now) run "3dmap read filename"
For using it as an api, run it with the argument "api"
If you want to keep track of the turtle operation, run the program in a separate computer with a monitor attached with this command "3dmap monitor side_of_the_monitor side_of_the_wireless_modem"

Screenshots


(the first 3 values are just debug)
TurtleHunter #2
Posted 30 September 2014 - 04:23 PM
I just fixed a bug with the monitor part
InputUsername #3
Posted 01 October 2014 - 04:59 PM
Looks good. One question though, what's the use for these 3d maps? Really neat that it's able to construct a "3d" image of the world, but how can that be used?
KingofGamesYami #4
Posted 01 October 2014 - 05:02 PM
Looks good. One question though, what's the use for these 3d maps? Really neat that it's able to construct a "3d" image of the world, but how can that be used?

Well, object avoidance comes to mind. Also, you could use the data to scan an area and reconstruct it elsewhere.
TurtleHunter #5
Posted 01 October 2014 - 07:40 PM
Looks good. One question though, what's the use for these 3d maps? Really neat that it's able to construct a "3d" image of the world, but how can that be used?

Well, object avoidance comes to mind. Also, you could use the data to scan an area and reconstruct it elsewhere.
Or a interactive map
pontusedberg #6
Posted 12 November 2014 - 02:59 PM
This may be an old post, but could someone fix the program where the turtles have thier modems on the Left side now?
TurtleHunter #7
Posted 12 November 2014 - 10:22 PM
This may be an old post, but could someone fix the program where the turtles have thier modems on the Left side now?

Fixed, I added a varible in the top that sets the rednet side, default is left

And is not that old…
Edited on 12 November 2014 - 09:22 PM