1
1
package com .solegendary .reignofnether .tutorial ;
2
2
3
- import com .mojang .blaze3d .vertex .PoseStack ;
4
3
import com .solegendary .reignofnether .ReignOfNether ;
5
4
import com .solegendary .reignofnether .building .Building ;
6
5
import com .solegendary .reignofnether .building .BuildingClientEvents ;
@@ -68,20 +67,20 @@ public class TutorialClientEvents {
68
67
69
68
private static final ArrayList <Building > damagedBuildings = new ArrayList <>();
70
69
70
+
71
71
// all these positions are for camera only, actual spawn locations differ slightly on the serverside
72
- private static final Vec3i SPAWN_POS = new Vec3i (-2950 , 0 , -1166 );
73
- public static final Vec3i BUILD_CAM_POS = new Vec3i (-2944 , 0 , -1200 );
74
- public static final Vec3i BUILD_CAPITOL_POS = new Vec3i (-2936 , 67 , -1217 );
75
- private static final Vec3i WOOD_POS = new Vec3i (-2919 , 0 , -1196 );
76
- private static final Vec3i ORE_POS = new Vec3i (-2951 , 0 , -1224 );
77
- private static final Vec3i FOOD_POS = new Vec3i (-2939 , 0 , -1173 );
72
+ private static final Vec3i SPAWN_CAM_POS = new Vec3i (-2960 , 0 , -1156 );
73
+ public static final Vec3i BUILD_CAM_POS = new Vec3i (-2954 , 0 , -1190 );
74
+ private static final Vec3i WOOD_CAM_POS = new Vec3i (-2929 , 0 , -1186 );
75
+ private static final Vec3i ORE_CAM_POS = new Vec3i (-2961 , 0 , -1214 );
76
+ private static final Vec3i FOOD_CAM_POS = new Vec3i (-2949 , 0 , -1163 );
77
+ private static final Vec3i MONSTER_CAM_POS = new Vec3i (-2993 , 64 , -1189 );
78
+ private static final Vec3i BRIDGE_CAM_POS = new Vec3i (-3007 , 0 , -1196 );
79
+ private static final Vec3i ARMY_CAM_POS = new Vec3i (-2973 , 64 , -1150 );
78
80
79
- private static final Vec3i MONSTER_CAMERA_POS = new Vec3i (-2983 , 64 , -1199 );
81
+ public static final Vec3i BUILD_CAPITOL_POS = new Vec3i (-2936 , 67 , -1217 );
80
82
private static final Vec3i MONSTER_BASE_POS = new Vec3i (-3085 , 72 , -1277 );
81
83
82
- private static final Vec3i BRIDGE_POS = new Vec3i (-2997 , 0 , -1206 );
83
- private static final Vec3i ARMY_POS = new Vec3i (-2963 , 64 , -1160 );
84
-
85
84
private static Supplier <Boolean > shouldPauseTicking = () -> false ;
86
85
87
86
private static int helpButtonClicks = 0 ;
@@ -430,7 +429,7 @@ public static void updateStage() {
430
429
progressStageAfterDelay (120 );
431
430
} else if (stageProgress == 1 ) {
432
431
msg ("tutorial.reignofnether.spawn_villagers" );
433
- OrthoviewClientEvents .forceMoveCam (SPAWN_POS , 50 );
432
+ OrthoviewClientEvents .forceMoveCam (SPAWN_CAM_POS , 50 );
434
433
OrthoviewClientEvents .lockCam ();
435
434
nextStageAfterDelay (100 );
436
435
}
@@ -614,7 +613,7 @@ public static void updateStage() {
614
613
progressStageAfterDelay (120 );
615
614
} else if (stageProgress == 1 ) {
616
615
msg ("tutorial.reignofnether.forest" );
617
- OrthoviewClientEvents .forceMoveCam (WOOD_POS , 100 );
616
+ OrthoviewClientEvents .forceMoveCam (WOOD_CAM_POS , 100 );
618
617
progressStageAfterDelay (120 );
619
618
} else if (stageProgress == 2 ) {
620
619
msg ("tutorial.reignofnether.gather_wood" );
@@ -642,7 +641,7 @@ public static void updateStage() {
642
641
progressStageAfterDelay (100 );
643
642
} else if (stageProgress == 1 ) {
644
643
msg ("tutorial.reignofnether.beach_ore" );
645
- OrthoviewClientEvents .forceMoveCam (ORE_POS , 50 );
644
+ OrthoviewClientEvents .forceMoveCam (ORE_CAM_POS , 50 );
646
645
progressStageAfterDelay (120 );
647
646
} else if (stageProgress == 2 ) {
648
647
msg ("tutorial.reignofnether.click_ore" );
@@ -669,7 +668,7 @@ public static void updateStage() {
669
668
msg ("tutorial.reignofnether.gather_food" );
670
669
progressStageAfterDelay (120 );
671
670
} else if (stageProgress == 1 ) {
672
- OrthoviewClientEvents .forceMoveCam (FOOD_POS , 50 );
671
+ OrthoviewClientEvents .forceMoveCam (FOOD_CAM_POS , 50 );
673
672
TutorialServerboundPacket .doServerAction (TutorialAction .SPAWN_ANIMALS );
674
673
msg ("tutorial.reignofnether.pigs" );
675
674
progressStageAfterDelay (140 );
@@ -844,7 +843,7 @@ public static void updateStage() {
844
843
msg ("tutorial.reignofnether.monster_attack" );
845
844
TutorialServerboundPacket .doServerAction (TutorialAction .SET_NIGHT_TIME );
846
845
TutorialServerboundPacket .doServerAction (TutorialAction .SPAWN_MONSTERS_A );
847
- OrthoviewClientEvents .forceMoveCam (MONSTER_CAMERA_POS , 50 );
846
+ OrthoviewClientEvents .forceMoveCam (MONSTER_CAM_POS , 50 );
848
847
progressStageAfterDelay (120 );
849
848
}
850
849
if (stageProgress == 1 ) {
@@ -869,7 +868,7 @@ public static void updateStage() {
869
868
.isEmpty ()) {
870
869
msg ("tutorial.reignofnether.more_incoming" );
871
870
TutorialServerboundPacket .doServerAction (TutorialAction .SPAWN_MONSTERS_B );
872
- OrthoviewClientEvents .forceMoveCam (MONSTER_CAMERA_POS , 50 );
871
+ OrthoviewClientEvents .forceMoveCam (MONSTER_CAM_POS , 50 );
873
872
progressStageAfterDelay (100 );
874
873
}
875
874
} else if (stageProgress == 4 ) {
@@ -943,7 +942,7 @@ public static void updateStage() {
943
942
msg ("tutorial.reignofnether.build_bridge" );
944
943
progressStageAfterDelay (100 );
945
944
} else if (stageProgress == 2 ) {
946
- OrthoviewClientEvents .forceMoveCam (BRIDGE_POS , 50 );
945
+ OrthoviewClientEvents .forceMoveCam (BRIDGE_CAM_POS , 50 );
947
946
msg ("tutorial.reignofnether.build_bridge2" );
948
947
setHelpButtonText ("tutorial.reignofnether.build_bridge3" );
949
948
progressStage ();
@@ -977,7 +976,7 @@ public static void updateStage() {
977
976
if (stageProgress == 0 ) {
978
977
msg ("tutorial.reignofnether.reinforcements" );
979
978
TutorialServerboundPacket .doServerAction (TutorialAction .SPAWN_FRIENDLY_ARMY );
980
- OrthoviewClientEvents .forceMoveCam (ARMY_POS , 50 );
979
+ OrthoviewClientEvents .forceMoveCam (ARMY_CAM_POS , 50 );
981
980
progressStageAfterDelay (160 );
982
981
} else if (stageProgress == 1 ) {
983
982
msg ("tutorial.reignofnether.iron_golem" );
0 commit comments