ragemode_backup.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. %setVar phase 0;
  2. %setVar no-quest-msg true;
  3. %loadEvent player-leave;
  4. %loadEvent player-hurt;
  5. %loadEvent block-break;
  6. %loadEvent block-place;
  7. %addList all;
  8. %addMap all;
  9. %addMap times;
  10. %setVar time %getTime;;
  11. %setVar i %sub %getListSize spawns; 1;;
  12. @maplabel
  13. %addMapElement times %getListELementAt spawns $i; $time;
  14. %if %dec i; >= 0 then goto maplabel;
  15. %loadMenu 0 1 §8Shop;
  16. %setMenuItem 0 0 {id:"minecraft:stone_pressure_plate",Count:1b,tag:{display:{Lore:[0:"§7Setzt eine Mine an deiner momentanen Position.",1:"§rPreis: §a5 Smaragde"],Name:"§eMine"}},Damage:0s};
  17. %setMenuItem 0 1 {id:"minecraft:potion",Count:1b,tag:{HideFlags:35,Potion:"minecraft:swiftness",display:{Lore:[0:"§7Verdopple deine Geschwindigkeit.",1:"§rPreis: §a15 Smaragde"],Name:"§eGeschwindigkeit"}},Damage:0s};
  18. %setMenuItem 0 2 {id:"minecraft:iron_chestplate",Count:1b,tag:{HideFlags:2,display:{Lore:[0:"§7Schützt dich vor Direkttreffern.",1:"§rPreis: §a10 Smaragde"],Name:"§eRüstung"}},Damage:0s};
  19. %setMenuItem 0 3 {id:"minecraft:blaze_rod",Count:1b,tag:{display:{Lore:[0:"§7Töte deine Gegner mit der Hilfe von Gottes Licht.",1:"§rPreis: §a30 Smaragde"],Name:"§eGottes Licht"}},Damage:0s};
  20. %setVars %getQuestleader;;
  21. @lobby
  22. %if %getListSize all; >= 10 then goto fullhouse;
  23. %speak $player-name §cRageMode §eDu befindest dich nun in der §bRageMode §eLobby.;
  24. %command clear $player-name;
  25. %teleportPlayer $player-name $lobby;
  26. %setHealth $player-name 20;
  27. %setHunger $player-name 20;
  28. %setSaturation $player-name 1000000;
  29. %addListElement all $player-name;
  30. %addMapElement all $player-name 0;
  31. %command title $player-name times 20 60 0;
  32. %command title $player-name subtitle {"text":"%getVar mapname;"};
  33. %command title $player-name title {"text":"RageMode","color":"red"};
  34. %sbreset $player-name;
  35. %sbadd $player-name 98 §6RageMode;
  36. %sbadd $player-name 97 §cTeams verboten;
  37. %sbadd $player-name 96 §r;
  38. %sbadd $player-name 95 §eMap;
  39. %sbadd $player-name 94 $mapname;
  40. %goto checkstart;
  41. @fullhouse
  42. %speak $player-name §cRageMode §eDas Spiel ist voll.;
  43. %kick $player-name;
  44. %goto startgame;
  45. @checklobby
  46. %wait;
  47. %if $event == player-join then goto lobby;
  48. %if $event == player-hurt || $event == block-break || $event == block-place then goto cancellobby;
  49. %if $event == player-leave then goto leavelobby;
  50. %goto checklobby;
  51. @cancellobby
  52. %setVar cancel true;
  53. %goto checklobby;
  54. @leavelobby
  55. %sbreset $player-name;
  56. %removeListElement all $player-name;
  57. %removeMapElement all $p;
  58. %teleportPlayer $player-name $lobby;
  59. %kick $player-name;
  60. %command clear $player-name;
  61. %goto checklobby;
  62. @stopstart
  63. %setVar started false;
  64. %speak all §cRageMode Es wird auf weitere Spieler gewartet.;
  65. %goto checklobby;
  66. @checkstart
  67. %if %getListSize all; > 1 && $started != true then goto start20;
  68. %goto checklobby;
  69. @start20
  70. %setVar started true;
  71. %speak all §cRageMode §eDas Spiel startet in §b20 §eSekunden.;
  72. %sgoto 100 start15;
  73. %goto playstartsound;
  74. @start15
  75. %if %getListSize all; < 2 then goto stopstart;
  76. %speak all §cRageMode §eDas Spiel startet in §b15 §eSekunden.;
  77. %sgoto 100 start10;
  78. %goto playstartsound;
  79. @start10
  80. %if %getListSize all; < 2 then goto stopstart;
  81. %speak all §cRageMode §eDas Spiel startet in §b10 §eSekunden.;
  82. %sgoto 100 start5;
  83. %goto playstartsound;
  84. @start5
  85. %if %getListSize all; < 2 then goto stopstart;
  86. %speak all §cRageMode §eDas Spiel startet in §b5 §eSekunden.;
  87. %command title $player-name subtitle {"text":"%getVar mapname;"};
  88. %command title $player-name title {"text":"RageMode","color":"red"};
  89. %sgoto 20 start4;
  90. %goto playstartsound;
  91. @start4
  92. %if %getListSize all; < 2 then goto stopstart;
  93. %speak all §cRageMode §eDas Spiel startet in §b4 §eSekunden.;
  94. %sgoto 20 start3;
  95. %goto playstartsound;
  96. @start3
  97. %if %getListSize all; < 2 then goto stopstart;
  98. %speak all §cRageMode §eDas Spiel startet in §b3 §eSekunden.;
  99. %sgoto 20 start2;
  100. %goto playstartsound;
  101. @start2
  102. %if %getListSize all; < 2 then goto stopstart;
  103. %speak all §cRageMode §eDas Spiel startet in §b2 §eSekunden.;
  104. %sgoto 20 start1;
  105. %goto playstartsound;
  106. @start1
  107. %if %getListSize all; < 2 then goto stopstart;
  108. %speak all §cRageMode §eDas Spiel startet in §b1 §eSekunden.;
  109. %sgoto 20 start0;
  110. %goto playstartsound;
  111. @playstartsound
  112. %setVar i 0;
  113. @playstartsoundlabel
  114. %setVar p %getListElementAt all $i;;
  115. %playsoundPlayer $p %getPlayerLoc $p; BLOCK_NOTE_BASS;
  116. %setVar i %add $i 1;;
  117. %if $i < %getListSize all; then goto playstartsoundlabel;
  118. %goto checklobby;
  119. @start0
  120. %if %getListSize all; < 2 then goto stopstart;
  121. %setVar no-join true;
  122. %setVar phase 1;
  123. %speak all §cRageMode §eDas Spiel läuft.;
  124. %loadEvent player-drop;
  125. %loadEvent inv-click;
  126. %loadEvent item-hit;
  127. %loadEvent item-hit-ground;
  128. %loadEvent air-click;
  129. %setVar starttime %getTime;;
  130. %sbreset all;
  131. %sbadd all 98 §6RageMode;
  132. %sbadd all 97 §aGoal: §f25;
  133. %setVar i 0;
  134. %setVar id 96;
  135. @sblabel1
  136. %setVar p %getListElementAt all $i;;
  137. %sbadd all $id 00 §8$p;
  138. %sbadd $p $id 00 §e$p;
  139. %setVar i %add $i 1;;
  140. %setVar id %sub $id 1;;
  141. %if $i < %getListSize all; then goto sblabel1;
  142. %sbadd all $id §f;
  143. %sbadd all %sub $id 1; Emeralds: §a0;
  144. %setVar i 0;
  145. @transfer
  146. %setVar p %getListElementAt all $i;;
  147. @position
  148. %setVar position %getListElementAt spawns %random 0 %sub %getListSize spawns; 1;;;;
  149. %if %sub %getTime; %getMapValue times $position;; < 5000 then goto position;
  150. %if %getVar %concat $p lastposition;; == $position then goto position;
  151. %setVar %concat $p lastposition; $position;
  152. %teleportPlayer $p $position;
  153. %addMapElement times $position %getTime;;
  154. %playsoundPlayer $p %getPlayerLoc $p; BLOCK_NOTE_HARP;
  155. %playsoundPlayer $p $position BLOCK_NOTE_HARP;
  156. %if %hasFly $p; == false then goto jumpflyremove;
  157. %command fly $p off;
  158. @jumpflyremove
  159. %if %getPlayerGameMode $p; == SURVIVAL then goto jumpgmremove;
  160. %command gamemode SURVIVAL $p;
  161. @jumpgmremove
  162. %giveItemPlayer $p {id:"minecraft:bow",Count:1b,tag:{ench:[0:{lvl:1s,id:51s}],display:{Name:"§eRageBow"}},Damage:0s};
  163. %giveItemPlayer $p {id:"minecraft:iron_sword",Count:1b,tag:{HideFlags:2,display:{Name:"§cRageKnife"}},Damage:0s};
  164. %giveItemPlayer $p {id:"minecraft:iron_axe",Count:1b,tag:{HideFlags:2,display:{Name:"§bCombatAxe"}},Damage:0s};
  165. %giveItemPlayer $p ARROW;
  166. #%giveItemPlayer $p {id:"minecraft:chest",Count:1b,tag:{display:{Name:"§aShop"}},Damage:0s};
  167. %setVar %concat $p kills; 0;
  168. %setVar %concat $p theoretickills; 0;
  169. %setVar %concat $p deaths; 0;
  170. %setVar %concat $p killstreak; 0;
  171. %setVar %concat $p maxkillstreak; 0;
  172. %setVar %concat $p messerkills; 0;
  173. %setVar %concat $p axekills; 0;
  174. %setVar %concat $p emeralds; 0;
  175. %setVar i %add $i 1;;
  176. %if $i < %getListSize all; then goto transfer;
  177. %sgoto 18000 endgame;
  178. @checkgame
  179. %wait;
  180. %if $event == air-click && $action == RIGHT_CLICK_AIR && $player-item-type == CHEST then goto showmenu;
  181. %if $event == air-click && $player-item-type == BOW then setVar cancel false;
  182. %if $event == air-click || $event == block-click && $player-item-type == IRON_AXE then goto shootAxe;
  183. %if $event == item-hit && $item-type == IRON_AXE then goto thrownAxeHit;
  184. %if $event == player-hurt && $player-damage-cause == PROJECTILE && $projectile-type == ARROW then goto bowHit;
  185. %if $event == player-hurt && $player-damage-cause == FALL then setVar cancel true;
  186. %if $event == player-hurt && $sec-player-item-type == IRON_SWORD then goto swordHit;
  187. %if $event == player-hurt && $sec-player-item-type == IRON_AXE then goto axeHit;
  188. %if $event == inv-click && $inv-type == CHEST then goto choosemenu;
  189. %if $event == block-click && $player-item-type == CHEST then goto showmenu;
  190. %if $event == block-place && $block-type == CHEST then goto showmenu;
  191. %if $event == player-hurt || $event == block-break || $event == block-place || $event == inv-click || $event == player-drop then setVar cancel true;
  192. %if $event == item-hit-ground then goto dropaxe;
  193. %if $event == player-leave then goto giveup;
  194. %goto checkgame;
  195. @showmenu
  196. %setVar cancel true;
  197. %openMenu 0 $player-name;
  198. %goto checkgame;
  199. @choosemenu
  200. %if $inv-slot == 0 then goto mine;
  201. %if $inv-slot == 1 then goto speed;
  202. %if $inv-slot == 2 then goto chestplate;
  203. %if $inv-slot == 3 then goto light;
  204. %goto checkgame;
  205. @mine
  206. %setVar cancel true;
  207. %goto checkgame;
  208. @speed
  209. %setVar cancel true;
  210. %goto checkgame;
  211. @chestplate
  212. %setVar cancel true;
  213. %goto checkgame;
  214. @light
  215. %setVar cancel true;
  216. %goto checkgame;
  217. @dropaxe
  218. %setVar loc $item-loc;
  219. %dropItem $loc {id:"minecraft:iron_axe",Count:1b,tag:{HideFlags:2,display:{Name:"§bCombatAxe"}},Damage:0s};
  220. %goto checkgame;
  221. @shootAxe
  222. %shootItem $player-name 1.8 0.4 0.4 0.4 IRON_AXE;
  223. %removeItemPlayer $player-name %getItemInMainHand $player-name;;
  224. %goto checkgame;
  225. @axeHit
  226. %setVar p $player-name;
  227. %setVar sp $sec-player-name;
  228. %removeItemPlayer $sp %getItemInMainHand $sp;;
  229. %goto axeCore;
  230. @thrownAxeHit
  231. %setVar sp $player-name;
  232. %setVar i 0;
  233. @thrownAxeHitLabel
  234. %setVar p %getListElementAt ents $i;;
  235. %if %checkForListElement all $p; == true then goto axeCore;
  236. %if %inc i; < %getListSize ents; then goto thrownAxeHitLabel;
  237. %goto dropaxe;
  238. @axeCore
  239. %setVar action1 axeHit;
  240. %setVar cancel true;
  241. %if $p == $sp then goto checkgame;
  242. %playsoundPlayer $p %getPlayerLoc $p; ENTITY_WITHER_SPAWN;
  243. %speak $sp §cRageMode §eDu hast §8$p §emit der Axt getötet;
  244. %speak $p §cRageMode §eDu wurdest von §8$sp §emit der Axt getötet;
  245. %speak $p §cRageMode §rDeine Kills: §c-25 §rProzent.;
  246. %setVar %concat $p theoretickills; %rounddown %div %mul %getVar %concat $p theoretickills;; 3; 4;;;;
  247. %addMapElement all $p %getVar %concat $p theoretickills;;;
  248. %setVar %concat $sp axekills; %add %getVar %concat $sp axekills;; 1;;
  249. %goto core;
  250. @swordHit
  251. %setVar cancel true;
  252. %setVar p $player-name;
  253. %setVar sp $sec-player-name;
  254. %if $p == $sp then goto checkgame;
  255. %speak $sp §cRageMode §eDu hast §8$p §egetötet;
  256. %speak $p §cRageMode §eDu wurdest von §8$sp §egetötet;
  257. %setVar %concat $sp messerkills; %add %getVar %concat $sp messerkills;; 1;;
  258. %goto core;
  259. @bowHit
  260. %setVar cancel true;
  261. %setVar p $player-name;
  262. %setVar sp $sec-player-name;
  263. %if $p == $sp then goto checkgame;
  264. %speak $sp §cRageMode §eDu hast §8$p §egetötet;
  265. %speak $p §cRageMode §eDu wurdest von §8$sp §egetötet;
  266. %goto core;
  267. @core
  268. %setVar emeraldid %sub 95 %getListSize all;;;
  269. %speak $sp §cRageMode §e+§r1 §aEmerald;
  270. %setVar %concat $sp emeralds; %add %getVar %concat $sp emeralds;; 1;;
  271. %sbadd $sp $emeraldid Emeralds: §a%getVar %concat $sp emeralds;;;
  272. %if $p != %getVar %concat $sp nemesis;; then goto overridenemesis;
  273. %speak $sp §cRageMode §eDu hast deinen §cNemesis Gegner §egetötet;
  274. %setVar %concat $sp kills; %add %getVar %concat $sp kills;; 1;;
  275. %speak $sp §cRageMode §e+§r1 §aEmerald;
  276. %setVar %concat $sp emeralds; %add %getVar %concat $sp emeralds;; 1;;
  277. %sbadd $sp $emeraldid Emeralds: §a%getVar %concat $sp emeralds;;;
  278. @overridenemesis
  279. %setVar %concat $p deaths; %add %getVar %concat $p deaths;; 1;;
  280. %setVar %concat $sp kills; %add %getVar %concat $sp kills;; 1;;
  281. %setVar %concat $sp theoretickills; %add %getVar %concat $sp theoretickills;; 1;;
  282. %addMapElement all $sp %getVar %concat $sp theoretickills;;;
  283. %command clear $p;
  284. %setVar %concat $p nemesis; $sp;
  285. %setVar %concat $sp nemesis; null;
  286. %setVar %concat $p killstreak; 0;
  287. %setVar %concat $sp killstreak; %add %getVar %concat $sp killstreak;; 1;;
  288. %setVar index1 %sub 96 %getIndexOfListElement all $p;;;
  289. %setVar index2 %sub 96 %getIndexOfListElement all $sp;;;
  290. %sortMap all;
  291. %inverseMap all;
  292. %setVar i 0;
  293. %setVar id 96;
  294. @sblabel2
  295. %setVar player %getMapKeyAt all $i;;
  296. %sbadd all $id %getMapValue all $player; §8$player;
  297. %sbadd $player $id %getMapValue all $player; §e$player;
  298. %setVar id %sub $id 1;;
  299. %if %inc i; < %getMapSize all; then goto sblabel2;
  300. %setVar i 0;
  301. %setVar id 96;
  302. @sblabel4
  303. %setVar player %getMapKeyAt all $i;;
  304. %if %getVar %concat $player nemesis;; == null then goto noNemesis;
  305. %setVar nemesisplayer %getVar %concat $player nemesis;;;
  306. %setVar index %sub 96 %getIndexOfMapKey all $nemesisplayer;;;
  307. %sbadd $player $index %getMapValue all $nemesisplayer; §c$nemesisplayer;
  308. @noNemesis
  309. %setVar id %sub $id 1;;
  310. %if %inc i; < %getMapSize all; then goto sblabel4;
  311. %giveItemPlayer $p {id:"minecraft:bow",Count:1b,tag:{ench:[0:{lvl:1s,id:51s}],display:{Name:"§eRageBow"}},Damage:0s};
  312. %giveItemPlayer $p {id:"minecraft:iron_sword",Count:1b,tag:{HideFlags:2,display:{Name:"§cRageKnife"}},Damage:0s};
  313. %giveItemPlayer $p {id:"minecraft:iron_axe",Count:1b,tag:{HideFlags:2,display:{Name:"§bCombatAxe"}},Damage:0s};
  314. %giveItemPlayer $p ARROW;
  315. #%giveItemPlayer $p {id:"minecraft:chest",Count:1b,tag:{display:{Name:"§aShop"}},Damage:0s};
  316. %if %getVar %concat $sp killstreak;; > %getVar %concat $sp maxkillstreak;; then goto newmax;
  317. %goto newposition;
  318. @newmax
  319. %setVar %concat $sp maxkillstreak; %add %getVar %concat $sp maxkillstreak;; 1;;
  320. %goto newposition;
  321. @newposition
  322. %setVar position %getListElementAt spawns %random 0 %sub %getListSize spawns; 1;;;;
  323. %if %sub %getTime; %getMapValue times $position;; < 5000 then goto newposition;
  324. %if %getVar %concat $p lastposition;; == $position then goto newposition;
  325. %setVar %concat $p lastposition; $position;
  326. %teleportPlayer $p $position;
  327. %if $action1 == axeHit then playsoundPlayer $p $position ENTITY_WITHER_SPAWN;
  328. %setVar action1 null;
  329. %addMapElement times $position %getTime;;
  330. %goto checkwin;
  331. @checkwin
  332. %if %getVar %concat $sp theoretickills;; >= 25 then goto win;
  333. %setVar sec-player-name null;
  334. %goto checkgame;
  335. @endgame
  336. %setVar winner %getMapKeyAt all 0;;
  337. %goto wincore;
  338. @win
  339. %setVar winner $sp;
  340. %goto wincore;
  341. @win2
  342. %setVar winner %getListElementAt all 0;;
  343. %goto wincore;
  344. @wincore
  345. %speak all §cRageMode §8$winner §ehat §cRageMode §egewonnen;
  346. %setVar endtime %getTime;;
  347. %goto stats;
  348. @stats
  349. %setVar i 0;
  350. @transferout
  351. %setVar p %getListElementAt all $i;;
  352. %teleportPlayer $p $gamesworldloc;
  353. %command clear $p;
  354. %sbreset $p;
  355. %speak $p §cRageMode §7-= §eStatistik dieses Spiels §7=-;
  356. %setVar time %round %div %sub $endtime $starttime; 1000;;;
  357. %speak $p §cRageMode §7Zeit§8: §e%round %div $time 60;; Minuten %mod $time 60; Sekunden;
  358. %speak $p §cRageMode §7Kills§8: §e%getVar %concat $p kills;;;
  359. %speak $p §cRageMode §7Tode§8: §e%getVar %concat $p deaths;;;
  360. %speak $p §cRageMode §7Killstreak§8: §e%getVar %concat $p maxkillstreak;;;
  361. %speak $p §cRageMode §7Messer-Kills§8: §e%getVar %concat $p messerkills;;;
  362. %speak $p §cRageMode §7Axt-Kills§8: §e%getVar %concat $p axekills;;;
  363. %setVar winningtext §7Gewonnen§8: §eNein;
  364. %if $p != $winner then goto notthewinner;
  365. %setVar winningtext §7Gewonnen§8: §eJa;
  366. @notthewinner
  367. %speak $p §cRageMode $winningtext;
  368. @rank
  369. %if %gGV $p globalrmkills; != null then goto ignorenullkills;
  370. %sGV $p globalrmkills 0;
  371. @ignorenullkills
  372. %sGV $p globalrmkills %add %gGV $p globalrmkills; %getVar %concat $p kills;;;;
  373. %addGlobalMapElement rmranks %getPlayerUUID $p; %gGV $p globalrmkills;;
  374. %getGlobalMap rmranks rmranks;
  375. %sortMap rmranks;
  376. %inverseMap rmranks;
  377. %speak $p §cRageMode §7Dein Rang§8: §e%add %getIndexOfMapKey rmranks %getPlayerUUID $p;; 1;;
  378. %if %inc i; < %getListSize all; then goto transferout;
  379. %removeEntities Item $middleloc $radius;
  380. %endQuest 10;
  381. @giveup
  382. %if $phase == 0 then goto leavelobby;
  383. %setVar p $player-name;
  384. %teleportPlayer $p $gamesworldloc;
  385. %sbreset $p;
  386. %removeListElement all $p;
  387. %removeMapElement all $p;
  388. %kick $p;
  389. %sortMap all;
  390. %inverseMap all;
  391. %setVar i 0;
  392. @sblabel3
  393. %setVar p %getMapKeyAt all $i;;
  394. %setVar id 96;
  395. %sbadd all $id %getMapValue all $p; §8$p;
  396. %sbadd $p $id %getMapValue all $p; §e$p;
  397. %if %getVar %concat $p nemesis;; == null then goto noNemesis2;
  398. %setVar sp %getVar %concat $p nemesis;;;
  399. %setVar index %sub 96 %getIndexOfMapKey all $sp;;;
  400. %sbadd $p $index %getMapValue all $p; §c$sp;
  401. @noNemesis2
  402. %setVar id %sub $id 1;;
  403. %if %inc i; < %getMapSize all; then goto sblabel3;
  404. %sbadd all $id §f;
  405. %sbadd all %sub $id 1; Emeralds: §a0;
  406. %if %getListSize all; <= 1 then goto win2;
  407. %goto checkgame;