12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- gamesignsmap = getScriptVar("gamesigns");
- gamesignloc = map.get(gamesignsmap, "halmasign2");
- mapname = "Sternenhalma";
- maxplayers = 3;
- minplayers = 2;
- ox = 1; //Differenz der Felder in x-Richtung
- oz = 2; //Differenz der Felder in z-Richtung
- //Mögliche Differenzen in x und z Richtung
- possible_move_differences = list.new();
- list.add(possible_move_differences, getPair(ox, oz));
- list.add(possible_move_differences, getPair(2, 0));
- //Ab hier hüpft die Spielfigur
- jumping_index = 2;
- list.add(possible_move_differences, getPair(2*ox, 2*oz));
- list.add(possible_move_differences, getPair(4, 0));
- gamesworld = world.get("games");
- lobbyspawnloc = loc.new(gamesworld, 1013, 82, 1049);
- spawn_loc = loc.new(gamesworld, 4514.5, 97.5, 3019.5);
- point_block = "minecraft:glowstone";
- basic_block = "minecraft:black_concrete";
- red_token = "minecraft:red_banner";
- blue_token = "minecraft:light_blue_banner";
- green_token = "minecraft:green_banner";
- tokens_map = map.new();
- map.add(tokens_map, 0, red_token);
- map.add(tokens_map, 1, blue_token);
- map.add(tokens_map, 2, green_token);
- tokens_map2 = map.new();
- map.add(tokens_map2, red_token, 0);
- map.add(tokens_map2, blue_token, 1);
- map.add(tokens_map2, green_token, 2);
- rotations_map = map.new();
- map.add(rotations_map, 0, "0"); //red
- map.add(rotations_map, 1, "10"); //blue
- map.add(rotations_map, 2, "6"); //green
- colors_map = map.new();
- map.add(colors_map, 0, "§c");
- map.add(colors_map, 1, "§b");
- map.add(colors_map, 2, "§a");
- north_loc = loc.new(gamesworld, 4514, 97, 3003); //nördlichster punkt
- red_start_locs = createFieldNorth(north_loc, ox, oz);
- south_loc = loc.new(gamesworld, 4514, 97, 3035); //südlichster punkt
- red_aim_locs = createFieldSouth(south_loc, ox, oz);
- north_loc = loc.new(gamesworld, 4506, 97, 3019); //nördlichster punkt
- blue_start_locs = createFieldNorth(north_loc, ox, oz);
- south_loc = loc.new(gamesworld, 4522, 97, 3019); //südlichster punkt
- blue_aim_locs = createFieldSouth(south_loc, ox, oz);
- north_loc = loc.new(gamesworld, 4522, 97, 3019); //nördlichster punkt
- green_start_locs = createFieldNorth(north_loc, ox, oz);
- south_loc = loc.new(gamesworld, 4506, 97, 3019); //südlichster punkt
- green_aim_locs = createFieldSouth(south_loc, ox, oz);
- start_locs = map.new();
- map.add(start_locs, 0, red_start_locs);
- map.add(start_locs, 1, blue_start_locs);
- map.add(start_locs, 2, green_start_locs);
- aim_locs = map.new();
- map.add(aim_locs, 0, red_aim_locs);
- map.add(aim_locs, 1, blue_aim_locs);
- map.add(aim_locs, 2, green_aim_locs);
- loc = loc.new(gamesworld, 4511, 97, 3013); //von den nördlichsten punkten der westlichste
- center_locs = createFieldCenter(loc, ox, oz);
|