About
位置 (-1920,10,-166)
呼び出し元 毎tick実行するコマンド群10
狩人のスキルの1つであるレーダーヴィジョンを実行する。なお、RadarVisionのカウントダウン処理は時間経過、レーダーヴィジョンの終了処理はレーダーヴィジョン終了処理でそれぞれ行われる。
コマンド群
| No. | コマンド | 状態 |
|---|---|---|
| 1 | /scoreboard players tag @a[score_ActivatedSkill_min=3050,score_ActivatedSkill=3059] add RadarStart | |
| 2 | /scoreboard players set @a[score_ActivatedSkill_min=3050,score_ActivatedSkill=3050] RadarVision 2 | |
| 3 | /scoreboard players set @a[score_ActivatedSkill_min=3051,score_ActivatedSkill=3059] RadarVision 5 | |
| 4 | /scoreboard players add #RadarSiteCount RadarSyncCount 1 | |
| 5 | /scoreboard players operation @a[tag=RadarStart,c=1] RadarSyncCount = #RadarSiteCount RadarSyncCount | |
| 6 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /summon ArmorStand ~ ~ ~ {Invulnerable:true, Small:true, NoGravity:true, NoBasePlate:true, Invisible:true, DisabledSlots:31, Pose:{Body:[180f,0f,0f],LeftLeg:[180f,0f,-10f],RightLeg:[180f,0f,10f]}, CustomName:”レーダーサイト”, CustomNameVisible:true, ArmorItems:[{},{},{},{id:”minecraft:beacon”,Count:0b,Damage:0s}], Tags:[PreRadarSite,RadarSite,CooldownRequired,TypeChecked], PortalCooldown:200} | |
| 7 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /tp @e[dx=0,tag=PreRadarSite,c=1] @a[c=1] | |
| 8 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /scoreboard players operation @e[dx=0,tag=PreRadarSite,c=1] RadarSyncCount = @a[c=1] RadarSyncCount | |
| 9 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /scoreboard players tag @e[dx=0,tag=PreRadarSite,c=1] remove PreRadarSite | |
| 10 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /scoreboard players operation @a[c=1] RadarAreaCheck = @a[c=1] USBDimension | |
| 11 | /effect @a[tag=RadarStart,score_RadarSyncCount_min=1] minecraft:water_breathing 30 100 true | |
| 12 | /effect @a[tag=RadarStart,score_RadarSyncCount_min=1] minecraft:night_vision 30 100 true | |
| 13 | /execute @a[tag=RadarStart,score_RadarSyncCount_min=1] ~ ~ ~ /playsound minecraft:entity.zombie_villager.converted master @a[r=16] ~ ~ ~ 1 0.78 0 | |
| 14 | /gamemode spectator @a[tag=RadarStart,score_RadarSyncCount_min=1] | |
| 15 | /scoreboard players tag @a[tag=RadarStart,score_RadarSyncCount_min=1] remove RadarStart | |
| 16 | /testfor @a[tag=RadarStart] | |
| 17 | /clone -1920 ~ ~ -1920 ~ ~ -1920 ~ ~ filtered force minecraft:command_block 5 ###リピート | 条件付き |
詳細
ActivatedSkillが3050 ~ 3059であるすべてのプレイヤーにRadarStartを付与ActivatedSkillが3050であるすべてのプレイヤーのRaderVisionを2に設定ActivatedSkillが3051 ~ 3059であるすべてのプレイヤーのRaderVisionを5に設定RadarSyncCountの#RadarSiteCountに1を足し、RadarStartを持つプレイヤーのRadarSyncCountに代入RadarStartを持ち、RadarSyncCountが1以上であるプレイヤーを対象として、以下の事柄を実行- 対象プレイヤーの座標上にレーダーサイト(
PreRadarSiteを持つ)を召喚し、対象プレイヤーと同じ方向を向かせる - 対象プレイヤーと同座標にある
PreRadarSiteを持つレーダーサイトのRadatSyncCountに、対象プレイヤーのRadatSyncCountを代入 - 対象プレイヤーの
RadarAreaCheckに、対象プレイヤーのUSBDimensionを代入 - 対象プレイヤーに、水中呼吸Lv.99と暗視Lv.99をそれぞれ30秒間付与
- 対象プレイヤーから半径16m以内のすべてのプレイヤーに、効果音を鳴らす
- 対象プレイヤーをスペクテイターモードに変更
- 対象プレイヤーから
RadarStartを削除
- 対象プレイヤーの座標上にレーダーサイト(
RadarStartを持つプレイヤーが存在したとき、レーダーヴィジョン実行を再び1から実行
レーダーサイト
/summon ArmorStand ~ ~ ~ {Invulnerable:true, Small:true, NoGravity:true, NoBasePlate:true, Invisible:true, DisabledSlots:31, Pose:{Body:[180f,0f,0f],LeftLeg:[180f,0f,-10f],RightLeg:[180f,0f,10f]}, CustomName:"レーダーサイト", CustomNameVisible:true, ArmorItems:[{},{},{},{id:"minecraft:beacon",Count:0b,Damage:0s}], Tags:[PreRadarSite,RadarSite,CooldownRequired,TypeChecked], PortalCooldown:200}
| Name | レーダーサイト |
| Type | ArmorStand |
| Tags | PreRadarSite,RadarSite,CooldownRequired,TypeChecked |
| ArmorItems | {},{},{},{id:”minecraft:beacon“,Count:0b,Damage:0s} |