TrainCarts/Signs/Sound [zh]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "=== 第二行 ===")
(Created page with "''sound'',后跟可选的音调和音量。 默认值为 1.0。音量范围在 0.0 到 1.0 之间。 音符盒中的音调范围在 0.5(2^(-12/12))到 2.0(2^(12/12))之间。 音调值的完整列表可在 Minecraft Wiki 上找到: [https://minecraft.wiki/w/Note_Block 音符盒] 音调可用于任何音效(某些音效会加速)。 使用 ''msound'' 则会在列车经过控制牌时的每一刻播放一次声音。 使用 ''sound in'' 则仅向列车上...")
Line 22: Line 22:
=== 第二行 ===
=== 第二行 ===


<div lang="en" dir="ltr" class="mw-content-ltr">
''sound'',后跟可选的音调和音量。
''sound'', followed up by an optional pitch and volume.
默认值为 1.0。音量范围在 0.0 1.0 之间。
Values of 1.0 are the defaults.The range of volume is from 0.0 to 1.0.
音符盒中的音调范围在 0.5(2^(-12/12))到 2.0(2^(12/12))之间。
The range of pitch in note_block is from 0.5 (2^(-12/12) ) to 2.0 (2^(12/12) )
音调值的完整列表可在 Minecraft Wiki 上找到: [https://minecraft.wiki/w/Note_Block 音符盒]
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)
使用 ''msound'' 则会在列车经过控制牌时的每一刻播放一次声音。
Use ''msound'' to play the sound every tick while a train is moving on top of it.
使用 ''sound in'' 则仅向列车上的乘客播放声音。
Use ''sound in'' to play the sound only to player passengers of the train.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
=== 第三行和第四行 ===
=== Third and fourth lines ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
需要播放的声音名称。两行连接在一起,以便可以设置更长的声音名称。例如,你可以在第三行输入 'block.beacon.',在第四行输入 'deactivate',来播放 'block.beacon.deactivate' 声音效果。
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
可以在 Minecraft Wiki 上找到声音名称的完整列表: [https://minecraft.wiki/w/Sounds.json/Java_Edition_values Sounds.json/Java Edition values] https://www.digminecraft.com/lists/sound_list_pc.php
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
</div>

Revision as of 16:58, 28 December 2025

Other languages:

介紹

聲音牌可以播放聲音效果。指定要播放的聲音名稱,當列車經過時會播放指定的聲音。

語法

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 則僅向列車上的乘客播放聲音。


第三行和第四行

需要播放的聲音名稱。兩行連接在一起,以便可以設置更長的聲音名稱。例如,你可以在第三行輸入 'block.beacon.',在第四行輸入 'deactivate',來播放 'block.beacon.deactivate' 聲音效果。

可以在 Minecraft Wiki 上找到聲音名稱的完整列表: Sounds.json/Java Edition valueshttps://www.digminecraft.com/lists/sound_list_pc.php