//Enter
Saihou-Heiki (talk | contribs) (Created page with "TrainCarts/サイン/Enter") |
Saihou-Heiki (talk | contribs) (Created page with "Enterサインは、近くにいるプレイヤーやモブを列車に乗車させます。このサインは列車の''allowenter''プロパティを上書きするため、このサインの機能を維持したまま、プレイヤーが手動で乗車を拒否することもできます。") |
||
| Line 2: | Line 2: | ||
== 概要 == | == 概要 == | ||
Enterサインは、近くにいるプレイヤーやモブを列車に乗車させます。このサインは列車の''allowenter''プロパティを上書きするため、このサインの機能を維持したまま、プレイヤーが手動で乗車を拒否することもできます。 | |||
== 記法 == | |||
= | |||
{{sign|[train]|enter 3s|player mob|no}} | {{sign|[train]|enter 3s|player mob|no}} | ||
Revision as of 06:59, 16 June 2026
概要
Enterサインは、近くにいるプレイヤーやモブを列車に乗車させます。このサインは列車のallowenterプロパティを上書きするため、このサインの機能を維持したまま、プレイヤーが手動で乗車を拒否することもできます。
記法
First line: [train] to enter into all minecarts of the train, [cart] to enter into minecarts individually
Second line
enter, followed up by the radius to look for players or mobs in blocks. When an s is added after the radius, the radius is fully spherical, otherwise it is cylindrical with height 1. So, if you do not want players/mobs above or below the minecart(s) to enter, leave out the s. If you do need this, add the s.
Third line
What type of entities this sign operates on. By adding mob mobs will enter, by adding player players will enter. misc will let in other types of entities, like armor stands. When this line is left empty only players enter the minecarts. You can allow both mobs and players by appending them, for example player mob
Fourth line
Sets whether to look around the sign for players/mobs to enter, or whether to look around each individual minecart. By specifying 'yes/true' it will look around the sign, by specifying 'no/false' or by leaving the line empty it will look around each minecart.
Remote Control
You can remotely make trains take in passengers. Say your train is called train01, then you use the following on the sign:
Then it will teleport all players near the enter sign into the train named train01. Note that long-distance teleportation (between worlds or far away) will likely fail, so keep the RC sign near the train when using this.
