akon1248

Untitled

Sep 9th, 2019 (edited)
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. options:
  2. raidx: -511
  3. raidy: 6
  4. raidz: -373
  5. raidworld: world
  6. raidspawnmessage: レイドボスが出現した
  7. raidkillmessage: レイドボスが討伐された
  8. raidcheckmessagenotspawn: レイドボスは出現していません。 あと$tで出現します。
  9. raidcheckmessagespawned: レイドボスは出現しています。まだ討伐されていません。
  10. on load:
  11. {nextraidspawntime} is not set
  12. set {nextraidspawntime} to unix timestamp of now+1800
  13. function getPeriodFromSeconds(arg: number) :: string:
  14. set {_totalseconds} to floor({_arg})
  15. set {_days} to floor({_totalseconds}/86400)
  16. set {_seconds} to {_totalseconds}-86400*{_days}
  17. set {_hours} to floor({_seconds}/3600)
  18. set {_seconds} to {_seconds}-3600*{_hours}
  19. set {_minutes} to floor({_seconds}/60)
  20. set {_seconds} to {_seconds}-60*{_minutes}
  21. return "%{_days}%日 %{_hours}%時間 %{_minutes}%分 %{_seconds}%秒"
  22. every tick:
  23. {nextraidspawntime} > 0
  24. unix timestamp of now >= {nextraidspawntime}
  25. set {nextraidspawntime} to -1
  26. spawn a wither at location at {@raidx}, {@raidy}, {@raidz} in world "{@raidworld}"
  27. 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
  28. broadcast "{@raidspawnmessage}"
  29. on death:
  30. victim is not a player
  31. victim has scoreboard tag "raid"
  32. {nextraidspawntime} < 0
  33. broadcast "{@raidkillmessage}"
  34. set {nextraidspawntime} to unix timestamp of now+1800
  35. command /checkraidspawn:
  36. trigger:
  37. if {nextraidspawntime} is -1:
  38. send "{@raidcheckmessagespawned}"
  39. else:
  40. set {_message} to "{@raidcheckmessagenotspawn}"
  41. replace "$t" in {_message} with getPeriodFromSeconds({nextraidspawntime}-unix timestamp of now)
  42. send {_message}
Advertisement
Add Comment
Please, Sign In to add comment