Custom servers/Bukkit/TrainCarts/Signs/Property

From Minecraft Wiki
Jump to: navigation, search
The contents of this page are not supported by Mojang AB, the Minecraft Wiki, or the Minecraft Forums.
This mod page is not supported or maintained by the developer of the mod.
The content on this page and its sub-pages may be incomplete and inaccurate.
The supported wiki for this mod can be found at http://tcwiki.minenews.de/.

Introduction[edit]

Property signs can perform the same tasks as you can do through commands, but then automated. They require redstone power to function and ignore cart ownership, so if you only want it to target trains you own, combine it with a switcher sign checking for owners.

Syntax[edit]

Blank Sign.png
[train]
property
speedlimit
1.5

Second line: property

Third line: the property name to change

Fourth line: the value to set the property to

Remote Control[edit]

You can remotely set properties on trains. Say your train is called train01, then you use the following on the sign:

Blank Sign.png
[train train01]
property
maxspeed
0.4

Properties[edit]

The following properties can be set using both [cart] and [train]:

Property Value example Meaning
addtag
tag1
Add a single tag
settag
taga
Set to a single tag
remtag a Remove a single tag
addowner
Maxxue
Add an owner to the train
setowner
Maxxue
Clear all owners and set to this owner
remowner Maxxue Remove a single owner from the train
destination station2 Set the destination
mobenter false Set if mobs can enter
playerenter true Set if players can enter
playerexit yes Set if players can exit

The following properties can only be set using [train]:

Property Value example Meaning
name
setname
rename
Intercity#A Sets a new name on the train. The #-sign is replaced with a number 1 to infinity.
dname
setdname
displayname
setdisplayname
Trainname Sets the display name used with trigger signs (%triggernameN%)
exitoffset
exityaw
exitpitch
exitrotation
2/0/0
30
0
90
Change player exit offset, yaw, pitch and rotation.
speedlimit
maxspeed
0.6 The maximum allowed speed the train can go
pushing[1] false Set if the train pushes mobs, players, trains and misc
pushmobs[1] true Set if the train pushes mobs
pushplayers[1] no Set if the train pushes players
pushmisc[1] yes Set if the train pushes misc (items, boats, etc.)
playercollision
mobcollision
traincollision
misccollision
default
cancel
kill
killnodrops
push
enter
link
Set a collision mode for the train against players, mobs, trains or other types of entities.
slowdown false Set if the train slows down
linking deny Set if the train can link with other trains
collision allow Set if the train can collide with other entities
keepcloaded
loadchunks
keeploaded
true Set if the train keeps nearby chunks loaded
default
setdefault
stat1def Load one of the default train properties found in
DefaultTrainProperties.yml into this train
banking 1 0 Change the banking (First number: Strength, Second number: Smoothness)
  1. a b c d Old syntax for compatibility. Replaced by typecollision. See Collision modes

Set name[edit]

The name property alters the name of the train. To account for multiple trains being renamed, and because every train needs a unique name, the # value is added as a counter-based replacement. For example, the first train passing over the property sign with name value: Intercity#A would be named Intercity1A and the second Intercity2A, and so on. You can use this in conjunction with the spawner sign to spawn trains with a fixed naming system. This naming system can then be used for remote control to control all trains of a certain spawner or category.