About
位置 (-1920,8,-159)
呼び出し元 毎tick実行するコマンド群10
白魔導士のスキルの1つであるケアルを実行する。
コマンド群
No. | コマンド |
---|---|
1 | /execute @a[score_ActivatedSkill_min=4200,score_ActivatedSkill=4209] ~ ~ ~ /playsound entity.experience_orb.pickup master @a[r=16] ~ ~ ~ 1 2 0 |
2 | /execute @a[score_ActivatedSkill_min=4200,score_ActivatedSkill=4209] ~ ~ ~ /scoreboard players operation @a[c=1] TargetCheck = @a[c=1] ActivatedSkill |
3 | /execute @a[score_ActivatedSkill_min=4200,score_ActivatedSkill=4209,tag=Sneaking] ~ ~ ~ /scoreboard players operation @a[r=15] TargetCheck > @a[c=1] TargetCheck |
4 | /scoreboard players add @a[score_TargetCheck_min=4200,score_TargetCheck=4200] HealCount 4 |
5 | /scoreboard players add @a[score_TargetCheck_min=4201,score_TargetCheck=4201] HealCount 8 |
6 | /scoreboard players add @a[score_TargetCheck_min=4202,score_TargetCheck=4202] HealCount 16 |
7 | /scoreboard players add @a[score_TargetCheck_min=4203,score_TargetCheck=4203] HealCount 24 |
8 | /scoreboard players add @a[score_TargetCheck_min=4204,score_TargetCheck=4209] HealCount 40 |
9 | /execute @a[score_TargetCheck_min=4200,score_TargetCheck=4209] ~ ~ ~ /particle heart ~ ~1 ~ 0.5 0.5 0.5 0 30 force |
10 | /scoreboard players reset @a[score_TargetCheck_min=0] TargetCheck |
詳細
AcitavatedSkill
が4200 ~ 4209であるすべてのプレイヤーに対して、以下の事柄を実行- 対象プレイヤーから半径16m以内のすべてのプレイヤーに、効果音を鳴らす
TargetCheck
にActivatedSkill
を代入Sneaking
を持っている対象プレイヤーから、半径15m以内のプレイヤーのTargetCheck
が対象プレイヤーのTargetCheck
よりも小さいとき、それを代入
TargetCheck
の値によって、異なる値をHealCount
に足しこむ (TargetCheckとHealCountについてを参照)TargetCheck
が4200 ~ 4209であるすべてのプレイヤーの座標上に、パーティクルを表示TargetCheck
が0以上であるすべてのプレイヤーのTargetCheck
を0に設定
TargetCheckとHealCountについて
TargetCheck | HealCount |
---|---|
4200 | 4 |
4201 | 8 |
4202 | 16 |
4203 | 24 |
4204 ~ 4209 | 40 |