Difference between revisions of "TrainCarts/Signs/Sound"

From BergerHealer Wiki
Jump to navigation Jump to search
m (1 revision imported)
Line 26: Line 26:
 
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.gamepedia.com/Sounds.json/Java_Edition_values
+
A full list of sound names can be found on the Minecraft Wiki: https://minecraft.gamepedia.com/Sounds.json/Java_Edition_values or https://www.digminecraft.com/lists/sound_list_pc.php

Revision as of 07:04, 24 May 2022

« Go back

Description

This sign can play a sound effect, specified by name, when a train enters or power is supplied.

Syntax

Signtemplate.png
[+train]/[+cart]
sound
<soundname>
<soundname>


Signtemplate.png
[+train]
sound
block.beacon.
power_select


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. 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: https://minecraft.gamepedia.com/Sounds.json/Java_Edition_values or https://www.digminecraft.com/lists/sound_list_pc.php