Difference between revisions of "TrainCarts/Commands/de"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "Die unten stehenden Befehle funktionieren nur mit ''/train'' und brauchen keine vorherige Auswahl zum funktionieren.")
(Updating to match new version of source page)
Line 8: Line 8:
  
  
 +
<div class="mw-translate-fuzzy">
 
== Syntaxgrundlagen ==
 
== Syntaxgrundlagen ==
 +
</div>
  
 
Um einen Befehl auszuführen, verwende entweder '''/train''' oder '''/cart'''. Wenn du die Zugversion verwendest, möchtest du eine Aufgabe auf den ganzen Zug oder einen globalen Zugbefehl ausführen. Wenn du den Wagenversion verwendest, möchtest du mit einem einzelnen Wagen arbeiten. Wenn du an einem Zug oder Wagen arbeiten willst, misst du diesen zuerst durch 'schlagen', Einsteigen oder platzieren einer Lore auswählen.
 
Um einen Befehl auszuführen, verwende entweder '''/train''' oder '''/cart'''. Wenn du die Zugversion verwendest, möchtest du eine Aufgabe auf den ganzen Zug oder einen globalen Zugbefehl ausführen. Wenn du den Wagenversion verwendest, möchtest du mit einem einzelnen Wagen arbeiten. Wenn du an einem Zug oder Wagen arbeiten willst, misst du diesen zuerst durch 'schlagen', Einsteigen oder platzieren einer Lore auswählen.
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
=== Targeting Flags ===
 +
Instead of first selecting a cart to modify, you can use any of the following flags to target trains directly. These also work in Command Blocks.
 +
{| class="wikitable"
 +
|-
 +
! style="width: 15%" |  Flag
 +
! style="width: 25%" | Example
 +
! Description
 +
|-
 +
| --train <name>
 +
| /train maxspeed 0.0 --train train12<br>/train maxspeed --train @train[name=intercity*]
 +
| Selects a train by name. Supports the [[TrainCarts/Commands/Selector|''@train'' selector]] in place of the name, with which you can target more than one train at a time.
 +
|-
 +
| --nearest
 +
| /train maxspeed 0.0 --nearest
 +
| Selects the nearest train to the sender. At most 128 blocks away.
 +
|-
 +
| --near <x> <y> <z> <distance>
 +
| /train maxspeed 0.0 --near ~ ~ ~ 5
 +
| Selects the nearest train near to the coordinates specified, at most distance away
 +
|-
 +
| --cart <index or entity_uuid>
 +
| /cart destroy --nearest --cart 0
 +
| Selects a single cart from the front. Index 0 is the front, 1 second from front, etc. The words 'head' and 'tail' can also be used to select the first or last cart. The train of which to select the carts can be selected with the other flags, otherwise the train the player is currently editing is used.
 +
|-
 +
| --world <worldname>
 +
| /train destroy --world world_nether --near 2 66 -134 1.5
 +
| By default flags only target the world the sender is on. With this, a different world can be specified. Is required when running commands from the server terminal.
 +
|}
 +
</div>
  
 
== Globale Befehle ==
 
== Globale Befehle ==

Revision as of 19:30, 20 August 2022

Other languages:
Deutsch • ‎English • ‎中文 • ‎中文(中国大陆)‎

« Gehe Zurück


Einführung

Befehle werden verwendet um Züge oder einzelne Wagen zu kontrollieren. Sie können auch verwendet werden, um Routine-Aufgaben, wie beispielsweise das entfernen von Zügen von einer Welt, auszuführen.


Syntaxgrundlagen

Um einen Befehl auszuführen, verwende entweder /train oder /cart. Wenn du die Zugversion verwendest, möchtest du eine Aufgabe auf den ganzen Zug oder einen globalen Zugbefehl ausführen. Wenn du den Wagenversion verwendest, möchtest du mit einem einzelnen Wagen arbeiten. Wenn du an einem Zug oder Wagen arbeiten willst, misst du diesen zuerst durch 'schlagen', Einsteigen oder platzieren einer Lore auswählen.

Targeting Flags

Instead of first selecting a cart to modify, you can use any of the following flags to target trains directly. These also work in Command Blocks.

Flag Example Description
--train <name> /train maxspeed 0.0 --train train12
/train maxspeed --train @train[name=intercity*]
Selects a train by name. Supports the @train selector in place of the name, with which you can target more than one train at a time.
--nearest /train maxspeed 0.0 --nearest Selects the nearest train to the sender. At most 128 blocks away.
--near <x> <y> <z> <distance> /train maxspeed 0.0 --near ~ ~ ~ 5 Selects the nearest train near to the coordinates specified, at most distance away
--cart <index or entity_uuid> /cart destroy --nearest --cart 0 Selects a single cart from the front. Index 0 is the front, 1 second from front, etc. The words 'head' and 'tail' can also be used to select the first or last cart. The train of which to select the carts can be selected with the other flags, otherwise the train the player is currently editing is used.
--world <worldname> /train destroy --world world_nether --near 2 66 -134 1.5 By default flags only target the world the sender is on. With this, a different world can be specified. Is required when running commands from the server terminal.

Globale Befehle

Die unten stehenden Befehle funktionieren nur mit /train und brauchen keine vorherige Auswahl zum funktionieren.


List

/train list
/cart list

Zeigt die anzahl and stationären und fahrenden Zügen in der Welt. Es führt auch die gesammte anzahl an Wagen Entitäten (Als teil von diesen Zügen) und eine Liste aller Züge welche zu dir gehören auf.


Reroute

/train reroute [--lazy]

Wenn das Wegfindungungssystem fehlschlägt, weil die Strecke verändert wurde, kannst du diesen Befehl verwenden um das Plugin die Zielstrecken neu kalkulieren zu lassen.

<string>Der '--lazy'-Parameter:

Normalerweise nimmt der Befehl alle bekannten vorherigen Knoten und plant sie für das berechnen.
Mit dem '--lazy' Parameter wird dies nur passieren, wenn ein Wagen sich einem Wechsel-Schild näherd und nur von diesem Knoten aus.

Alles Zerstören

/train destroyall
/train removeall

Zerstört alle Loren und Züge vom Server. Kann nützlich für das resetten des Plugins sein.


Fix bugged

/train fixbugged

Destroys all minecarts that are not managed by the plugin. Useful for is the server was shut down unexpectedly, leaving orphaned trains on the track.


Train - only commands

The below commands work only for /train.


Rename

/train setname [name]
/train name [name]
/train rename [name]

Sets the name of the train, the name may not be assigned to another train already


Set display name

/train setdname [name]
/train displayname [name]
/train setdisplayname [name]

Sets the display name of the train, may be double-assigned. This name is displayed on SignLink-variable signs when using trigger signs.


Train and Cart commands

The below commands work for both /train and /cart.


Information

/train info
/train i

Shows train or cart related information, such as the name and set properties.


Ownership

/train claim

Sets you as the only owner of this train.

/train setowner [names...]
/train setowners [names...]
/train setowners

Sets the owner names of this train. Use no names to clear the owners.

/train addowner [names...]
/train addowners [names...]

Adds the owner names to this train.

To change ownership of a single minecart, use the '/cart' command instead of '/train'. When setting train owners, you set owners on all minecarts simultaneously. If no owners are set for a minecart, it can be freely edited and destroyed by everyone else.


Tags

/train settags [tags...]
/train settag [tags...]
/train tags [tags...]
/train tag [tags...]
/train settags

Sets the tags of this train. Use no tags to clear the tags.

/train addtags [tags...]
/train addtag [tags...]

Add tags to this train.

Tags can be used in combination with switcher or detector signs. For example, you can set a tag to order a train to be destroyed. Every minecart has a separate set of tags, setting tags on a train sets it for all minecarts simultaneously.


Destination

/train destination [destination]
/train dest [destination]

Sets the destination for this train.

You can also set a destination on a single minecart in the train, this way letting switcher signs split trains up in multiple carriages.


Player enter

/train playerenter [bool]

Sets if players can enter the train or minecart.


Player exit

/train playerexit [bool]
/train playerleave [bool]

Sets if players can exit the train or minecart.


Pick up

/train pickup [bool]

Sets if the storage minecart(s) (in the train) pick up nearby items from the ground.