隠れんぼイベント用 の変更点


#author("2017-10-06T22:38:43+09:00","default:gorogoro","gorogoro")
#author("2017-10-06T22:40:02+09:00","default:gorogoro","gorogoro")
-/scoreboard objectives setdisplay sidebar test1
--サイドバー(右)の表示

-/give kubotan splash_potion 1 0 {[[CustomPotionEffects]]: [{Id: 24,Amplifier: 0,Duration: 6000}],display: {Name: "Hide-and-seek Potion"}}
--透明SP

-/give @p minecraft:mob_spawner 1 0 {BlockEntityTag:{SpawnCount:4,SpawnRange:4,MaxNearbyEntities:16,Delay:-20,MaxSpawnDelay:600,MinSpawnDelay:300,RequiredPlayerRange:16,EntityId:Zombie,SpawnData:{id:Zombie},SpawnPotentials:[{Type:Zombie,Weight:1,Properties:{}}]}}
--ゾンビ発生

-/scoreboard objectives add Death deathCount
--死亡回数のカウント

*ゾンビカウンター関係 [#gdfd41d1]
-/scoreboard objectives add ゾンビ撃破数 stat.killEntity.Zombie

-/scoreboard objectives setdisplay sidebar ゾンビ撃破数
--サイドバー(右)の表示

-/scoreboard objectives remove ゾンビ撃破数
--オブジェクト(ゾンビ撃破数)の削除

-/scoreboard players reset @a ゾンビ撃破数
--オブジェクトの値をリセット(コマンドブロックへの入力推奨)

-/summon armor_stand ~ ~2 ~ {CustomName:"dummy",CustomNameVisible:true}
--防具立て(dummy)を作成し、名前を表示。

-/scoreboard objectives setdisplay belowName Death
--Deathというスコア名を各プレイヤーの頭の上(名前の下)に表示。

-/scoreboard objectives setdisplay list ゾンビ撃破数
--TABキーを押した時にゾンビ撃破数をリスト表示。

-/scoreboard players reset @a[deathCheck=1] deathCheck
--プレイヤーが死亡した時、変数deathCheckを0にする。

>
-/scoreboard players add @a[score_deathCheck=1] deathCheck 1
--プレイヤーが死亡した時、変数deathCheckを1増加させる(1→2)
-/scoreboard players reset @a[score_deathCheck=2] ゾンビ撃破数
--deathCheckが2以上のプレイヤーのゾンビ撃破数をリセット(=0)する。
-/scoreboard players add @a[score_deathCheck=2] deathCheck 1
--deathCheckが2以上のプレイヤーのdeathCheckを1増加させる(2→3)
-/scoreboard players reset @a[score_deathCheck_min=3] deathCheck
--deathCount≧3の時、deathCountをリセットする。
-/scoreboard players set @a[score_deathCheck=0] countZombie 0
--deathCheck=0のプレイヤーのcountZombieを0にする。


-/execute @e[rm=3,r=30] ~ ~ ~ /summon lightning_bolt ~ ~ ~
--半径3~30の間に雷を落とす。

>
-/give @a[score_ゾンビ撃破数=1000,score_ゾンビ撃破数_min=1000] emerald 1 {display:{Name:"八尺瓊勾玉",Lore:["捨てると発動"]}}
--1000≦ゾンビ撃破数≦1000のプレイヤーに、「八尺瓊勾玉」を1つ与える。
-/scoreboard players add @a[score_ゾンビ撃破数=1000,score_ゾンビ撃破数_min=1000] ゾンビ撃破数 1
--1000≦ゾンビ撃破数≦1000のプレイヤーのゾンビ撃破数+1

>
-/execute @a[score_useExpBottle_min=1] ~ ~ ~ execute @e[rm=3,r=30] ~ ~ ~ summon lightning_bolt ~ ~ ~
--useExpBottle≧1の時、半径3~30の間に雷を落とす。
-/scoreboard players set @a useExpBottle 0
--useExpBottleを0にする。

>
-/give @a[score_countZombie=1000,score_countZombie_min=1000] exp_bottle 1 {display:{Name:"kubotanの魂",Lore:["投げて発動"]}}
--countZombie=1000のプレイヤーにエンチャントの瓶(名前:kubotanの魂,フレイバーテキスト:投げて発動)を1つ与える。
-/scoreboard players set @a[score_countZombie=1000,score_countZombie_min=1000] countZombie 0
--countZombie=1000のプレイヤーのcountZombieを0にする。