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

looking for dragon egg collector

Started by steveninnn, 10 January 2018 - 08:18 PM
steveninnn #1
Posted 10 January 2018 - 09:18 PM
to put simply I know nothing about coding at all and if at all possible I would love for someone to make this for me all I want is to be able to place some sorta turtle down about 8ish blocks from where the dragon egg spawns in my mining world on the server I play on and have it go fetch the egg doesnt need to collect it just break it and then go back to his spot and wait for the next one I dont know if that possible or hard but its what im looking for ive tried the basic stuff already like turtle move froward turtle dig ect but the issue is I need it to goto to the egg a certain time that changes every cycle as well the egg it self-spawns in a different location everytime only by a block or 2 but still different so if anyone knows of something like that exsits or is willing to help me make it that would be awesome thanks.
Lupus590 #2
Posted 11 January 2018 - 11:00 AM
Two options, have the turtle wonder around the egg spawn area until it finds the egg, or have a sensor which can detect the egg and tells the turtle where the egg is.

Given that you know how to move and dig with a turtle, you should be able to figure out how to do one of the above.

Program requests don't usually happen, however if you start writing the program yourself, lots of people will be happy to help you.
steveninnn #3
Posted 11 January 2018 - 12:53 PM
ok I'm playing on infinity evolved and ill post the code that I and a friend managed so far it's definitely not a great solution but it works so I would be happy to take suggestions on 1 is there a better way to tell the turtle there's an egg there then a Redstone signal ill post a pic for context.
https://gyazo.com/eb31061379305503af9a9df6437870d4



and second, i could use some help getting him to fuel up while sitting on the chest waiting for the next egg as he only seems to take fuel when there is a redstone signal I would prefer he does that in his downtime thanks in advanced.
https://pastebin.com/hey5RXv3
Lupus590 #4
Posted 12 January 2018 - 07:56 PM
ok I'm playing on infinity evolved and ill post the code that I and a friend managed so far it's definitely not a great solution but it works so I would be happy to take suggestions on 1 is there a better way to tell the turtle there's an egg there then a Redstone signal ill post a pic for context.
https://gyazo.com/eb...f9a9df6437870d4

Does your mod pack have a sensor whch can read blocks from a distance? I woud use that to find where the egg is.

Can you explain what some of the stuff does in you image, it looks very complex for egg collecting, and might help me figure out how to help better.

and second, i could use some help getting him to fuel up while sitting on the chest waiting for the next egg as he only seems to take fuel when there is a redstone signal I would prefer he does that in his downtime thanks in advanced.
https://pastebin.com/hey5RXv3

Can you have that AE system put charcol (or something) in the chest and the turtles refuel from that?
Edited on 12 January 2018 - 06:56 PM
steveninnn #5
Posted 12 January 2018 - 08:17 PM
ok to start with first question the turtles sit on a chest which has fuel and they have me level emitters above them the emitters turn on when the dragon heart enters the system that basically tells them its safe to go out and collect the egg becuase if they go before the heart drops they will get erased by the egg spawn as well they drop the egg into said chest when they collect it and it filters down into the ender chest which filters into another ender chest to send it back top side to respawn the dragon will include a pic of the top side

as for a block that detects the egg, I wouldn't even begin to know what mods might be able to do that as I've never used a block in general that does that

and as for the fuel I can auto fill the chests all i want the issue is they only take fuel when the me level emitters are on so I was wondering with the code that's there and keeping the whole don't collect the egg till you get a Redstone signal thing if there's a way to add a line of code or something that tells them to fuel up regardless of the Redstone signal without breaking the code so yea, if that's confusing sorry ill, try better next time

the final thing I want to add is there a way to load the program and start it after a server reboot cuz every 3 hours the server reboots and I have to re-download the code and start it up
steveninnn #6
Posted 12 January 2018 - 08:29 PM
https://gyazo.com/f05c030f7a5ea9878ccc66e4b19a3c29

this is where the dragon is killed and the egg is sent back uptop into that enderchest then into the brown crate which is called open crate to auto drop the egg infront of the phantasmal bee which spawns the dragon and the corporeal attractors keep it in place while the melee melee turtles kill it then you wait like 15 secs for the egg to spawn then the heart is collected while floating there and the turtles then get a redstone signal to go fetch the egg and the process repeats