Added requires on features

This commit is contained in:
2026-03-24 12:55:03 +01:00
parent 3d0b95b566
commit dceff0e675
11 changed files with 22 additions and 11 deletions
@@ -21,7 +21,8 @@ public class AutoSprintMod extends Mod {
new ModSpec("Auto Sprint", "sprint") new ModSpec("Auto Sprint", "sprint")
.description("Makes the player always sprint") .description("Makes the player always sprint")
.tags("Movement") .tags("Movement")
.version("v0.2.0"), .version("v0.2.0")
.requires(Providers.feature::player, Providers.feature::network),
enabled.named("Enabled")); enabled.named("Enabled"));
} }
@@ -30,7 +30,8 @@ public class CoordinatesMod extends Mod implements HudMod {
new ModSpec("Coordinates", "coords") new ModSpec("Coordinates", "coords")
.description("Displays your current coordinates") .description("Displays your current coordinates")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::player),
enabled.named("Enabled"), enabled.named("Enabled"),
displayMethod.named("Display Method"), displayMethod.named("Display Method"),
layout.prop()); layout.prop());
@@ -24,7 +24,8 @@ public class CrosshairMod extends Mod {
new ModSpec("Crosshair", "crosshair") new ModSpec("Crosshair", "crosshair")
.description("Changes the crosshair when aiming at an entity") .description("Changes the crosshair when aiming at an entity")
.tags("Visuals", "Utility") .tags("Visuals", "Utility")
.version("v0.2.0"), .version("v0.2.0")
.requires(Providers.feature::player, Providers.feature::render, Providers.feature::entity),
enabled.named("Enabled")); enabled.named("Enabled"));
} }
@@ -25,7 +25,8 @@ public class DayCounterMod extends Mod implements HudMod {
new ModSpec("Day Counter", "day") new ModSpec("Day Counter", "day")
.description("Displays the number of in-game days elapsed") .description("Displays the number of in-game days elapsed")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::world),
enabled.named("Enabled"), enabled.named("Enabled"),
layout.prop()); layout.prop());
} }
@@ -25,7 +25,8 @@ public class FpsMod extends Mod implements HudMod {
new ModSpec("FPS Display", "fps") new ModSpec("FPS Display", "fps")
.description("Displays current FPS") .description("Displays current FPS")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::render),
enabled.named("Enabled"), enabled.named("Enabled"),
layout.prop()); layout.prop());
} }
@@ -31,7 +31,8 @@ public class FreelookMod extends Mod {
new ModSpec("Freelook", "freelook") new ModSpec("Freelook", "freelook")
.description("Look around freely without moving your character") .description("Look around freely without moving your character")
.tags("Movement", "Camera") .tags("Movement", "Camera")
.version("v0.2.0"), .version("v0.2.0")
.requires(Providers.feature::render),
enabled.named("Enabled"), enabled.named("Enabled"),
toggle.named("Toggle freelook"), toggle.named("Toggle freelook"),
freelookKey.named("Freelook Keybinding")); freelookKey.named("Freelook Keybinding"));
@@ -28,7 +28,8 @@ public class HealthDisplayMod extends Mod implements HudMod {
new ModSpec("Health Display", "health") new ModSpec("Health Display", "health")
.description("Displays your current health") .description("Displays your current health")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::player),
enabled.named("Enabled"), enabled.named("Enabled"),
displayMode.named("Display mode"), displayMode.named("Display mode"),
decimals.named("Decimals"), decimals.named("Decimals"),
@@ -51,7 +51,8 @@ public class KeystrokesMod extends Mod implements HudMod {
new ModSpec("Keystrokes", "keystrokes") new ModSpec("Keystrokes", "keystrokes")
.description("Displays movement keystrokes") .description("Displays movement keystrokes")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::player),
enabled.named("Enabled"), enabled.named("Enabled"),
showMouse.named("Show mouse clicks"), showMouse.named("Show mouse clicks"),
showSpace.named("Show space"), showSpace.named("Show space"),
@@ -24,7 +24,8 @@ public class PingMod extends Mod implements HudMod {
new ModSpec("Ping Display", "ping") new ModSpec("Ping Display", "ping")
.description("Displays ping to the server") .description("Displays ping to the server")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::network),
enabled.named("Enabled"), enabled.named("Enabled"),
layout.prop()); layout.prop());
} }
@@ -31,7 +31,8 @@ public class SpeedometerMod extends Mod implements HudMod {
new ModSpec("Speedometer", "speed") new ModSpec("Speedometer", "speed")
.description("Displays your current movement speed") .description("Displays your current movement speed")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::player),
enabled.named("Enabled"), enabled.named("Enabled"),
axis.named("Speed type"), axis.named("Speed type"),
unitText.named("Unit text"), unitText.named("Unit text"),
@@ -32,7 +32,8 @@ public class StatusEffectsMod extends Mod implements HudMod {
new ModSpec("Status Effects", "effect") new ModSpec("Status Effects", "effect")
.description("Displays active status effects") .description("Displays active status effects")
.version("v0.2.0") .version("v0.2.0")
.tags("Utility"), .tags("Utility")
.requires(Providers.feature::player),
enabled.named("Enabled"), enabled.named("Enabled"),
layout.prop()); layout.prop());
} }