Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- raidx: -511
- raidy: 6
- raidz: -373
- raidworld: world
- raidspawnmessage: レイドボスが出現した
- raidkillmessage: レイドボスが討伐された
- raidcheckmessagenotspawn: レイドボスは出現していません。 あと$tで出現します。
- raidcheckmessagespawned: レイドボスは出現しています。まだ討伐されていません。
- on load:
- {nextraidspawntime} is not set
- set {nextraidspawntime} to unix timestamp of now+1800
- function getPeriodFromSeconds(arg: number) :: string:
- set {_totalseconds} to floor({_arg})
- set {_days} to floor({_totalseconds}/86400)
- set {_seconds} to {_totalseconds}-86400*{_days}
- set {_hours} to floor({_seconds}/3600)
- set {_seconds} to {_seconds}-3600*{_hours}
- set {_minutes} to floor({_seconds}/60)
- set {_seconds} to {_seconds}-60*{_minutes}
- return "%{_days}%日 %{_hours}%時間 %{_minutes}%分 %{_seconds}%秒"
- every tick:
- {nextraidspawntime} > 0
- unix timestamp of now >= {nextraidspawntime}
- set {nextraidspawntime} to -1
- spawn a wither at location at {@raidx}, {@raidy}, {@raidz} in world "{@raidworld}"
- add "{CustomName:""§b[Lv150]ウィザー"",Tags:[""raid""],CustomNameVisible:1,ArmorItems:[{id:""minecraft:diamond_boots"",Count:1b,tag:{AttributeModifiers:[{AttributeName:""generic.maxHealth"",Name:""generic.maxHealth"",Amount:30,Operation:0,UUIDLeast:558747,UUIDMost:827986},{AttributeName:""generic.movementSpeed"",Name:""generic.movementSpeed"",Amount:0.4,Operation:0,UUIDLeast:216255,UUIDMost:80450}],Unbreakable:1,display:{Name:""§bウィザーブーツ""},ench:[{id:0,lvl:10},{id:1,lvl:10},{id:2,lvl:10},{id:3,lvl:10},{id:4,lvl:10},{id:7,lvl:10},{id:8,lvl:10},{id:34,lvl:10},{id:70,lvl:10}]}},{id:""minecraft:iron_leggings"",Count:1b,tag:{HideFlags:7,Unbreakable:1,display:{Name:""§bウィザーレギンス""},ench:[{id:0,lvl:75},{id:1,lvl:100},{id:3,lvl:100},{id:4,lvl:100},{id:7,lvl:100},{id:34,lvl:100},{id:70,lvl:100}]}},{id:""minecraft:diamond_chestplate"",Count:1b,tag:{HideFlags:5,Unbreakable:1,display:{Name:""§bウィザーチェストプレート""},ench:[{id:0,lvl:50},{id:1,lvl:50},{id:3,lvl:50},{id:4,lvl:50},{id:7,lvl:10},{id:34,lvl:50}]}},{id:""minecraft:iron_helmet"",Count:1b,tag:{HideFlags:5,Unbreakable:1,display:{Name:""§bウィザーヘルメット""},ench:[{id:0,lvl:100},{id:1,lvl:100},{id:3,lvl:100},{id:4,lvl:100},{id:5,lvl:100},{id:6,lvl:100},{id:7,lvl:100},{id:34,lvl:1},{id:70,lvl:1}]}}],HandItems:[{id:""minecraft:nether_star"",Count:1b,tag:{display:{Name:""§b世界の星""}}},{id:""minecraft:double_stone_slab"",Damage:2,Count:1b,tag:{display:{Name:""Broken Excalibur""}}}],HandDropChances:[2.0F,0.085F],Attributes:[{Name:generic.maxHealth,Base:1000},{Name:generic.movementSpeed,Base:0.2},{Name:generic.attackDamage,Base:30},{Name:generic.armor,Base:200}],Health:1000.0f}" to nbt of last spawned wither
- broadcast "{@raidspawnmessage}"
- on death:
- victim is not a player
- victim has scoreboard tag "raid"
- {nextraidspawntime} < 0
- broadcast "{@raidkillmessage}"
- set {nextraidspawntime} to unix timestamp of now+1800
- command /checkraidspawn:
- trigger:
- if {nextraidspawntime} is -1:
- send "{@raidcheckmessagespawned}"
- else:
- set {_message} to "{@raidcheckmessagenotspawn}"
- replace "$t" in {_message} with getPeriodFromSeconds({nextraidspawntime}-unix timestamp of now)
- send {_message}
Advertisement
Add Comment
Please, Sign In to add comment