halma_map2.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. gamesignloc = minigame.getSignLoc("halmasign2");
  2. mapname = "Sternenhalma";
  3. maxplayers = 3;
  4. minplayers = 2;
  5. ox = 1; //Differenz der Felder in x-Richtung
  6. oz = 2; //Differenz der Felder in z-Richtung
  7. //Mögliche Differenzen in x und z Richtung
  8. possible_move_differences = list.new();
  9. list.add(possible_move_differences, getPair(ox, oz));
  10. list.add(possible_move_differences, getPair(2, 0));
  11. //Ab hier hüpft die Spielfigur
  12. jumping_index = 2;
  13. list.add(possible_move_differences, getPair(2*ox, 2*oz));
  14. list.add(possible_move_differences, getPair(4, 0));
  15. gamesworld = world.getGames();
  16. lobbyspawnloc = loc.new(gamesworld, 1013, 82, 1049);
  17. spawn_loc = loc.new(gamesworld, 4514.5, 97.5, 3019.5);
  18. point_block = material.get("minecraft:glowstone");
  19. basic_block = material.get("minecraft:black_concrete");
  20. red_token = "minecraft:red_banner";
  21. blue_token = "minecraft:light_blue_banner";
  22. green_token = "minecraft:green_banner";
  23. tokens_map = map.new();
  24. map.add(tokens_map, 0, red_token);
  25. map.add(tokens_map, 1, blue_token);
  26. map.add(tokens_map, 2, green_token);
  27. red_token_mat = material.get(red_token);
  28. blue_token_mat = material.get(blue_token);
  29. green_token_mat = material.get(green_token);
  30. tokens_mat_map = map.new();
  31. map.add(tokens_mat_map, 0, red_token_mat);
  32. map.add(tokens_mat_map, 1, blue_token_mat);
  33. map.add(tokens_mat_map, 2, green_token_mat);
  34. tokens_map2 = map.new();
  35. map.add(tokens_map2, red_token_mat, 0);
  36. map.add(tokens_map2, blue_token_mat, 1);
  37. map.add(tokens_map2, green_token_mat, 2);
  38. rotations_map = map.new();
  39. map.add(rotations_map, 0, "0"); //red
  40. map.add(rotations_map, 1, "10"); //blue
  41. map.add(rotations_map, 2, "6"); //green
  42. colors_map = map.new();
  43. map.add(colors_map, 0, "§c");
  44. map.add(colors_map, 1, "§b");
  45. map.add(colors_map, 2, "§a");
  46. north_loc = loc.new(gamesworld, 4514, 97, 3003); //nördlichster punkt
  47. red_start_locs = createFieldNorth(north_loc, ox, oz);
  48. south_loc = loc.new(gamesworld, 4514, 97, 3035); //südlichster punkt
  49. red_aim_locs = createFieldSouth(south_loc, ox, oz);
  50. north_loc = loc.new(gamesworld, 4506, 97, 3019); //nördlichster punkt
  51. blue_start_locs = createFieldNorth(north_loc, ox, oz);
  52. south_loc = loc.new(gamesworld, 4522, 97, 3019); //südlichster punkt
  53. blue_aim_locs = createFieldSouth(south_loc, ox, oz);
  54. north_loc = loc.new(gamesworld, 4522, 97, 3019); //nördlichster punkt
  55. green_start_locs = createFieldNorth(north_loc, ox, oz);
  56. south_loc = loc.new(gamesworld, 4506, 97, 3019); //südlichster punkt
  57. green_aim_locs = createFieldSouth(south_loc, ox, oz);
  58. start_locs = map.new();
  59. map.add(start_locs, 0, red_start_locs);
  60. map.add(start_locs, 1, blue_start_locs);
  61. map.add(start_locs, 2, green_start_locs);
  62. aim_locs = map.new();
  63. map.add(aim_locs, 0, red_aim_locs);
  64. map.add(aim_locs, 1, blue_aim_locs);
  65. map.add(aim_locs, 2, green_aim_locs);
  66. loc = loc.new(gamesworld, 4511, 97, 3013); //von den nördlichsten punkten der westlichste
  67. center_locs = createFieldCenter(loc, ox, oz);