train carts
TRANSCRIPT
-
8/10/2019 Train Carts
1/12
-
8/10/2019 Train Carts
2/12
spawn!tem"rops true oolean!f the (inecart item3s4 are dropped when
the minecart is destroyed
brea&CombinedCarts false oolean
!f combined (inecarts, such as
2torage/Powered (inecarts, fall apart intwo items when destroyed
pushAway)orce *. "ecimal
The force applied when the (inecart pushes
away an entity
pushAway!gnore5lobalOwners true oolean!f global train owners 3seePermissions4 are
ignored when pushing away players
pushAway!gnoreOwners true oolean!f train owners are ignored when pushing
away players
&eepChun&soadedOnly6hen(oving false oolean!f trains have to be moving for them to &eep
chun&s loaded 3if set4
launch)orce $* #umber The force applied when launching trains
3stations4
use true oolean !f this configuration has to be used, if set tofalse it is ignored
Properties:
Trains contain multiple properties, based on the train name. All these properties can be found it:
7plugins8Train Carts8trainflags.yml7
)or every train settings are stored globally. 6hen a train is removed, the properties are removed with it.
The properties
tags
Tags are used to identify a certain train among multiple trains. )or one, they are used in the Trac&
switchersystem.
passengers
2ets who is allowed to enter the train. !f none are set, everyone can enter the train. Owners override this
property.
owners
2ets who owns the train. Owners can change train properties, remove and move the train and override
various properties. Through permissions you can set the players that have ownership over everything. !f
no owners are set, everyone owns the train.
trainCollision
2ets if this train can collide with other trains. !f set to false the train will penetrate right through
http://wiki.bukkit.org/TrainCarts-Plugin/Permissionshttp://wiki.bukkit.org/TrainCarts-Plugin/Permissionshttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#Track_switcherhttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#Track_switcherhttp://wiki.bukkit.org/TrainCarts-Plugin/Permissionshttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#Track_switcherhttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#Track_switcher -
8/10/2019 Train Carts
3/12
obstacles 3except bloc&s4. Owners override this property.
allowLinking
2ets if this train can be lin&ed to other trains.
requirePoweredMinecart2ets if this train re9uires a powered minecart in the train in order to get it lin&ed
allowMobsnter
2ets if mobs can enter this train.
speedLi!it
The maximum allowed speed/velocity of the train.
slowDown2ets if the train slows down over time.
enterMessage
2ets the message displayed when a player enters the train. !f left empty no message is displayed.
allowPlayernter
2ets if players can enter the train.
allowPlayer"it
2ets if players can exit the train. 3comes with additional permission node4
push#way
2ets who is pushed away from the train, normal and when at stations.
!obs
2ets if mobs are pushed away.
players
2ets if players are pushed away.
!isc
2ets if misc. entities 3all others4 are pushed away.
at$tation
2ets the above three settings for when the train is at a station.
-
8/10/2019 Train Carts
4/12
keepChunksLoaded
2ets if chun&s near the train are &ept loaded. !f you want trains to survive going into the middle of
nowhere without a player near, you can enable this. !f you only want this enabled for moving trains, set
&eepChun&soadedOnly6hen(oving in the configuration.
destination
2ets the destination this train is heading to. !f set, the train will try to reach the destination by toggling
rails.
Co!!ands
;ou can alter train properties through the chat using commands. efore using any of the commandsbelow, left or right clic& the train to mar& it as being edited. Placing and entering a (inecart also mar&s
it. ;ou do need ownership or global ownership before you can alter train properties.
6here
-
8/10/2019 Train Carts
5/12
/train mobsenter !bool"
2ets if mobs can enter this train.
&wners
/train claim
2ets you as the only owner of this train.
/train setowner !names..."
/train setowners !names..."
/train setowners
2ets the owner names of this train. 0se no names to clear the owners.
/train addowner !names..."
/train addowners !names..."
Adds the owner names to this train.
Tags
/train settags !tags..."
/train settag !tags..."
/train tags !tags..."
/train tag !tags..."
/train settags
2ets the tags of this train. 0se no tags to clear the tags.
/train addtags !tags..."
/train addtag !tags..."
Add tags to this train.
Destination
/train destination !destination"
/train dest !destination"
2ets the destination for this train.
%eroute
/train reroute
)orces the destinations to re'calculate themselves. Can be used if you changed a piece of trac&dramatically. >e9uires the destination build permission to use it.
Collision
/train setcollision !bool"
/train setcollide !bool"
/train collision !bool"
-
8/10/2019 Train Carts
6/12
/train collide !bool"
2ets if this train can collide.
$peed Li!it
/train maxspeed !speedvalue"
/train speedlimit !speedvalue"
2ets the maximum allowed speed/velocity of the train. 2peed value is a decimal value, default is *.-.
$lowdown
/train slowdown !bool"
/train setslowdown !bool"
/train slow !bool"
/train setslow !bool"
2ets if this train slows down over time.
Player enter
/train playerenter !bool"
2ets if players can enter the train.
Player e"it
/train playerexit !bool"
/train playerleave !bool"
2ets if players can exit the train. 3comes with additional permission node4
Push !obs' players and !isc
/train pushmobs !bool"
/train pushplayers !bool"
/train pushmisc !bool"
/train pushmobs station !bool"
/train pushplayers station !bool"
/train pushmisc station !bool"
2ets if mobs, players or misc. items are pushed away. Train owners are excluded if players is enabled.6hen station 3or any word containing station4 is specified, it will set the settings for when the train is at
a station.
(eep chunks loaded
/train eepchunsloaded !bool"
2ets if nearby chun&s are &ept loaded. To use this, players also need permission for this command.
-
8/10/2019 Train Carts
7/12
Train re!o)al
/train remove
/train destroy
6ill remove the entire 3physical4 train.
*lobal train re!o)al/train removeall worldname
/train removeall
>emoves the information of all trains, but leaves the train physically there. 3re9uires permission4
/train destroyall worldname
/train destroyall
"estroys all trains 3physically4. 3re9uires permission4
Default properties;ou can set default property values through permissions. The file where you can do this is:
plugins\Train Carts\defaultflags.yml
?very section starts with a permission group, followed up by the properties for this group. ;ou can add
and remove groups as you please. To set these defaults for certain players, give them the Train Property
Permission.
;ou can also useproperty signsto set train defaults.The station node is active when trains are waiting at a station, or @ust leaving from them.
Property defaults loo& the same as regular train properties. elow the property defaults generated:
default$
admin$
station$
push%way$
mobs$ true
players$ true
To lin& (inecarts together, all you have to do is give the (inecart a gentle push. 6hen the two
(inecarts collide, they will lin& together and form a train. owever, you do need appropriatePermissionsbefore you can lin& (inecarts.
#fter linkingThe (inecarts in the train will try to &eep a steady distance between their neighbors in the train. Thevelocity of the (inecarts are shared, therefore every external effect on a (inecart in a train is shared
among all the members in the same train. aving multiple (inecarts in a single train also increases the
momentum of the train, which increases the distance a (inecart can travel without being powered.
uild permissions
http://wiki.bukkit.org/TrainCarts-Plugin/Permissions#Property_defaultshttp://wiki.bukkit.org/TrainCarts-Plugin/Permissions#Property_defaultshttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#setdefault.2Fdefaulthttp://wiki.bukkit.org/Permissionshttp://wiki.bukkit.org/TrainCarts-Plugin/Permissions#Property_defaultshttp://wiki.bukkit.org/TrainCarts-Plugin/Permissions#Property_defaultshttp://wiki.bukkit.org/TrainCarts-Plugin/Circuits#setdefault.2Fdefaulthttp://wiki.bukkit.org/Permissions -
8/10/2019 Train Carts
8/12
The following permissions can be used:
train.build.station
Allows you to build station signs
default: optrain.build.spawner
Allows you to build the train spawner signs
default: op
train.build.trigger
Allows you to build trigger signs 3arrival times4
default: optrain.build.tagswitcher
Allows you to build the tag trac& switcher
default: op
train.build.destination
Allows you to build destination signs and reroute 3re'calculate4 the destinations
default: optrain.build.destructor
Allows you to build destructor signs
default: op
train.build.e@ector
Allows you to build e@ector signs
default: op
train.build.pushandler
Allows you to build push handler signs to stop or allow a train to be pushed
default: op
train.place.minecart
Allows the player to place a minecart. ?veryone has this node enabled by default.
Commands
The permission nodes for the Property commands.
train.command.globalproperties
-
8/10/2019 Train Carts
9/12
Allows you to view and change properties of all trains
default: optrain.command.properties
Allows you to view and change properties of trains you own
default: true 3?veryone has this node enabled by default.4
train.command.remove
Allows you to remove all information of trains on a world or server, optionally destroying them all too.
"efault: op
train.command.&eepchun&sloaded
Allows you to set if chun&s near the train are &ept loaded
"efault: op
train.command.playerexit
Allows you to set if a train can be exited by players
"efault: op
Property defaults
Permissions that set the default properties for trains placed by these players. !t is possible to addmultiple permissions li&e these by adding more "efault Properties.
train.properties.default
2ets the players that use the default train properties
default: not'optrain.properties.admin
2ets the players that use the admin train properties
default: op
Action 2igns
;ou can use signs to perform special actions with trains. All these signs have
-
8/10/2019 Train Carts
10/12
example, you can combine an unpowered trac& switcher with a destroy sign to remove carts or trains
with certain characteristics.
2ince v$.++ you can now set what directions trigger the sign, by adding a +after trainor cartfollowed
up by the direction. )or example, [!train:lr]will invert redstone power, while being triggered by trainscoming from the left and right.
>emote Control
A few sign systems support remote control: the ability to control trains by name. ;ou then use the
[train ]format, or the shorter alias [t ]. >emotely controlled signs only respond to
redstone changes, thus where you place them is not important. 2o far the property, destination, destroyand e@ect sign systems support remote control.
Placement
?ach sign targets a certain trac& piece above. 2igns attached to walls ta&e the bloc& they are attached to
and loo& up until they find a piece of trac&. That trac& is then used for that sign. 2ign posts loo& upuntil they find a piece of trac&. There may not be bloc&s without signs between the bottom sign and the
trac&s.
;ou can ma&e a pillar of bloc&s below a single trac& piece and attach signs to it, to ma&e a bundle of
actions on a single trac& piece. Trains loo& down when they enter a new trac& piece to chec& for signs,so ma&e sure you put the output signs above the signs that use this output for correct results.
)or most signs the sign directioninfluences what happens:
The train has to face the te"t on the signto ma&e the sign respond
2igns with the same alignment as the trac&s 3faces to or away from the trac&s4 alwaysrespond
The train is spawned in the direction the sign faces
Types:
"estroyer ' destroy trains
?@ector ' e@ect trains 3let passengers exit4
loc&er ' bloc&s trains coming from a certain direction
2tation ' stop and launch trains
Property ' set properties on the train such as tags, destinations and owners
2witcher ' switch levers and rails based on properties on the train
"etector ' detect trains on a set region of rails
Transfer ' transfer items between trains and chests/furnaces/dispensers
Crafter ' crafts items inside the storage minecarts of a train using a nearby wor&bench
?levator ' teleports trains including passengers up and down to another elevator
Teleporter ' teleport trains including passengers 3re9uires (y6orlds4
2pawner ' spawn an entire train up to B* carts long, cart types can be set
Trigger ' display train information and a countdown of the arrival time of trains on signs
3re9uires 2ignin&4
"estination ' mar&s a destination for the path finding and sets the next destination for the train
Permissions
?ach sign has a separate build permission. elow the permission nodes for the above sign types:
http://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Destroyerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Ejectorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Blockerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Stationhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Propertyhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Switcherhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Detectorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Transferhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Crafterhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Elevatorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Teleporterhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Spawnerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Triggerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Destinationhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Destroyerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Ejectorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Blockerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Stationhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Propertyhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Switcherhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Detectorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Transferhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Crafterhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Elevatorhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Teleporterhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Spawnerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Triggerhttp://www.minecraftwiki.net/wiki/Bukkit/TrainCarts/Signs/Destination -
8/10/2019 Train Carts
11/12
$ign Per!ission node Default
destructor train.build.destructor OP
e@ector train.build.e@ector OP
station train.build.station OP
property train.build.property OP
switcher train.build.switcher OP
transfertrain.build.collector
OPtrain.build.depositor
teleport train.build.teleport OP
spawner train.build.spawner OP
trigger train.build.trigger OP
destination train.build.destination OP
waiter train.build.waiter OP
crafter train.build.crafter OP
elevator train.build.elevator OP
2igns are directional, so you can expect the term directionto be used fairly often. 6henever you have
to set a direction, you can pic& from the following list.
"irections
Te"t Character Meaning
north n #orth
east e ?ast
west w 6est
south s 2outh
left l eft while loo&ing at the text'side of the sign.
right r >ight while loo&ing at the text'side of the sign.
forward f )orwards while loo&ing at the
text'side of the sign.
bac&wards b ac&wards while loo&ing at the
text'side of the sign.
none n nown as no direction, never
activates, etc.
Other 2ituations:2ign systems li&e the station and bloc&er sign support additional arguments on the sign. There you can
set what to ma&e the train do after a certain situation. The same formats described above can be used,
the difference is that forwards and bac&wards now denote that relative to the train, and not to the sign.
-
8/10/2019 Train Carts
12/12
)orwards basically means continue in the same direction.