About
位置 (-1920,12,-172)
呼び出し元 毎tick実行するコマンド群9
忍者のスキルの1つである水遁を実行する。
コマンド群
| No. | コマンド |
|---|---|
| 1 | /execute @a[score_ActivatedSkill_min=2020,score_ActivatedSkill=2029] ~ ~ ~ /playsound entity.wolf.pant master @a[r=16] ~ ~ ~ 1 0.5 0 |
| 2 | /execute @a[score_ActivatedSkill_min=2020,score_ActivatedSkill=2029] ~ ~ ~ /scoreboard players operation @a[c=1] TargetCheck = @a[c=1] ActivatedSkill |
| 3 | /execute @a[score_ActivatedSkill_min=2020,score_ActivatedSkill=2029,tag=Sneaking] ~ ~ ~ /scoreboard players operation @a[r=15] TargetCheck > @a[c=1] TargetCheck |
| 4 | /effect @a[score_TargetCheck_min=2020,score_TargetCheck=2029] minecraft:water_breathing 60 0 |
| 5 | /execute @a[score_TargetCheck_min=2020,score_TargetCheck=2029] ~ ~ ~ /particle spell ~ ~1 ~ 0.5 0.5 0.5 0 30 force |
| 6 | /scoreboard players reset @a[score_TargetCheck_min=0] TargetCheck |
詳細
ActivatedSkillが2020 ~ 2029であるプレイヤーを対象として、以下の事柄を実行
- 対象プレイヤーから半径16m以内のすべてのプレイヤーに、効果音を鳴らす
- 対象プレイヤーの
TargetCheckにActivatedSkillを代入 - 対象プレイヤーが
Sneakingを持っているとき、半径15m以内のすべてのプレイヤーのTargetCheckが対象プレイヤーのTargetCheckより小さければ、対象プレイヤーのものを代入 TargetCheckが2020 ~ 2029であるすべてのプレイヤーに、水中呼吸 Lv.1 を60秒間付与TargetCheckが2020 ~ 2029であるすべてのプレイヤーの座標上で、パーティクルを表示TargetCheckが0以上であるすべてのプレイヤーのTargetCheckを0に設定