Files
Civ/plugins/railswitch-paper
Alexander e4b4507d47 GetDestination fix
chain() doesn't ensure a non-null value, but rather ensures that *a* value is returned, so if the chained statement returns null then that's accepted
2020-06-23 17:55:10 +01:00
..
2020-06-23 17:55:10 +01:00
2020-01-23 22:06:49 +00:00
2020-01-17 23:46:32 +01:00
2020-06-11 23:39:49 +02:00
2019-06-16 10:48:27 +01:00
2020-05-29 06:41:39 +02:00
2019-12-12 13:05:10 -05:00

RailSwitch

How to use

Setup

  1. Place a sign in the block above a detector rail. It must be reinforced on the same group as the detector rail.
  2. The first line must be [destination] (case insensitive)
  3. The second, third and fourth lines can be destination names.
  4. When a player passes over the detector rail, it will only activate and emit redstone if a player set their destination as any of the three on the sign.

You may also use [!destination], which will activate the rail if a player's destination is not on the signs.

Usage

  1. Type /dest <destination>
  2. Go AFK
  3. Arrive

You can also use spaces in a /dest command as an "or" operator, like /dest <destination1> <destination2>. In this command, RailSwitch will route players towards signs that contain either <destination1> or <destination2>.

Another way to think about it is that /dest takes multiple arguments. Each argument is a destination that will be checked as you pass a sign.

Example Video

RailSwitch Demo Video