Difference between revisions of "TrainCarts/Signs/Sound"
(→Syntax) |
Bergerkiller (talk | contribs) (Marked this version for translation) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[TrainCarts/Signs|« Go back]] | + | <languages/> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | [[Special:MyLanguage/TrainCarts/Signs|« Go back]] | ||
− | |||
+ | == Description == <!--T:2--> | ||
+ | |||
+ | <!--T:3--> | ||
This sign can play a sound effect, specified by name, when a train enters or power is supplied. | This sign can play a sound effect, specified by name, when a train enters or power is supplied. | ||
− | == Syntax == | + | == Syntax == <!--T:4--> |
+ | |||
+ | </translate> | ||
{{sign|[+train]/[+cart]|sound|<soundname>|<soundname>}} | {{sign|[+train]/[+cart]|sound|<soundname>|<soundname>}} | ||
+ | <translate> | ||
+ | </translate> | ||
{{sign|[+train]|sound|block.beacon.|power_select}} | {{sign|[+train]|sound|block.beacon.|power_select}} | ||
+ | <translate> | ||
+ | |||
+ | </translate> | ||
{{sign|[+train]|sound 0.56 0.5|block.note_block.bell|}} | {{sign|[+train]|sound 0.56 0.5|block.note_block.bell|}} | ||
+ | <translate> | ||
+ | |||
− | === First line === | + | === First line === <!--T:5--> |
+ | <!--T:6--> | ||
When [train] is used, the sound is played in all the minecarts of the train. When [cart] is used, the sound is only played at the minecart that is currently above the sign. When no minecarts are near when the sign is powered, the sound is played above the sign. (at the rails) | When [train] is used, the sound is played in all the minecarts of the train. When [cart] is used, the sound is only played at the minecart that is currently above the sign. When no minecarts are near when the sign is powered, the sound is played above the sign. (at the rails) | ||
− | |||
− | ''sound'', followed up by an optional pitch and volume. Values of 1.0 are the defaults.The range of volume is from 0.0 to 1.0. The range of pitch in note_block is from 0.5 to 2.0( | + | === Second line === <!--T:7--> |
+ | |||
+ | <!--T:8--> | ||
+ | ''sound'', followed up by an optional pitch and volume. | ||
+ | Values of 1.0 are the defaults.The range of volume is from 0.0 to 1.0. | ||
+ | The range of pitch in note_block is from 0.5 (2^(-12/12) ) to 2.0 (2^(12/12) ) | ||
+ | A full list of pitch value can be found on the Minecraft Wiki: [https://minecraft.wiki/w/Note_Block Note Block] | ||
Pitch can be applied to any sound effect(some effects will be accelerated) | Pitch can be applied to any sound effect(some effects will be accelerated) | ||
Use ''msound'' to play the sound every tick while a train is moving on top of it. | Use ''msound'' to play the sound every tick while a train is moving on top of it. | ||
Use ''sound in'' to play the sound only to player passengers of the train. | Use ''sound in'' to play the sound only to player passengers of the train. | ||
− | |||
+ | === Third and fourth lines === <!--T:9--> | ||
+ | |||
+ | <!--T:10--> | ||
The name of the sound to play. Both lines are concatenated together, so that longer sound names can be specified. For example, you can put 'block.beacon.' on the third line and 'deactivate' on the fourth line, to play the 'block.beacon.deactivate' sound effect. | The name of the sound to play. Both lines are concatenated together, so that longer sound names can be specified. For example, you can put 'block.beacon.' on the third line and 'deactivate' on the fourth line, to play the 'block.beacon.deactivate' sound effect. | ||
− | A full list of sound names can be found on the Minecraft Wiki: https://minecraft. | + | <!--T:11--> |
+ | A full list of sound names can be found on the Minecraft Wiki: [https://minecraft.wiki/w/Sounds.json/Java_Edition_values Sounds.json/Java Edition values] or https://www.digminecraft.com/lists/sound_list_pc.php | ||
+ | </translate> |
Latest revision as of 12:27, 3 September 2024
Description
This sign can play a sound effect, specified by name, when a train enters or power is supplied.
Syntax
First line
When [train] is used, the sound is played in all the minecarts of the train. When [cart] is used, the sound is only played at the minecart that is currently above the sign. When no minecarts are near when the sign is powered, the sound is played above the sign. (at the rails)
Second line
sound, followed up by an optional pitch and volume. Values of 1.0 are the defaults.The range of volume is from 0.0 to 1.0. The range of pitch in note_block is from 0.5 (2^(-12/12) ) to 2.0 (2^(12/12) ) A full list of pitch value can be found on the Minecraft Wiki: Note Block Pitch can be applied to any sound effect(some effects will be accelerated) Use msound to play the sound every tick while a train is moving on top of it. Use sound in to play the sound only to player passengers of the train.
Third and fourth lines
The name of the sound to play. Both lines are concatenated together, so that longer sound names can be specified. For example, you can put 'block.beacon.' on the third line and 'deactivate' on the fourth line, to play the 'block.beacon.deactivate' sound effect.
A full list of sound names can be found on the Minecraft Wiki: Sounds.json/Java Edition values or https://www.digminecraft.com/lists/sound_list_pc.php