見出し画像

Minecraft統合版で時を止めるコマンド紹介

初投稿、Youtubeでこのコマンドを紹介しようとしたが長すぎたのでnoteでまとめることに、

今回紹介するコマンドは「時を止める」コマンド、これを使うと、プレイヤーの移動やカメラ操作などができなくなり、その他mobの動きも止まります。


始める前に

すでに完成済みのmcstructureファイルがあるので配布します、PCやスマホの方はどうぞ。
※常識の範囲内で使ってください

Youtubeも見てくれたら嬉しいです
TikTokも見てくれたら更にうれしいです

以下のコマンドは画像からGoogleレンズで文字起こしをしているので、間違っている場所などがある可能性があります。(一応すべて確かめましたので極めて稀ですが)
ミスなど発見次第コメントで教えてくださると幸いです。

コマンドを間違えて移動やカメラ操作ができなくなった場合は以下のコマンドを実行してください。
inputpermission set @a camera enabled
inputpermission set @a movement enabled

下準備

1.画像の様にコマンドブロックを設置


2.コマンドを実行する

チャット欄:/scoreboard objectives add dio dummy dio
チャット欄:/gamerule commandblockoutput false

これで下準備は終わりです


左下から右上へと紹介していきます

一列目

inputpermission set @a[tag=!tokidome] movement enabled
設定:反復、デフォルト
inputpermission set @a[tag=tokidome] movement disabled
設定:チェーン、デフォルト
camera @a[tag=tokidome,tag=!jotaro] fade time 0.1 0.1 0.1
設定:チェーン、デフォルト
inputpermission set @a[tag=!tokidome] camera enabled
設定:チェーン、デフォルト
inputpermission set @a[tag=tokidome] camera disabled
設定:チェーン、デフォルト
effect @e[tag=the_world] invisibility 1 1 true
設定:チェーン、デフォルト
effect @e[tag=tokidome] weakness 1 255 true
設定:チェーン、デフォルト
effect @e[tag=tokidome] mining_fatigue 1 255 true
設定:チェーン、デフォルト

二列目

execute as @e [hasitem={item=clock,location=slot.weapon.mainhand},tag=dio] at @s if entity @s [y=~1.4,dx=0] unless entity @s [y=~1.5,dx=0] run tag @s add the_world
設定:反復、デフォルト
effect @e blindness 1 0 true
設定:チェーン、条件付き
execute as @a at @s run playsound block.bell.hit @a ~~~ 1 0.5
設定:チェーン、条件付き
tag @e[tag=!dio] add tokidome
設定:チェーン、条件付き
execute as @a[scores={dio=..10}] at @s as @e[tag=!dio] at @s run tp ^^^
設定:チェーン、デフォルト

三行目

execute as @a[tag=the_world] at @s run scoreboard players add @s dio 1
設定:反復、ティックの遅延:20、最初のティックで実行:OFF
execute as @a[scores={dio=9}] at @s run tag @e remove tokidome
設定:チェーン、デフォルト
execute as @a[scores={dio=9}] at @s run tag @e remove the_world
設定:チェーン、デフォルト
execute as @a[scores={dio=9..}] at @s run scoreboard players reset @s dio
設定:チェーン、デフォルト
execute as @a at @s run playsound block.bell.hit @a ~~~ 1 1
設定:チェーン、条件付き
execute as @a[tag=the_world] at @s run playsound block.click @a ~~~ 1 0.5
設定:チェーン、デフォルト

使い方

チャット欄:/tag @s add dio

時止めを無効化し、時止めを発動できるようにしたいエンティティに付与するタグです。

チャット欄:/tag @s add jotaro

このタグを付与すると、時止めは無効化されませんが、目の前が真っ暗になることはなくなります(DIO戦初期の承太郎みたいな)


「dio」というタグを付けた状態で、時計を持ってしゃがむと、周りの時間が止まります。

時止め中は、発動者には敵モブのターゲットを外すための透明化が付与されますが、これが嫌な方は一列目の6番目のコマンドブロックを削除してください。今回はハイDIOと同じ9秒に設定しましたが、全盛期のスタープラチナの5秒などに変更したい場合は、三列目の2~4番目の「9」の部分をお好みの数字に変更してください。

この記事が気に入ったらサポートをしてみませんか?