@@ -45,6 +45,7 @@ public class Config {
45
45
public boolean ChestPeeker = true ;
46
46
public int ChestPeekerX = 0 ;
47
47
public int ChestPeekerY = -4 ;
48
+ public boolean ReportBrokenBlock = true ;
48
49
49
50
private void save () {
50
51
try {
@@ -77,6 +78,7 @@ private void save() {
77
78
object .addProperty ("ChestPeeker" ,ChestPeeker );
78
79
object .addProperty ("ChestPeekerX" ,ChestPeekerX );
79
80
object .addProperty ("ChestPeekerY" ,ChestPeekerY );
81
+ object .addProperty ("ReportBrokenBlock" ,ReportBrokenBlock );
80
82
FileManager .writeConfig (object .toString ());
81
83
} catch (Exception e ) {
82
84
CodeClient .LOGGER .info ("Couldn't save config: " + e );
@@ -261,20 +263,32 @@ public YetAnotherConfigLib getLibConfig() {
261
263
)
262
264
.controller (TickBoxControllerBuilder ::create )
263
265
.build ())
264
- .option (Option .createBuilder (float .class )
265
- .name (Text .literal ("Reach Distance" ))
266
- .description (OptionDescription .createBuilder ()
267
- .text (Text .literal ("Extend your reach distance, moving you forward if you can't reach." ))
268
- .build ())
266
+ // .option(Option.createBuilder(float.class)
267
+ // .name(Text.literal("Reach Distance"))
268
+ // .description(OptionDescription.createBuilder()
269
+ // .text(Text.literal("Extend your reach distance, moving you forward if you can't reach."))
270
+ // .build())
271
+ // .binding(
272
+ // 5f,
273
+ // () -> ReachDistance,
274
+ // opt -> ReachDistance = opt
275
+ // )
276
+ // .controller(opt -> FloatSliderControllerBuilder.create(opt)
277
+ // .range(5f, 10f)
278
+ // .step(0.1f))
279
+ // .available(false)
280
+ // .build())
281
+ .option (Option .createBuilder (boolean .class )
282
+ .name (Text .literal ("Report Broken Blocks" ))
283
+ .description (
284
+ OptionDescription .of (Text .literal ("Get a message on breaking a block telling you what it did." ),
285
+ Text .literal ("Only works for Player Event, Entity Event, Function, Call Function, Process, and Start Process" )))
269
286
.binding (
270
- 5f ,
271
- () -> ReachDistance ,
272
- opt -> ReachDistance = opt
287
+ true ,
288
+ () -> ReportBrokenBlock ,
289
+ opt -> ReportBrokenBlock = opt
273
290
)
274
- .controller (opt -> FloatSliderControllerBuilder .create (opt )
275
- .range (5f , 10f )
276
- .step (0.1f ))
277
- .available (false )
291
+ .controller (TickBoxControllerBuilder ::create )
278
292
.build ())
279
293
.option (Option .createBuilder (LayerInteractionMode .class )
280
294
.name (Text .literal ("Layer Interaction" ))
0 commit comments