TrainCarts/Tickets [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "==== 切符アイテムをプレイヤーに与える ====")
(Created page with "=== 切符のカテゴリ ===")
 
(4 intermediate revisions by the same user not shown)
Line 55: Line 55:
==== 切符アイテムをプレイヤーに与える ====
==== 切符アイテムをプレイヤーに与える ====


<div lang="en" dir="ltr" class="mw-content-ltr">
切符のプロパティは新しい切符を与え直すことなく更新することができます。また、コマンドブロックで@pセレクタを利用すれば、近くのプレイヤーに切符を与えることが可能です。
The ticket properties can later be updated without having to re-give the ticket item. The @p selector can be used (in command blocks) to give to players nearby.
</div>
{{Command|train ticket give [name] [player/@p]|Gives a ticket item to a Player|train.ticket.manage}}
{{Command|train ticket give [name] [player/@p]|Gives a ticket item to a Player|train.ticket.manage}}




<div lang="en" dir="ltr" class="mw-content-ltr">
=== 切符の設定 ===
=== Ticket item configuration ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
切符は使用可能数などを設定することができます。
Tickets can be further configured to restrict the number of uses and more.
</div>


{{Command|train ticket maximumuses [amount/unlimited]|Set the amount of times ticket items can be used|train.ticket.manage}}
{{Command|train ticket maximumuses [amount/unlimited]|Set the amount of times ticket items can be used|train.ticket.manage}}
Line 76: Line 70:




<div lang="en" dir="ltr" class="mw-content-ltr">
=== 切符の背景画像 ===
=== Ticket background image ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
切符の背景画像をそれぞれ変更することができます。''plugins/Train_Carts/images''フォルダに128x128の画像を入れると、背景として利用可能になります。
The background image of the item can be changed on a per-ticket basis. Background images need to be put in the ''plugins/Train_Carts/images'' folder and must be 128x128 in resolution.
</div>
{{Command|train ticket background [filename]|Assigns a background image|train.ticket.manage}}
{{Command|train ticket background [filename]|Assigns a background image|train.ticket.manage}}




<div lang="en" dir="ltr" class="mw-content-ltr">
=== 切符のカテゴリ ===
=== Realms ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
切符は複数の列車に割り当てられる共通の名前『カテゴリ』と紐づけることができ、これを用いれば、異なる種類の切符をひとつの列車に割り当てられるようになります。切符のプロパティで切符名のかわりにカテゴリ名を割り当てれば、切符はそのカテゴリの一部として利用可能になります。
Tickets can be assigned to a realm, a common name that can be assigned to trains. This makes it easier to create multiple different tickets that can be used for the same trains. To use this feature, assign the realm name (instead of the ticket name) to the train tickets property, and now tickets part of this realm can be used.
</div>


{{Command|train ticket realm [realm]|Sets the ticket realm|train.ticket.manage}}
{{Command|train ticket realm [realm]|Sets the ticket realm|train.ticket.manage}}

Latest revision as of 03:58, 28 July 2026

Other languages:

概要

プレイヤーが手に切符アイテムを持っています。

切符は特殊な地図のアイテムで、乗客に列車へのアクセスなどを提供します。


つかいかた

切符の作成・編集・名前の変更

注意点

  • 切符の作成時に名前を指定しなかった場合、ランダムな名前が割り当てられます。
  • 新しい切符を作成した時、自動的に切符の編集に移行します。


コマンド

Creates a new ticket with the name specified
Command: /train ticket create (name)
Permission: train.ticket.manage


Edits the ticket with the given name
Command: /train ticket edit [name]
Permission: train.ticket.manage


Renames the last-edited ticket
Command: /train ticket rename [new_name]
Permission: train.ticket.manage


Deletes the last-edited train ticket
Command: /train ticket remove
Permission: train.ticket.manage



切符と列車の割り当てと解除

コマンド

現時点ではコマンドの補完機能がありません。今後追加する予定です。

Assigns a ticket to a train
Command: /train addticket [name]
Permission: train.property.tickets


Un-assigns a ticket from a train
Command: /train remticket [name]
Permission: train.property.tickets


Clears all tickets set for a train
Command: /train clrticket
Permission: train.property.tickets



Propertyサイン

Signtemplate.png
[+train]
property
addticket
myticket


Signtemplate.png
[+train]
property
remticket
myticket


Signtemplate.png
[+train]
property
clrticket


切符アイテムをプレイヤーに与える

切符のプロパティは新しい切符を与え直すことなく更新することができます。また、コマンドブロックで@pセレクタを利用すれば、近くのプレイヤーに切符を与えることが可能です。

Gives a ticket item to a Player
Command: /train ticket give [name] [player/@p]
Permission: train.ticket.manage



切符の設定

切符は使用可能数などを設定することができます。

Set the amount of times ticket items can be used
Command: /train ticket maximumuses [amount/unlimited]
Permission: train.ticket.manage


Set what destination to set on the train when used
Command: /train ticket destination [destination]
Permission: train.ticket.manage


Set what tags to add to the train when used
Command: /train ticket tags [tags]
Permission: train.ticket.manage



切符の背景画像

切符の背景画像をそれぞれ変更することができます。plugins/Train_Carts/imagesフォルダに128x128の画像を入れると、背景として利用可能になります。

Assigns a background image
Command: /train ticket background [filename]
Permission: train.ticket.manage



切符のカテゴリ

切符は複数の列車に割り当てられる共通の名前『カテゴリ』と紐づけることができ、これを用いれば、異なる種類の切符をひとつの列車に割り当てられるようになります。切符のプロパティで切符名のかわりにカテゴリ名を割り当てれば、切符はそのカテゴリの一部として利用可能になります。

Sets the ticket realm
Command: /train ticket realm [realm]
Permission: train.ticket.manage