10
10
import meteordevelopment .meteorclient .MeteorClient ;
11
11
import meteordevelopment .meteorclient .commands .Command ;
12
12
import meteordevelopment .meteorclient .events .packets .PacketEvent ;
13
+ import meteordevelopment .meteorclient .pathing .BaritoneUtils ;
13
14
import meteordevelopment .meteorclient .pathing .PathManagers ;
14
15
import meteordevelopment .meteorclient .utils .player .ChatUtils ;
15
16
import meteordevelopment .meteorclient .utils .player .InvUtils ;
@@ -145,6 +146,11 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
145
146
}));
146
147
147
148
builder .then (literal ("stronghold" ).executes (s -> {
149
+ if (!BaritoneUtils .IS_AVAILABLE ) {
150
+ error ("Locating this structure requires Baritone." );
151
+ return SINGLE_SUCCESS ;
152
+ }
153
+
148
154
boolean foundEye = InvUtils .testInHotbar (Items .ENDER_EYE );
149
155
150
156
if (foundEye ) {
@@ -170,6 +176,11 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
170
176
}));
171
177
172
178
builder .then (literal ("nether_fortress" ).executes (s -> {
179
+ if (!BaritoneUtils .IS_AVAILABLE ) {
180
+ error ("Locating this structure requires Baritone." );
181
+ return SINGLE_SUCCESS ;
182
+ }
183
+
173
184
Vec3d coords = findByBlockList (netherFortressBlocks );
174
185
if (coords == null ) {
175
186
error ("No nether fortress found." );
@@ -183,6 +194,11 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
183
194
}));
184
195
185
196
builder .then (literal ("monument" ).executes (s -> {
197
+ if (!BaritoneUtils .IS_AVAILABLE ) {
198
+ error ("Locating this structure requires Baritone." );
199
+ return SINGLE_SUCCESS ;
200
+ }
201
+
186
202
ItemStack stack = mc .player .getInventory ().getMainHandStack ();
187
203
if (stack .getItem () == Items .FILLED_MAP ) {
188
204
NbtCompound tag = stack .getNbt ();
0 commit comments