r/ComputerCraft • • Sep 22 '22

Can someone help me?

I want a command that mines smart minerals like can choose diamonds iron etc. I f anyone can help me i gratful. Thanks!

1 Upvotes

9 comments sorted by

3

u/Tweaked_Turtle Sep 22 '22

You're going to have to be a bit more clear. If a turtle has ore in front of it and you use turtle.dig(), it will mine the ore. If you want a way to make a strip mine or a quarry, there are in-built programs that can do this. If you want to specifically choose minerals that it will go and search for, that gets a lot more complicated (is it strip mining? how does it deal with chunk loading? does it mine the entire vein when it finds one? how does it get fuel? what happens when it's inventory is full? etc.)

If you have specific questions, we can easily answer, but we can't really help you create an entire complex program. The best we can do is give you an idea of what you might need in general.

1

u/Mr_MPPG Sep 22 '22

Hi! I'm new to this mod. Do turtles/computers work in unloaded chunks (far from the player) or do they keep the chunks loaded around them? If I want to sent a turtles 1000blocks away, does it stop when it reaches unloaded chunks? What about chunks that have never been generated?

2

u/thatNewton17 Sep 22 '22

Unless you have another mod to allow turtles to load chunks themselves, turtles shut down when the chunk they are in becomes unloaded

1

u/Mr_MPPG Sep 22 '22

Oh no! Is there a way to bypass this? (Or a mod that loads chunks for turtles?)

1

u/thatNewton17 Sep 22 '22

No idea! But probably. I suggest Google

1

u/unfuz3 Sep 22 '22

If you're playing 1.18, there's the chunky turtle, from AdvancedPeripherals. I think plethora might add smth in 1.12, but not sure

1

u/Mr_MPPG Sep 22 '22

Thank you so much!!!!

2

u/Tweaked_Turtle Sep 22 '22

Turtles do not load chunks by themselves. If a chunk becomes unloaded, the turtle stops. I'm not entirely sure what happens when a turtle tries to enter unloaded chunk (idk if they go in and stop, or stop before going in), so you're gonna have to do your own testing to find it. In my experience, the exact behavior of turtles loading and unloading can vary between single player and multiplayer

1

u/Mr_MPPG Sep 22 '22

Thanks for the awnser! I'll guess i have to make a chunk loader.