Full module source: 1 implementation
Every implementation below is the complete module file, verbatim. Expand a client to read its code.
Meteor ClientMovementsrc/main/java/meteordevelopment/meteorclient/systems/modules/movement/HighJump.javaJava · 36 lines · 1.2 KB
Makes you jump higher than normal.
Settingsjump-multiplier
| 1 | /*
|
| 2 | * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
|
| 3 | * Copyright (c) Meteor Development.
|
| 4 | */
|
| 5 |
|
| 6 | package meteordevelopment.meteorclient.systems.modules.movement;
|
| 7 |
|
| 8 | import meteordevelopment.meteorclient.events.entity.player.JumpVelocityMultiplierEvent;
|
| 9 | import meteordevelopment.meteorclient.settings.DoubleSetting;
|
| 10 | import meteordevelopment.meteorclient.settings.Setting;
|
| 11 | import meteordevelopment.meteorclient.settings.SettingGroup;
|
| 12 | import meteordevelopment.meteorclient.systems.modules.Categories;
|
| 13 | import meteordevelopment.meteorclient.systems.modules.Module;
|
| 14 | import meteordevelopment.orbit.EventHandler;
|
| 15 |
|
| 16 | public class HighJump extends Module {
|
| 17 | private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
| 18 |
|
| 19 | private final Setting<Double> multiplier = sgGeneral.add(new DoubleSetting.Builder()
|
| 20 | .name("jump-multiplier")
|
| 21 | .description("Jump height multiplier.")
|
| 22 | .defaultValue(1)
|
| 23 | .min(0)
|
| 24 | .build()
|
| 25 | );
|
| 26 |
|
| 27 | public HighJump() {
|
| 28 | super(Categories.Movement, "high-jump", "Makes you jump higher than normal.");
|
| 29 | }
|
| 30 |
|
| 31 | @EventHandler
|
| 32 | private void onJumpVelocityMultiplier(JumpVelocityMultiplierEvent event) {
|
| 33 | event.multiplier *= multiplier.get();
|
| 34 | }
|
| 35 | }
|
| 36 |
|