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