- /scoreboard objectives setdisplay sidebar test1
- /give kubotan splash_potion 1 0 {CustomPotionEffects: [{Id: 24,Amplifier: 0,Duration: 6000}],display: {Name: "Hide-and-seek Potion"}}
- /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
ゾンビカウンター関係 †
- /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}
- /scoreboard objectives setdisplay belowName Death
- Deathというスコア名を各プレイヤーの頭の上(名前の下)に表示。
- /scoreboard objectives setdisplay list ゾンビ撃破数
- /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をリセットする。
- /execute @e[rm=3,r=30] ~ ~ ~ /summon lightning_bolt ~ ~
- /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_useMagatama_min=1] ~ ~ ~ execute @e[rm=3,r=30] ~ ~ ~ summon lightning_bolt ~ ~
- useMagatama≧1の時、半径3~30の間に雷を落とす。
- /scoreboard players set @a useMagatama 0