Advertisement
chatasma

lul eggwars

Aug 17th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. EGGWARS
  2. COMPONENTS COMPLETED:
  3. - Initial preperation
  4. - Queue
  5. - Countdown
  6. - 2nd preparation
  7. - Map Reset
  8. - Team Split
  9. - Seeing if beacon is destroyed or not
  10. - Respawns
  11. - 'Non-Respawns'
  12. - Death Messages
  13. - Villager Shop
  14.  
  15. WORK STILL NEEDED TO BE DONE:
  16. - Generators
  17. - Spectator mode
  18. - Queue signs
  19. - Some more I can't think of eggs dee
  20.  
  21.  
  22.  
  23. Note:
  24. ** denotes comment
  25. /* */ denotes command/commands to be done in chat. (like adding teams)
  26.  
  27. /scoreboard players test *Q fegg 4
  28. /scoreboard players test *G fegg 0 0
  29. /tellraw @a "\u00a78\u00bb \u00a7eEggWars \u00a77is starting in \u00a7a10 seconds!"
  30. /playsound minecraft:entity.wither.spawn master @a ~ ~ ~ 1000 0.1
  31. /scoreboard players set *T fegg 1
  32. /scoreboard players set *G fegg 1
  33.  
  34. /scoreboard players test *T fegg 1 200
  35. /scoreboard players add *T fegg 1
  36.  
  37.  
  38. /scoreboard players test *T fegg 140 140
  39. /tellraw @a[team=qegg] "\u00a78\u00bb \u00a7eEggWars \u00a77is starting in \u00a7a3 seconds!"
  40. /playsound minecraft:block.note.pling master @a[team=qegg] ~ ~ ~ 1000 1.3
  41. /scoreboard players test *T fegg 160 160
  42. /tellraw @a[team=qegg] "\u00a78\u00bb \u00a7eEggWars \u00a77is starting in \u00a7a2 seconds!"
  43. /playsound minecraft:block.note.pling master @a[team=qegg] ~ ~ ~ 1000 1.6
  44. /scoreboard players test *T fegg 180 180
  45. /tellraw @a[team=qegg] "\u00a78\u00bb \u00a7eEggWars \u00a77is starting in \u00a7a1 second!"
  46. /playsound minecraft:block.note.pling master @a[team=qegg] ~ ~ ~ 1000 1.8
  47. /scoreboard players test *T fegg 200 200
  48. /tellraw @a[team=qegg] "\u00a78\u00bb \u00a7eEggWars \u00a77is \u00a79preparing"
  49. /playsound entity.player.levelup master @a[team=qegg] ~ ~ ~ 1000 0.1
  50. /blockdata (coords) {auto:1}
  51.  
  52. /blockdata ~ ~ ~ {auto:0}
  53. /scoreboard teams join eggsplit @a[team=qegg]
  54.  
  55. /*
  56. /scoreboard teams add eggsplit
  57. /scoreboard teams option eggsplit color gray
  58. /scoreboard teams option eggsplit collisionRule never
  59. /scoreboard teams option eggsplit friendlyfire false
  60. */
  61.  
  62. /scoreboard players tag @a[tag=pegg] remove pegg
  63. /scoreboard players tag @a[team=eggsplit] add pegg
  64. /minecraft:clear @a[tag=pegg]
  65. /minecraft:gamemode adventure @a[tag=pegg]
  66. /effect @a[tag=pegg] instant_health 1 120 true
  67. /setblock (coords of map reset) {auto:1}
  68. /scoreboard players set *G fegg 2
  69.  
  70. (map reset stuff)
  71. (sends a blockdata to an impulse)
  72.  
  73. /blockdata ~ ~ ~ {auto:0}
  74. /tellraw @a[tag=pegg] "\u00a78\u00bb \u00a77Map \u00a7asuccessfully reset!"
  75. /playsound minecraft:block.note.pling master @a ~ ~ ~ 1000 2
  76. /blockdata (coords of team splitter) {auto:1}
  77.  
  78. /*
  79. /stats the @a[team=eggsplit] to *Split at fegg on a repeat
  80. */
  81.  
  82. /scoreboard players test *Split fegg 1
  83. /scoreboard teams join ered @r[team=eggsplit]
  84. /scoreboard teams join eblue @r[team=eggsplit]
  85. /scoreboard teams join egreen @r[team=eggsplit]
  86. /scoreboard teams join eyellow @r[team=eggsplit]
  87.  
  88. /*
  89. /scoreboard teams add ered
  90. /scoreboard teams option ered color red
  91. /scoreboard teams option ered collisionRule never
  92. /scoreboard teams option ered friendlyfire false
  93. /scoreboard teams add eblue
  94. /scoreboard teams option eblue color blue
  95. /scoreboard teams option eblue collisionRule never
  96. /scoreboard teams option eblue friendlyfire false
  97. /scoreboard teams add egreen
  98. /scoreboard teams option egreen color green
  99. /scoreboard teams option egreen collisionRule never
  100. /scoreboard teams option egreen friendlyfire false
  101. /scoreboard teams add eyellow
  102. /scoreboard teams option eyellow color yellow
  103. /scoreboard teams option eyellow collisionRule never
  104. /scoreboard teams option eyellow friendlyfire false
  105. /scoreboard objectives add BCON dummy
  106. /scoreboard players add *Red BCON 0
  107. /scoreboard players add *Blue BCON 0
  108. /scoreboard players add *Yellow BCON 0
  109. /scoreboard players add *Green BCON 0
  110. */
  111.  
  112. /scoreboard players test *Split fegg 0 0
  113. /blockdata (coords of an imp) {auto:1}
  114. /blockdata (coords of this chain) {auto:0}
  115.  
  116.  
  117. /blockdata ~ ~ ~ {auto:0}
  118.  
  119. **
  120. Set to 1 if chunk load fails, serves as backup basically eggs dee
  121. **
  122.  
  123. /scoreboard players set *Red BCON 1
  124. /scoreboard players set *Blue BCON 1
  125. /scoreboard players set *Yellow BCON 1
  126. /scoreboard players set *Green BCON 1
  127. /minecraft:tp @a[team=ered] (coords)
  128. /minecraft:tp @a[team=eblue] (coords)
  129. /minecraft:tp @a[team=eyellow] (coords)
  130. /minecraft:tp @a[team=egreen] (coords)
  131.  
  132. **
  133. Remember, this gamemode requires the player to be in ADVENTURE MODE
  134. At this point, we must give the player tools that will:
  135. a.) Be able to break the beacon
  136. b.) Break standard blocks (whatever blocks you get to build with)
  137. As this is for another time, I will do this later.
  138. **
  139.  
  140. /scoreboard players set *G fegg 3
  141.  
  142.  
  143. /*
  144. /scoreboard objectives add edie deathCount
  145. /scoreboard objectives add etdie dummy
  146. */
  147.  
  148.  
  149. /scoreboard players test *Red BCON 1
  150. **
  151. lead to RCA chain
  152. **
  153. /scoreboard players tag @a[score_edie_min=1,team=ered] add eresp
  154. /scoreboard players set @a[score_edie_min=1,team=ered] edie 0
  155.  
  156.  
  157. /scoreboard players test *Blue BCON 1
  158. **
  159. lead to RCA chain
  160. **
  161. /scoreboard players tag @a[score_edie_min=1,team=eblue] add eresp
  162. /scoreboard players set @a[score_edie_min=1,team=eblue] edie 0
  163.  
  164.  
  165. /scoreboard players test *Green BCON 1
  166. **
  167. lead to RCA chain
  168. **
  169. /scoreboard players tag @a[score_edie_min=1,team=egreen] add eresp
  170. /scoreboard players set @a[score_edie_min=1,team=egreen] edie 0
  171.  
  172.  
  173. /scoreboard players test *Yellow BCON 1
  174. **
  175. lead to RCA chain
  176. **
  177. /scoreboard players tag @a[score_edie_min=1,team=eyellow] add eresp
  178. /scoreboard players set @a[score_edie_min=1,team=eyellow] edie 0
  179.  
  180.  
  181. /scoreboard players add @a[score_edie_min=1] etdie 1
  182. /scoreboard players set @a[score_etdie_min=2] edie 0
  183. /scoreboard players set @a[score_edie=0,score_etdie_min=1] etdie 0
  184.  
  185.  
  186. /testforblock (coord of red beacon) beacon
  187. comparator
  188. if true: /scoreboard players set *Red BCON 1
  189. if false: /scoreboard players set *Red BCON 0
  190.  
  191. /testforblock (coord of blue beacon) beacon
  192. comparator
  193. if true: /scoreboard players set *Blue BCON 1
  194. if false: /scoreboard players set *Blue BCON 0
  195.  
  196. /testforblock (coord of green beacon) beacon
  197. comparator
  198. if true: /scoreboard players set *Green BCON 1
  199. if false: /scoreboard players set *Green BCON 0
  200.  
  201. /testforblock (coord of yellow beacon) beacon
  202. comparator
  203. if true: /scoreboard players set *Yellow BCON 1
  204. if false: /scoreboard players set *Yellow BCON 0
  205.  
  206.  
  207.  
  208.  
  209. /scoreboard players test *Red BCON 0 0
  210. /scoreboard players tag @a[score_edie_min=1,team=ered] add efail
  211. /scoreboard players set @a[score_edie_min=1,team=ered] edie 0
  212.  
  213. /scoreboard players test *Blue BCON 0 0
  214. /scoreboard players tag @a[score_edie_min=1,team=eblue] add efail
  215. /scoreboard players set @a[score_edie_min=1,team=eblue] edie 0
  216.  
  217. /scoreboard players test *Green BCON 0 0
  218. /scoreboard players tag @a[score_edie_min=1,team=egreen] add efail
  219. /scoreboard players set @a[score_edie_min=1,team=egreen] edie 0
  220.  
  221. /scoreboard players test *Yellow BCON 0 0
  222. /scoreboard players tag @a[score_edie_min=1,team=eyellow] add efail
  223. /scoreboard players set @a[score_edie_min=1,team=eyellow] edie 0
  224.  
  225.  
  226. /minecraft:clear @a[tag=efail]
  227. /scoreboard teams leave @a[tag=efail]
  228. /scoreboard players tag @a[tag=efail] remove pegg
  229. /scoreboard players tag @a[tag=efail] remove efail
  230.  
  231.  
  232. /*
  233. /scoreboard objectives add edd deathCount
  234. /scoreboard objectives add edk playerKillCount
  235. /scoreboard objectives add eisk dummy
  236. */
  237.  
  238. /scoreboard players add @a eisk 0
  239.  
  240. /execute @a[tag=pegg,score_edk_min=1] ~ ~ ~ scoreboard players set @a[tag=pegg,score_edd_min=1] eisk 1
  241. /execute @a[score_eisk_min=1] ~ ~ ~ tellraw @a[tag=pegg] ["",{"text":"\u00a78\u00bb ",},{"selector":"@s"},{"text":" \u00a77has been slain by "},{"selector":"@a[tag=pegg,score_edk_min=1]"}]
  242. /execute @a[score_eisk=0,score_edd_min=1,tag=pegg] ~ ~ ~ tellraw @a[tag=pegg] ["",{"text":"\u00a78\u00bb "},{"selector":"@s"},{"text":" \u00a77died!"}]
  243. /execute @a[score_edd_min=1,tag=pegg] ~ ~ ~ playsound minecraft:entity.blaze.death master @a[tag=pegg] ~ ~ ~ 1000 2
  244. /scoreboard players set @a[score_eisk_min=1] eisk 0
  245. /scoreboard players set @a[score_edd_min=1] edd 0
  246. /scoreboard players set @a[score_edk_min=1] edk 0
  247.  
  248. /*
  249. /scoreboard objectives add etalk stat.talkedToVillager
  250. */
  251.  
  252. **
  253. Summon villagers at da places. (add NoGravity to them to they don't fall during mapreset)
  254. Tag them with eshop
  255. **
  256.  
  257. /execute @e[type=villager,tag=eshop] ~ ~ ~ menu open @a[score_etalk_min=1,r=5] (menuname)
  258. /scoreboard players set @a[score_etalk_min=1] etalk 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement