bedwars warp feature.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #----------------------------------------
  2. #************* don´t delete *************
  3. #----------------------------------------
  4. %loadEvent air-click;
  5. %loadEvent block-click;
  6. %addList all;
  7. %addListElement all %getQuestLeader;;
  8. %addList blueteam;
  9. %addListElement blueteam %getQuestLeader;;
  10. %setVar bluespawnloc games:-67:45:262;
  11. @checkgame
  12. %wait;
  13. %if $event == air-click || $event == block-click && $player-item-type == SULPHUR goto warphome;
  14. %if $event == air-click || $event == block-click && $player-item-type == GLOWSTONE_DUST goto cancelwarphome;
  15. %goto checkgame;
  16. @warphome
  17. %setItemInMainHand $player-name GLOWSTONE_DUST;
  18. %playeffect $player-loc CLOUD 50 1;
  19. %sgoto 20 warphome1;
  20. %goto playwarphomesound;
  21. @warphome1
  22. %if %distance %getPlayerLoc $player-name; $player-loc; >= 2 goto cancelwarphome;
  23. %playeffect $player-loc CLOUD 500 1;
  24. %sgoto 20 warphome2;
  25. %goto playwarphomesound;
  26. @warphome2
  27. %if %distance %getPlayerLoc $player-name; $player-loc; >= 2 goto cancelwarphome;
  28. %playeffect $player-loc CLOUD 5000 1;
  29. %sgoto 0 playwarphomesound;
  30. %goto teleporthome;
  31. @playwarphomesound
  32. %setVar i 0;
  33. @playwarphomesound2
  34. %playsound %getPlayerLoc %getListElementAt all $i;; BLOCK_NOTE_BASS;
  35. %setVar i %add $i 1;;
  36. %if $i < %getListSize all; goto playwarphomesound2;
  37. %goto checkgame;
  38. @teleporthome
  39. %if %checkForListElement blueteam $player-name; == true goto teleportbluebed;
  40. %if %checkForListElement redteam $player-name; == true goto teleportredbed;
  41. %if %checkForListElement yellowteam $player-name; == true goto teleportyellowbed;
  42. %if %checkForListElement greenteam $player-name; == true goto teleportgreenbed;
  43. %if %checkForListElement blackteam $player-name; == true goto teleportblackbed;
  44. %if %checkForListElement whiteteam $player-name; == true goto teleportwhitebed;
  45. %if %checkForListElement cyanteam $player-name; == true goto teleportcyanbed;
  46. %if %checkForListElement purpleteam $player-name; == true goto teleportpurplebed;
  47. %goto checkgame;
  48. @teleportbluebed
  49. %setVar color blue;
  50. %goto teleporthome2;
  51. @teleportredbed
  52. %setVar color red;
  53. %goto teleporthome2;
  54. @teleportyellowbed
  55. %setVar color yellow;
  56. %goto teleporthome2;
  57. @teleportgreenbed
  58. %setVar color green;
  59. %goto teleporthome2;
  60. @teleportblackbed
  61. %setVar color black;
  62. %goto teleporthome2;
  63. @teleportwhitebed
  64. %setVar color white;
  65. %goto teleporthome2;
  66. @teleportcyanbed
  67. %setVar color cyan;
  68. %goto teleporthome2;
  69. @teleportpurplebed
  70. %setVar color purple;
  71. %goto teleporthome2;
  72. @teleporthome2
  73. %teleportPlayer $player-name %getVar %concat $color spawnloc;;;
  74. %goto checkgame;
  75. @cancelwarphome
  76. %setItemInMainHand $player-name SULPHUR;
  77. %goto checkgame;