-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from maxgamesNL/inDev
Added some features
- Loading branch information
Showing
4 changed files
with
116 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/me/maxmods/learnfabric/features/module/impl/hud/Speedometer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package me.maxmods.learnfabric.features.module.impl.hud; | ||
|
||
import me.maxmods.learnfabric.features.module.Module; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.text.Text; | ||
|
||
public class Speedometer extends Module { | ||
public Speedometer(){super("Speedometer", ": Shows how fast you are going");} | ||
|
||
|
||
public void enable(){ | ||
|
||
} | ||
public void disable(){ | ||
|
||
} | ||
public void tick(){ | ||
MinecraftClient.getInstance().player.sendMessage(Text.of("Your speed is: "+MinecraftClient.getInstance().player.getSpeed()), true); | ||
} | ||
|
||
@Override | ||
public void renderWorld(MatrixStack stack) { | ||
|
||
} | ||
|
||
@Override | ||
public void renderHud() { | ||
|
||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/me/maxmods/learnfabric/features/module/impl/movement/AutoSprint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package me.maxmods.learnfabric.features.module.impl.movement; | ||
|
||
import me.maxmods.learnfabric.features.module.Module; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.network.ClientPlayerEntity; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.text.Text; | ||
|
||
public class AutoSprint extends Module { | ||
public AutoSprint(){super(" Autosprint", ": Makes you automatically sprint.");} | ||
ClientPlayerEntity player = MinecraftClient.getInstance().player; | ||
|
||
|
||
public void enable(){ | ||
player.sendMessage(Text.of("Autosprint was toggled!"), false); | ||
} | ||
public void disable(){ | ||
|
||
} | ||
|
||
@Override | ||
public void tick() { | ||
if (player.getSpeed() > 0){ | ||
player.setSprinting(true); | ||
|
||
} | ||
} | ||
|
||
@Override | ||
public void renderWorld(MatrixStack stack) { | ||
|
||
} | ||
|
||
@Override | ||
public void renderHud() { | ||
|
||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/me/maxmods/learnfabric/features/module/impl/movement/Speed.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package me.maxmods.learnfabric.features.module.impl.movement; | ||
|
||
import me.maxmods.learnfabric.features.module.Module; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.network.ClientPlayerEntity; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.text.Text; | ||
|
||
public class Speed extends Module { | ||
public Speed(){super("speed", ": Makes you go brrrrt");} | ||
|
||
ClientPlayerEntity player = MinecraftClient.getInstance().player; | ||
float newMovementSpeed = 3f; | ||
|
||
@Override | ||
public void enable() { | ||
player.sendMessage(Text.of("Doesnt work yet. :("), false); | ||
} | ||
|
||
public void disable(){ | ||
|
||
} | ||
|
||
@Override | ||
public void tick() { | ||
if(player.isSprinting()){ | ||
|
||
} | ||
} | ||
|
||
@Override | ||
public void renderHud() { | ||
|
||
} | ||
|
||
@Override | ||
public void renderWorld(MatrixStack stack) { | ||
|
||
} | ||
} |