2

Help with a redstone thing

WarnedCrayon509 12/26/23 5:42 pm
192
12/26/2023 10:46 pm
I need to make a piston that has a rail on it when it's off, but not when it's on. I have the Create mod installed if that can help with anything.
Posted by
WarnedCrayon509
Level 4 : Apprentice Explorer
1

  Have something to say?

JoinSign in

5

WarnedCrayon509
12/26/2023 8:09 pm
He/Him • Level 4 : Apprentice Explorer
I just don't know the redstone that would make it happen. I know what I have to do (move the rail) but not how to make it happen
1
ScotsMiser
12/26/2023 6:43 pm
Level 71 : Legendary Miner
Don't know the create mod, thinking in vanilla:

I'm assuming 'when it's [​the piston] is off' means unpowered and retracted & 'when it's on' means powered and extended; if incorrect, please clarify.
Also, that you mean a sticky piston [S-piston].
Also, that you want a normal rail (six Fe ingots & a stick) – not one of the specialty types – on the piston.
Also, is it important that the rail NOT de on the powered/extended piston, or does this not matter?

Do you need the rail to be on the piston head (the part that moves), the piston back (opposite the head), or one of the sides.
Taking the 2nd case (rail on the back of a downward facing piston) as most likely…

Prior to 1.16 RS components on the back of pistons would 'pop-off' when the piston retracted.
Using an S-piston to first move the rail off the downward facing piston THEN extending and retracting the piston and finally moving the rail back int place should work. [Routing the rail line around the area may, however, be simpler.]


In the 1st case, the piston would push the rail up: using a second S-piston to move the rail off of and back onto the piston (similar to what is described above) will prevent the rails to either side from first sloping up (ehen the rail piston is extended) the breaking (as it retracts).

the 3rd case, would be similar to the 2nd , except that you would need to ensure the rail was 'parked' on a non-moving block capable of having a rail placed on it (rather than one being moved by the sideways facing piston).


Posting (or linking) one or more pictures of the setup would be quite useful,
as I'm far from certain I've understood the nature of the problem…
1
WarnedCrayon509
12/26/2023 6:47 pm
He/Him • Level 4 : Apprentice Explorer
history
Could you perhaps provide a picture of the 1st case? I'm not a great redstoner
1
ScotsMiser
12/26/2023 10:46 pm
Level 71 : Legendary Miner
history
This is the basic setup. (click to open larger version of all/any)


Notes:
RS-lamps are just to make it easy to see the state of the levers.
Jack-o-lantern is used as the base for the RS-torch to limit lag by suppressing lighting updates. (Any solid block works.)
Grey wool under jack is just to show the jack' is part of the 'A' (silver) power line.
The stuff on the oak bark blocks is an ABBA switch since the device needs to:
    (when turned on)
  retract silver
  extend blue
    then (when turned off)
  retract blue
  extend silver
              (Any ABBA switch will work)
The repeaters in the ABBA are set to 4 just to make it easier to see what is going on; the settings are quite flexible.

Reverse view to clarify power runs:


Overview of ABBA:


Error not protected against:

There are ways to prevent this occuring, but the timings would be quite finicky (and dependent on the specific build).
  [​The basic idea would be to install detector rails to sense an incoming minecart and circuitry to force the rail-on-piston into the desired state before the minecart arrived.]


Hope that helps….
1
ShelLuser
12/26/2023 5:54 pm
Level 61 : High Grandmaster System
Rail can be moved by pistons as long as you make sure that there's a block underneath it.

So... maybe have a sticky piston move the rail out of the way from the other piston? Also, using a normal piston to push rail up will work as expected, but as soon as it retreats the rail will break because you're basically removing the block underneath it. Sticky piston prevents that from happening.
2

Welcome