Space Engineers

Space Engineers

Not enough ratings
Warren's Auto Piston Miner (With Raycasting)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
392.836 KB
9 Mar, 2021 @ 1:04pm
3 Apr, 2021 @ 6:44am
5 Change Notes ( view )

Subscribe to download
Warren's Auto Piston Miner (With Raycasting)

In 1 collection by undefined
SE Survival Mods
56 items
Description
This script will automate piston mining for you.

** Support LCD Displays to show mining progress **

Simply place down a programmable block (with the display facing away from the desired forward direction!).

Then just place a few pistons going up, followed by a conveyor junction or some sort of conveyor part, followed by a few pistons going forwards, followed by another conveyor junction or whatever, followed by a few down pistons, an advanced rotor, and as many drills as you'd like under this. You can optionally add a few cameras facing downwards(level with your drills), and enable raycasting in the config if you want the drill to move down at a velocity proportional to the distance to the ground.

Add all of the pistons, the advanced rotor, cameras, and all the drills to a single group. Call it whatever you want.

Open the programmable block (press k), then hit edit, then select my script.

You can change the configuration at the top of the script.

Set the minerGroupName in the config to whatever you called that group you made for your auto piston miner.

You can also change the drillHeadRadius to the number of drills you have going outward from the middle drill (don't count the middle drill) in any direction.

I do recommend that you set the minVerticalAltitude to 0.0f when starting out. If the drillhead is going too high up and wasting time in the air before reaching the ground, you can increase this value slightly.

Then, you can run the script with the following arguments:
start - Starts the mining process
stop - Pauses the mining process
reset - Resets the drill to it's initial position

These can be added to your hotbar or to buttons etc.

This script is used in my automatic mining rover:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2419908928
4 Comments
DEADPOO 25 Oct, 2023 @ 5:26pm 
Script still working good. Nice job. Thank you.
xerxesant 6 Oct, 2022 @ 1:40pm 
i checked both of those before asking. i know others have gotten it to work because Madmavn uses it in his videos. Does the setting up process need to be in a specific order? when i set it up this time i installed the script in the program block then setup the drills, The last time i tried to use it i set the drills up first and the program wouldn't monitor the height of the drills.
undefined  [author] 5 Oct, 2022 @ 11:22am 
Hi @xerxesant, are your forward pistons in the group with the rest of your pistons? Also make sure that the minerGroupName name at the top of the script is set to the name of that group.
xerxesant 30 Sep, 2022 @ 12:07am 
Hello is this being monitored? If so, i can not get the system to see the Forward Pistons.