added nametags logo
This commit is contained in:
@@ -7,13 +7,15 @@ import org.saturnclient.saturnclient.config.Property;
|
|||||||
|
|
||||||
import net.minecraft.client.render.entity.state.LivingEntityRenderState;
|
import net.minecraft.client.render.entity.state.LivingEntityRenderState;
|
||||||
|
|
||||||
|
// todo: rendering modes, player check
|
||||||
|
|
||||||
public class Nametags extends Module {
|
public class Nametags extends Module {
|
||||||
private static Property<Boolean> enabled = Property.bool(false);
|
private static Property<Boolean> enabled = Property.bool(false);
|
||||||
private static Property<Boolean> healthDisplay = Property.bool(false);
|
private static Property<Boolean> healthDisplay = Property.bool(false);
|
||||||
|
|
||||||
public Nametags() {
|
public Nametags() {
|
||||||
super(
|
super(
|
||||||
new ModuleDetails("Nametags", "zoom")
|
new ModuleDetails("Nametags", "nametags")
|
||||||
.description("Allows you to modify entity nametags")
|
.description("Allows you to modify entity nametags")
|
||||||
.tags("Camera", "Utility")
|
.tags("Camera", "Utility")
|
||||||
.version("0.1.0"),
|
.version("0.1.0"),
|
||||||
@@ -36,7 +38,7 @@ public class Nametags extends Module {
|
|||||||
float health = hrs.saturn$getHealth();
|
float health = hrs.saturn$getHealth();
|
||||||
float maxHealth = hrs.saturn$getMaxHealth();
|
float maxHealth = hrs.saturn$getMaxHealth();
|
||||||
|
|
||||||
if (health <= 0f || maxHealth <= 0f || health > maxHealth) return null;
|
if (health < 0f || maxHealth < 0f || health > maxHealth) return null;
|
||||||
|
|
||||||
return state.customName.getString()
|
return state.customName.getString()
|
||||||
+ " §c" + String.format("%.1f", hrs.saturn$getHealth())
|
+ " §c" + String.format("%.1f", hrs.saturn$getHealth())
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 800 B |
Reference in New Issue
Block a user