Profile image

[Guide] How to use/measure pistons properly!

67.1k SnoWFLakE0s  6.5 years ago

While working with upscaled pistons, I found that the pistons in the game don't actually extend the amount I tell it to. This is because of the weird "head" or the tip of the moving end takes up some length, and so this makes a small but noticeable offset in using pistons. I know I worded it in a strange way, but you'll know what I mean if you've tried building with pistons- the way they function really throws off the precision required for mechanical builds. So I did some experimenting and found a function for the total, fully extended length of any piston (in block-lengths):

(HeightScale) * ( ( Piston Body Length ) + 2 * ( Range ) + ( Length of Piston Head ) )

"HeightScale" is the Y-multiplier (the XML scale value that makes the piston longer or shorter)

"Range" is the set range of the piston.

and here's it with the actual values:

( HeightScale ) * ( 0.93875 + 2 * ( Range ) + 0.06125 )

This function will help you mechanical builders with your precision- no more experimenting many times over to find the perfect length.

Here's a calculator version for you lazy bois.

Use this to your needs.
- SnoWFLakE0s