Files
Civ/plugins/railswitch-paper
Alexander 8a1fc998fa Updated DetectorRailActivateListener
The file has been updated and improved and flattened. While some of the comments might seem a little obvious, that you can reasonably easily deduce what's going on, it's in my opinion better to save future developers, especially newer developers the effort of having to parse code. The comments allow me to define what's happening but also *why* it's happening.
2020-01-25 02:15:00 +00:00
..
2020-01-23 22:06:49 +00:00
2020-01-17 23:46:32 +01:00
2019-06-16 10:48:27 +01:00
2020-01-25 02:08:23 +00: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