2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

マインクラフトコマンド紹介 #4

Posted at

#始めに
2020-04-22_11.29.51.png
マインクラフターのムー#です!今日のコマンドは前回と同じように、簡単に組めるコマンドです!初心者の方も簡単にできると思います。

##今日のコマンド
今日のコマンドはRPGの中で出てくる「賢者の石」をマイクラで再現しました
実際に使ってみると…
2020-04-22_11.33.29.png
2020-04-22_11.33.36.png
2020-04-20_12.04.08.png
この様にダメージを受けた状態でSHIFTキーでしゃがむと体力が超回復するアイテムです!

###コマンド解説

今日のコマンドは前回よりも少ない5つのコマンドで全体を動かしています2020-04-22_11.30.25.png

テキストで入力するコマンド
・/scoreboard objectives add qat dummy
・/scoreboard objectives add shift minecraft.custom:minecraft.sneak_time
・/give @p minecraft:quartz{display:{Name:'{"text":"賢者の石"}'},ItemName:qat} 1

コマンドブロックに入力するコマンド
1.execute as @a[scores={shift=40..,qat=1}] at @s run summon minecraft:area_effect_cloud ~ ~1 ~ {Particle:"end_rod",Radius:2f,Duration:10,Effects:[{Id:10b,Amplifier:10b,Duration:30,ShowParticles:0b}]}

2.execute as @p[scores={shift=40..}] at @s run playsound minecraft:entity.arrow.hit_player master @p[scores={shift=1..qat=1}] ~ ~ ~ 100 2

3.scoreboard players set @a[scores={qat=1}] qat 0

4.scoreboard players set @a[scores={shift=40..}] shift 0

5.execute as @a[nbt={SelectedItem:{tag:{ItemName:qat}}}] run scoreboard players set @s qat 1

####最後に
いかがだったでしょうか今日のコマンド自分的にはかなりいい感じのバランスに仕上がったので皆さんぜひ使ってみてください!それでは

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?