TrainCarts/控制牌/声音

From BergerHealer Wiki
Revision as of 13:39, 15 September 2024 by Halogly (talk | contribs) (Created page with "=== 第三行和第四行 ===")
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


描述

声音牌可以播放声音效果。指定要播放的声音名称,当列车经过时会播放指定的声音。

语法

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


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


Signtemplate.png
[+train]
sound 0.56 0.5
block.note_block.bell


第一行

使用 [train] 时,声音会为列车中的所有车厢播放。使用 [cart] 时,声音只会为位于声音牌上方的矿车播放。当声音牌激活时且周围没矿车时,声音会在牌子上方(在铁轨上)播放。


第二行

sound,后跟可选的音调和音量。 默认值为 1.0。音量范围在 0.0 到 1.0 之间。 音符盒中的音调范围在 0.5(2^(-12/12))到 2.0(2^(12/12))之间。 音调值的完整列表可在 Minecraft Wiki 上找到: 音符盒 音调可用于任何音效(某些音效会加速)。 使用 msound 则会在列车经过控制牌时的每一刻播放一次声音。 使用 sound in 则仅向列车上的乘客播放声音。


第三行和第四行

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