【統合版マイクラ】titlerawのactionbarに制限時間を分と秒に分ける方法 ~新executeコマンド講座・応用編~【Switch/Win10/PE/PS4/Xbox】
#minecraft #コマンド #BE
Minecraft BE/コマンド講座・応用編として、新executeコマンドを使った
「titlerawのactionbarで制限時間を分と秒に分けて表示するコマンド」について紹介いたします。
~今回の内容~
0:00 オープニング
0:38 前説
1:17 前準備
2:51 actionbar
6:38 0~9の時に2桁表示にする方法
8:49 カウントダウン
9:36 制限時間が0になった時にコマンドを実行する方法
11:10 エンディング
11:42 まとめ
**********
【VOICEVOX:ずんだもん】
・VOICEVOX
https://voicevox.hiroshiba.jp
・ずんだもん立ち絵素材(坂本アヒル様)
https://seiga.nicovideo.jp/seiga/im10788496
**********
----- コマンド -----
・スコアボードの準備
/scoreboard objectives add timer dummy
・スコアボードに数値を入れる
scoreboard players set time timer 36000
scoreboard players set dmin timer 1200
scoreboard players set dsec timer 60
----------
・コマンドブロック
・actionbarに表示(先頭はリピートのコマンドブロック・その後はチェーンでティックの遅延はなし)
scoreboard players operation min timer = time timer
scoreboard players operation sec timer = time timer
scoreboard players operation min timer /= dmin timer
scoreboard players operation sec timer /= dtick timer
scoreboard players operation sec timer %= dsec timer
execute if score sec timer matches ..9 run titleraw @a actionbar {"rawtext":[{"text":"§r制限時間§b【"},{"score":{"name":"min","objective":"timer"}},{"text":":0"},{"score":{"name":"sec","objective":"timer"}},{"text":"】"}]}
execute unless score sec timer matches ..9 run titleraw @a actionbar {"rawtext":[{"text":"§r制限時間§b【"},{"score":{"name":"min","objective":"timer"}},{"text":":"},{"score":{"name":"sec","objective":"timer"}},{"text":"】"}]}
・カウントダウン(リピートのコマンドブロック・ティックの遅延なし)
scoreboard players remove time timer 1
・制限時間が0になったら実行するコマンド(先頭はリピートのコマンドブロック・その後はチェーンでティックの遅延なし)
execute if score time timer matches ..0 run kill @a
execute if score time timer matches ..0 run setblock 19 41 11 air
execute if score time timer matches ..0 run scoreboard players set time timer 36000
----------
・前回の動画はコチラ
https://youtu.be/NjrXIRPmm_Y
・新executeコマンド~asやatなどのサブコマンドに関する内容~
https://youtu.be/VRqd4yakEOc
・新executeコマンド~ifやunlessの条件付きサブコマンドに関する内容~
https://youtu.be/0hCh4qMGxFI
・新executeコマンド~rotatedやfacingなどのサブコマンドに関する内容~
https://youtu.be/S0MYIlvOVYw
・twitter
https://twitter.com/dolight_mishiyu
~コマンド講座~BTU(Better Together Update)に向けて~の再生リストはコチラ~
https://www.youtube.com/playlist?list=PLzQPH1XxmIf8RR5Bv4pYORINqpeAAwXyX
~新executeコマンドの基礎と応用編まとめの再生リストはコチラ~
https://youtube.com/playlist?list=PLzQPH1XxmIf81ErokAc67I0rHKFayWWQx
~マインクラフトのアップデート情報の再生リストはコチラ~
https://www.youtube.com/playlist?list=PLzQPH1XxmIf8yO7SYbhIOr5EotXA3Y_W9
~Extra tag player addonについての再生リストはコチラ~
https://youtube.com/playlist?list=PLzQPH1XxmIf-C3GrIkSbmS9K1nMOG6rYw
Other Videos By ドライトのゲーム実況ちゃんねるン.
Other Statistics
Minecraft Statistics For ドライトのゲーム実況ちゃんねるン.
At present, ドライトのゲーム実況ちゃんねるン. has 33,477,784 views spread across 3,945 videos for Minecraft, and roughly 43 days worth of Minecraft videos were uploaded to his channel. This makes up 66.85% of the content that ドライトのゲーム実況ちゃんねるン. has uploaded to YouTube.