<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DIO - プログラミングで遊ブログ</title>
	<atom:link href="https://lemon818.com/tag/dio/feed/" rel="self" type="application/rss+xml" />
	<link>https://lemon818.com</link>
	<description>現役システムエンジニアが趣味でプログラミングする自由気ままなブログ</description>
	<lastBuildDate>Mon, 23 May 2022 14:49:38 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>	<item>
		<title>【マイクラ】ザ・ワールド！コマンドで時間を止める方法・Mod不要！</title>
		<link>https://lemon818.com/minecraft_the_world/</link>
		
		<dc:creator><![CDATA[Take]]></dc:creator>
		<pubDate>Fri, 13 May 2022 08:16:20 +0000</pubDate>
				<category><![CDATA[minecraft]]></category>
		<category><![CDATA[DIO]]></category>
		<category><![CDATA[ザワールド]]></category>
		<category><![CDATA[ジョジョ]]></category>
		<category><![CDATA[ジョジョの奇妙な冒険]]></category>
		<category><![CDATA[マイクラ]]></category>
		<category><![CDATA[マインクラフト]]></category>
		<category><![CDATA[世界]]></category>
		<category><![CDATA[停止]]></category>
		<category><![CDATA[固定]]></category>
		<category><![CDATA[時間]]></category>
		<category><![CDATA[空条承太郎]]></category>
		<guid isPermaLink="false">https://lemon818.com/?p=6132</guid>

					<description><![CDATA[Minecraftt でジョジョの奇妙な冒険「DIO」「承太郎」のザ・ワールドがしたい！！！ &#160; どーも、お久しぶりです。Takeです。久々の投稿です。 &#160; この記事で Minecraft で Mod…]]></description>
										<content:encoded><![CDATA[<div class="sc_frame_wrap solid yellow">
<div class="sc_frame "><span style="color: #000000;"><b>Minecraftt でジョジョの奇妙な冒険「DIO」「</b></span><span style="color: #000000;"><b>承太郎」のザ・ワールドがしたい！！！</b></span></div>
</div>
<p>&nbsp;</p>
<p>どーも、お久しぶりです。Takeです。久々の投稿です。</p>
<p>&nbsp;</p>
<p>この記事で<strong> <span style="color: #3366ff;">Minecraft で Mod なし・コマンドだけで時間停止する方法</span></strong>について記述します。</p>
<p>ちょっと難しいかもしれませんが、この記事通りにやれば下記動画みたいに時間停止できます。</p>
<p>★★★ショート動画ですので是非見てください！★★★</p>
<p><a href="https://youtu.be/9rfFF17-rws">https://youtube.com/shorts/9rfFF17-rws</a></p>
<p>&nbsp;</p>
<p>※ 上記動画ではスタンドっぽいのもでてますが、今回の記事では<span style="color: #ff0000;">スタンドを出す方法については記述しません。</span></p>
<p>またこのスタンドは完全に飾りですので、気にしなくて大丈夫です。</p>
<p>今回のマイクラのバージョンは、Minecraft Java版 1.17 ですが、Java版なら問題なく実行できると思います。</p>
<p>&nbsp;</p>
<h2>マイクラでザ・ワールド（時間停止）する方法</h2>
<p>&nbsp;</p>
<p>まずザ・ワールドの動きですが、動作イメージは下記です。</p>
<div class="sc_designlist ol square solid blue">
<ol>
<li>「ザ・ワールド！！！」（かっこいい演出をする！）</li>
<li>5秒の時間計測をスタート！！</li>
<li>5秒間、すべての生き物（エンティティ）の動作を停止</li>
<li>5秒後、時間が動きだし、すべてのエンティティが動き出す</li>
</ol>
</div>
<p>&nbsp;</p>
<h3>「ザ・ワールド！！！」（かっこいい演出をする！）</h3>
<p>&nbsp;</p>
<p>これは「ザ・ワールド！！！」（演出）これは好みだと思います。。</p>
<p>アニメ「ジョジョの奇妙な冒険」を見てなんとなく爆発っぽいイメージがあったので、私は爆発させるイメージにしました。</p>
<p>コマンドはこんな感じです。</p><pre class="crayon-plain-tag">tellraw @a[sort=nearest,limit=1] {"text":"「世界」ツ！！時よ止まれ！","underlined":true}
particle minecraft:explosion_emitter ~ ~ ~ 5 5 5 1 100
playsound minecraft:entity.generic.explode master @a ~ ~ ~</pre><p>
&nbsp;</p>
<p>まず「「世界（ザ・ワールド）」ツ！！時よ止まれ！」って叫んで、爆発します。</p>
<p>これなくてもいいんですが、あったほうがかっこいいです。</p>
<p>&nbsp;</p>
<h3>5秒の時間計測をスタート！！</h3>
<p>&nbsp;</p>
<p>この処理はこんな感じの流れです。</p>
<div class="sc_frame_wrap orange">
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid orange">
<ol>
<li>時間計測スタート！（スコアボードにtimerを登録）</li>
<li>5秒経過するまで待つ（スコアボードのtimerを1ずつ加算）</li>
<li>5秒経過！（スコアボードのtimerをリセット）</li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>まず「ザ・ワールド」開始時にマイクラのスコアボードにtimerを登録します。</p><pre class="crayon-plain-tag">scoreboard objectives add timer dummy</pre><p>
&nbsp;</p>
<p><span>つぎに時間が経過するごとに timerの値をどんどん加算するようにします。</span></p>
<p><span>Minecraft にはゲームティックというものがあり、</span>イメージは Minecraft の時間経過のようなもの1秒間に20回動き続けてるものです。</p>
<p>この<span>ゲームティックが</span>1回処理するたびにtimerを1ずつ足すようにします。</p>
<p>こうすることで1秒間実行し続けることで、timerの値は20になります。</p><pre class="crayon-plain-tag">scoreboard players add @a timer 1</pre><p>
&nbsp;</p>
<p>最後に5秒経過したとき（つまり timer が20×5 = 120になったとき）にtimer の値を削除します。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run scoreboard objectives remove timer</pre><p>
&nbsp;</p>
<h3>5秒間、すべての生き物（エンティティ）の動作を停止</h3>
<p>&nbsp;</p>
<p>時間とすべての生き物（エンティティ）の動作を停止する方法ですが、</p>
<p>さきにコマンドを記述するとこんな感じです。</p><pre class="crayon-plain-tag">execute if score @p timer matches ..99 run gamerule doDaylightCycle false
execute if score @p timer matches ..99 run gamerule doFireTick false
execute if score @p timer matches ..99 run gamerule randomTickSpeed 0
execute if score @p timer matches ..99 run gamerule doMobSpawning false
execute if score @p timer matches ..99 run gamerule doInsomnia false
execute as @e[type=!player] if score @p timer matches ..99 run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}</pre><p>
&nbsp;</p>
<p>「if score @p timer matches ..99」とありますが、これはタイマーが5秒未満の場合に処理するという意味です。</p>
<p>これはマイクラの gamerule の設定を書き換えて、エンティティの動き停止しています。</p>
<div class="sc_frame_wrap orange">
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid orange">
<ol>
<li>gamerule doDaylightCycle false ← マイクラの時間経過を固定</li>
<li>gamerule doFireTick false ← 火の燃え移り停止</li>
<li>gamerule randomTickSpeed 0 ← 植物の成長停止</li>
<li>gamerule doMobSpawning false ← モブのスポーン停止</li>
<li>gamerule doInsomnia false ← ファントムのスポーン停止</li>
<li>execute as @e[type=!player] run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}　 ← エンティティの動き停止</li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>gameruleは大体こんな感じでいけますが、</p>
<p>エンティティの動き停止（execute as @e[type=!player] run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}）について補足します。</p>
<p>この <strong>{NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s} </strong>の部分ですが、</p>
<p>これはエンティティに「重力をなくす」「モブのAI機能をなくす」「<span>エンティティの動き</span>」「ノックバックを無効化する」です。</p>
<p>&nbsp;</p>
<h3>5秒後、時間が動きだし、すべてのエンティティが動き出す</h3>
<p>&nbsp;</p>
<p>5秒たったらまずスコアボードの timer を削除します。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run scoreboard objectives remove timer</pre><p>
&nbsp;</p>
<p>この方法ですが、さきほどの停止した手順の逆をやればOKです。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run gamerule doDaylightCycle true 
execute if score @p timer matches 100.. run gamerule doFireTick true 
execute if score @p timer matches 100.. run amerule randomTickSpeed 3 
execute if score @p timer matches 100.. run gamerule doMobSpawning true 
execute if score @p timer matches 100.. run gamerule doInsomnia true 
execute as @e[type=!player] if score @p timer matches 100.. run data merge entity @s {NoAI:false,NoGravity:false,Motion:[0,0,0],knockback_resistance:0,DeathTime:0s}</pre><p>
&nbsp;</p>
<p>最後にかっこよく「時は動き出す...」と言ってあげましょう！</p><pre class="crayon-plain-tag">tellraw @a[sort=nearest,limit=1] {"text":"時は動き出す","underlined":true}</pre><p>
&nbsp;</p>
<p>これでOK！あとはコマンドブロックで実装しましょう。</p>
<p>&nbsp;</p>
<h2>ザ・ワールドをコマンドブロックで実行する！！</h2>
<p>&nbsp;</p>
<p>最後にマインクラフトで コマンド ブロックでザワールドを実行する方法です。</p>
<p>前章で説明したコマンドを下の表のようにコマンドブロックに書き込めばOKです！</p>
<p>&nbsp;</p>
<table style="border-collapse: collapse; width: 92.053%; height: 1102px;">
<tbody>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">No.</span></td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">コマンドブロックの種類</span></td>
<td style="width: 14.0961%; text-align: center; background-color: #141675; height: 49px;"><span style="color: #ffffff;">条件</span></td>
<td style="width: 55.2611%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">コマンド</span></td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #ffd8c4;">1</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #ffd8c4;">インパルス</td>
<td style="width: 14.0961%; background-color: #ffd8c4; height: 49px; text-align: center;"><span>動力が必要</span></td>
<td style="width: 55.2611%; height: 49px; background-color: #ffd8c4;"><span>gamerule commandBlockOutput false</span></td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">2</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">tellraw @a[sort=nearest,limit=1] {"text":"「世界」ツ！！時よ止まれ！","underlined":true}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">３</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">particle minecraft:explosion_emitter ~ ~ ~ 5 5 5 1 100</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">4</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">playsound minecraft:entity.generic.explode master @a ~ ~ ~</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">5</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">scoreboard objectives remove timer</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">6</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">scoreboard objectives add timer dummy</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #e7cafc;">7</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #e7cafc;">ループ</td>
<td style="width: 14.0961%; background-color: #e7cafc; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #e7cafc;">scoreboard players add @a timer 1</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">8</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doDaylightCycle false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">9</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doFireTick false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">10</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule randomTickSpeed 0</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">11</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doMobSpawning false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">12</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doInsomnia false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">13</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute as @e[type=!player] if score @p timer matches ..99 run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">14</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doDaylightCycle true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">15</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doFireTick true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">16</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule randomTickSpeed 3</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">17</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doMobSpawning true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">18</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doInsomnia true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">19</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute as @e[type=!player] if score @p timer matches 100.. run data merge entity @s {NoAI:false,NoGravity:false,Motion:[0,0,0],knockback_resistance:0,DeathTime:0s}</td>
</tr>
<tr style="height: 73px;">
<td style="width: 6.01545%; text-align: center; height: 73px; background-color: #d6f7d0;">20</td>
<td style="width: 17.5893%; height: 73px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 73px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 73px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run tellraw @a[sort=nearest,limit=1] {"text":"時は動き出す","underlined":true}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">21</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run scoreboard objectives remove timer</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>最後に</h2>
<p>いかがでしたでしょうか？</p>
<p>この記事で<strong> <span style="color: #3366ff;">Minecraft で Mod なし・コマンドだけで時間停止する方法</span></strong>について記述しました。</p>
<p>★ 動画でもこの記事について解説していますのでよければどうぞ！</p>
<p>https://youtu.be/li8MPqxlP1A</p>
<p>&nbsp;</p>
<p>最近YouTube でマイクラの普段動画流してます。</p>
<p>よければチャンネル登録&amp;高評価していただけると嬉しいです。</p>
<p>ではでは。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
