Paste #46954: How To Plot A Track And Create A Train

Date: 2018/03/17 16:06:14 UTC-07:00
Type: Plain Text

View Raw Paste Download This Paste
Copy Link


Setting up a Roller Coaster:

First you have to build a rollercoaster from blocks. If it is your first one I recommend a short track to get the hang of things.

After you have done built your test track you follow these steps:

1. Type /rc startpath
2. Go to the start of the track and type /rc addpoint (this point will be where the coaster will start moving from)
3. Every 2nd block forward on the track and type /rc addpoint.(I recommend using Essentials powertool to speed this up)
4. Repeat step 3 until you are finished with the track and you are back in the coaster station. (The last point you set is the place where the last cart of the train stops)
5. Type /rc build <TrackName>
eg /rc build TestTrack

You have now created a track. In order to use this track you now have to create a train.

1. Type /rc train create <TrainName> <SeatAmountLoco> <SeatAmountCart> to create a train. (default is 1 seat)
eg /rc train create TestTrain 
eg /rc train create TestTrain 1 2 (this makes the locos have 1 seat and the carts have 2 seats)
2. Type /rc train setskin <trainname> <Loco/Cart> To change the skin to an item you are holding and designate that item as the Locomotive or Cart. 
eg /rc train setskin TestTrain Loco
eg /rc train setskin TestTrain Cart
3. Type /rc train pos <TrainName> <seat#> <Offset Left Right> <Offset Front Back> <Loco/Cart> to setup the seat positions. (The seat# starts with 0 so if you have 4 seats in one cart you have to set seat 0, 1, 2 and 3)
eg /rc train pos TestTrain 0 -1 1 Loco (sets the 1st seat in EACH locomotive to be one block offset to the back and one block to the right)
/rc train pos TestTrain 1 -1 -1 Loco (sets the 2nd seat in EACH locomotive to be one block offset to the back and one block to the left)
/rc train pos TestTrain 0 -1 -1 Cart (sets the 1st seat in EACH cart to be one block offset to the back and one block to the left)
/rc train pos TestTrain 1 -1 1 Cart (sets the 2nd seat in EACH cart to be one block offset to the back and one block to the right)
/rc train pos TestTrain 2 1 -1 Cart (sets the 3rd seat in EACH cart to be one block offset to the front and one block to the left)
/rc train pos TestTrain 3 1 1 Cart (sets the 4th seat in EACH cart to be one block offset to the front and one block to the right)
4. Type /rc reload to reload the trains.

Now you are done setting up a train!

The final step is to spawn the train to the track and choose how many carts you want and if the coaster has a locomotive.

/rc spawntrain <TrackName> <TrainName> <AmountOfCarts> <UseLoco, 1=yes, 2=no>
eg /rc spawntrain TestTrack TestTrain 7 1 (Spawns a train with 7 carts and a locomotive in front)
eg /rc spawntrain TestTrack TestTrain 8 2 (Spawns a train with 8 carts and no locomotive)

After the train is spawned in you will have to start the train/track to allow passengers onboard.
/rc starttrain <TrackName>
eg /rc starttrain TestTrack

Once your players are on board the train you can type:
/rc locktrain <TrackName> (this keeps players from exiting the train while in motion)
eg /rc locktrain TestTrack
/rc unlocktrain <TrackName> (this allows players to exit the train while in motion)
eg /rc unlocktrain TestTrack