Jump to content

Recommended Posts

Ever wondered how to make circles in Minecraft ? Well if you're as lazy as I am, you'll want to have a turtle doing it for you, and spend a week working on the program that does it in twice the time it would have took you. And I have good news, because I already spent my week on this program !

You can get the program on pastebin:
pastebin get 0v97Mcmu cylinder
How it works:
  -Place the turtle (you don't need a fancy turtle, a normal one is enough) one block above the one you want the circle in, like this:
0fNGV61l.png

  -Run the program with appropriate parameters, for example

cylinder 3 1
asks for a cylinder with a radius of 3 (wich gives a diameter of 7) and 1 block tall, and gives this:

Qk4jzrTl.png

The cylinder builds upward, so it builds another circle above the previous one

Examples of circles:
COmAlDsl.png

The redstone lamps represent blocks that are not part of any circles

2386LhGl.png

Example of builds with the program

Don't forget to put blocks in the turtle's inventory ! If you don't have enough fuel, the programs says how much you need, it's an estimation but it's close.



But why stop at building cylinders, when you can dig one ?
Presenting the digging program: pastebin get GAcEdHKC digCylinder
It can dig up, down or in front of the turtle, place it the same way as the cylinder turtle, in front, above or below the center of the cylinder you want to dig out
Enter parameters, for example
digCylinder 3 2 up

It will dig a cylinder of 3 blocks radius and two blocks high above the turtle.

abhwQzQl.png

This pit was dug up by a turtle, its radius is 6 including the walls, they were built by the cylinder program

hoIKnCvl.png

Example of how the digging porgram works with "front" as direction parameter.


I would like feedbacks ! If you have an idea on how I can improve them, or have a request, please go ahead. Thanks for your time !

It could be improved with the new CC 1.63 features, I can't wait for it to be in Tekkit :)

CC addons were updated for the latest version, the only problem now might be MFR's rednet cables integration since CC 1.63 does not support them natively any more, but now includes an API which makes it easy for a mod author to add compatibility

The circle making algorithm is based on this

Link to post
Share on other sites

Technically, we cannot have circles in the digital world. All we have are circle approximations, which increase in quality proportionally to resolution. Nice job with the approximations, though.

 

I once built a round tower, which took quite some time to get right. For manual work, I highly recommend using an Extra Utilities Builder's Wand once you have laid down the ground layer.

Link to post
Share on other sites

Technically, we cannot have circles in the digital world. All we have are circle approximations, which increase in quality proportionally to resolution. Nice job with the approximations, though.

 

I once built a round tower, which took quite some time to get right. For manual work, I highly recommend using an Extra Utilities Builder's Wand once you have laid down the ground layer.

 

Indeed you can't, that's a language abuse, I did not make the algorithm by the way, just adapted it :)

The Builder's wand is a nice thing, you can still use the script to make one circle (that's what I did).

 

 

or you just let mffs build your circles xD

 

Well yeah, but it takes all the fun away, and it's cheaper using turtles. I made the script for fun, I never build with circles

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By GrantTheWizard
      Hello, I am new to LUA but not in programming. I am not understanding why my blockchain is not working.
      It is supposed to go 40 blocks down the row(Hence the for loop for count 40)
      Then when it gets to 40 come back(I need to change the 3 to a 2) but what it does right now is it digs the first wheat then stays there, then executes the turn then stops. Any ideas on how to fix?

    • By ZeZoBeatz
      As you see by the title, I am trying to help a random person on the server I play on with ComputerCraft. He made a program called LockExe and he just sells it on the server. It is very simple program. It just reads for the password and when you input it, the computer outputs a redstone signal for 5 seconds out the left side and then stops, then the computer reboots back up to the startup screen where it asks for the password again. But I just discovered the 'terminate' feature through ComputerCraft and I do not think he knows about it. So I am trying to edit his code so it disables/makes it harder to terminate the program so no-one can just steal his code. But everything that I have tried with the code keeps breaking the program. I keep using the os.pullEventRaw and that can read for the terminate event and can make it do other things besides just terminate but there are issues that I have found with using that. The first and main issue is that the os.pullEventRaw stops the programs entirely, meaning that it no longer allows me to type anything in the computer and it insteads waits for the input of the terminate event. I do the terminate event and whatever I made it do after the input happens, it does. Like if I tell it to type something out after I do ctrl + t, it tells me it. But this means that the password cannot be typed in. The second issue is after I use ctrl + t to do that terminate event, I can just do it again and it will terminate that so it will bypass it anyway. Like I said before, I am trying to help him out with his program just so no-one can steal it. Btw, he did not ask me to do any of this, I am doing it because I wanted to see if I could. But it seems I need help. This is the coding of his program just incase it helps.
    • By Nukious
      Hi, I'd like to know how I can change the terminal width and size via the ComputerCraft config for my Tekkit Classic server.
      I've tried changing terminal_width and terminal_height, but they only seem to work on singleplayer and if I edit them on the server's config, nobody is affected.
      Here is my config...
      #MLProperties: name (type:default) min:max -- information #MLProp : computerBlockID (int:207) #MLProp : diskDriveBlockID (int:208) #MLProp : diskItemID (int:4000) #MLProp : diskDriveGUIID (int:100) #MLProp : enableAPI_http (int:0) #MLProp : modem_range (int:64) #MLProp : modem_rangeDuringStorm (int:1) # #Fri Jul 22 00:59:10 CEST 2016 terminal_width=100 terminal_textColour_g=255 modem_rangeDuringStorm=16 computerBlockID=207 diskItemID=4000 diskDriveBlockID=208 enableAPI_http=1 terminal_textColour_b=0 checksum=440 terminal_textColour_r=0 modem_range=64 diskDriveGUIID=100 terminal_height=36 What do I do? As you can see I've set terminal_height and terminal_width to twice the default, however, only the HTTP API setting seems to actually change something in this config file.
      I'm quite stumped here, my singleplayer configuration has no effect on servers too!
      If possible, I'd like to make the default text colour green as well, to make the ComputerCraft terminals on my server look like the RedPower computers.
    • By 0x0
      So I recently started playing Tekkit 1.2.9g and was wondering if I should expect any future updates any time soon?
      It looks like the last update was over a year ago, and I couldn't find any official announcements or posts from the developers if they have stopped updating it.
      I'm asking primarily to see if the computer craft mod will be updated in a future patch.
    • By Tassyr
      So last time I checked out this pack it was just over a year ago. Before that I'd played for several months, then had to take a break. Originally, there was a bundled redstone wire and computercraft combo that worked. It worked great, in fact, and I designed a large amount of stuff around it. 
      When I resumed about a year ago, it was no longer working. I was told to wait a few months for an update that'd fix it and similar on this forum when I asked.
      Well guys, it's been a -year.- I realised I hadn't played in forever so I decided to give it a shot, and lo and behold! ... still no compatibility between computercraft and bundled redstone.
      Is there any way to get that sort of functionality back? Or has it just been flat out abandoned here? 
×
×
  • Create New...