これは Java(ジャバ)ばんの ページです。 とうごうばん(Bedrock)は こちら →
← ぜんぶの コマンドに もどる効果音を再生する/playsound
指定したサウンドを対象プレイヤーへ任意の位置・音量・音程で再生します。
だれが つかえるか
レベル 2 … チートが ON の ワールドか、サーバーの OP(gamemasters)だけ つかえます。
どこで つかえるか
ひとりで あそぶ ワールドでも、みんなで あそぶ サーバーでも つかえます。
かきかた
ここは かきかたを みる ところです。えらんで つくることは できません。 かんたんモード と じょうけんを かさねる では、えらぶだけで つくれます。
ぜんぶで 67 とおり あります。おおいので、はじめの ことばで まとめて あります。おしたら ひらきます。
<sound>67 とおり
- /playsound <sound>
- /playsound <sound> ambient
- /playsound <sound> ambient <targets>
- /playsound <sound> ambient <targets> <pos>
- /playsound <sound> ambient <targets> <pos> <volume>
- /playsound <sound> ambient <targets> <pos> <volume> <pitch>
- /playsound <sound> ambient <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> block
- /playsound <sound> block <targets>
- /playsound <sound> block <targets> <pos>
- /playsound <sound> block <targets> <pos> <volume>
- /playsound <sound> block <targets> <pos> <volume> <pitch>
- /playsound <sound> block <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> hostile
- /playsound <sound> hostile <targets>
- /playsound <sound> hostile <targets> <pos>
- /playsound <sound> hostile <targets> <pos> <volume>
- /playsound <sound> hostile <targets> <pos> <volume> <pitch>
- /playsound <sound> hostile <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> master
- /playsound <sound> master <targets>
- /playsound <sound> master <targets> <pos>
- /playsound <sound> master <targets> <pos> <volume>
- /playsound <sound> master <targets> <pos> <volume> <pitch>
- /playsound <sound> master <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> music
- /playsound <sound> music <targets>
- /playsound <sound> music <targets> <pos>
- /playsound <sound> music <targets> <pos> <volume>
- /playsound <sound> music <targets> <pos> <volume> <pitch>
- /playsound <sound> music <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> neutral
- /playsound <sound> neutral <targets>
- /playsound <sound> neutral <targets> <pos>
- /playsound <sound> neutral <targets> <pos> <volume>
- /playsound <sound> neutral <targets> <pos> <volume> <pitch>
- /playsound <sound> neutral <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> player
- /playsound <sound> player <targets>
- /playsound <sound> player <targets> <pos>
- /playsound <sound> player <targets> <pos> <volume>
- /playsound <sound> player <targets> <pos> <volume> <pitch>
- /playsound <sound> player <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> record
- /playsound <sound> record <targets>
- /playsound <sound> record <targets> <pos>
- /playsound <sound> record <targets> <pos> <volume>
- /playsound <sound> record <targets> <pos> <volume> <pitch>
- /playsound <sound> record <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> ui
- /playsound <sound> ui <targets>
- /playsound <sound> ui <targets> <pos>
- /playsound <sound> ui <targets> <pos> <volume>
- /playsound <sound> ui <targets> <pos> <volume> <pitch>
- /playsound <sound> ui <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> voice
- /playsound <sound> voice <targets>
- /playsound <sound> voice <targets> <pos>
- /playsound <sound> voice <targets> <pos> <volume>
- /playsound <sound> voice <targets> <pos> <volume> <pitch>
- /playsound <sound> voice <targets> <pos> <volume> <pitch> <minVolume>
- /playsound <sound> weather
- /playsound <sound> weather <targets>
- /playsound <sound> weather <targets> <pos>
- /playsound <sound> weather <targets> <pos> <volume>
- /playsound <sound> weather <targets> <pos> <volume> <pitch>
- /playsound <sound> weather <targets> <pos> <volume> <pitch> <minVolume>
くわしい せつめい
音の名前を指定して鳴らします。Java では 2 つめに、設定のどの音量つまみを使うかを master・music・block・hostile・player などから選んで書きます。ここが Bedrock と大きく違うところです。音量を 1 より大きくすると遠くまで届き、音程は 0.5 で低く 2.0 で高くなります。