Particle multiplier

This commit is contained in:
ThisIsALegitUsername 2023-04-01 20:18:43 +00:00
parent cf7c8accd4
commit 7a0af698a3
7 changed files with 55254 additions and 55236 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -31,6 +31,7 @@ import dev.resent.module.impl.misc.DynamicFOV;
import dev.resent.module.impl.misc.FPSOptions;
import dev.resent.module.impl.misc.Fullbright;
import dev.resent.module.impl.misc.HUD;
import dev.resent.module.impl.misc.ParticleMultiplier;
import dev.resent.module.impl.misc.Scoreboard;
import dev.resent.module.impl.misc.Sprint;
import dev.resent.module.impl.setting.Animations;
@ -79,6 +80,7 @@ public class ModManager {
public static FPSOptions fpsOptions = new FPSOptions();
public static AdminRay adminRay = new AdminRay();
public static AdminSpawner adminSpawner =new AdminSpawner();
public static ParticleMultiplier particleMultiplier = new ParticleMultiplier();
public static Hand hand;
public ModManager() {
@ -107,6 +109,7 @@ public class ModManager {
register(potCounter = new PotCounter());
//Mechanic
register(particleMultiplier);
register(autoRespawn = new AutoRespawn());
register(fullbright = new Fullbright());
register(noSwingDelay = new NoSwingDelay());

View File

@ -16,14 +16,13 @@ public class AdminSpawner extends Mod {
public void render(){
for(Object o: mc.theWorld.loadedTileEntityList) {
if(o instanceof TileEntityMobSpawner) {
if(o instanceof TileEntityMobSpawner && this.isEnabled()) {
box(((TileEntityMobSpawner)o));
}
}
}
public static void box(TileEntityMobSpawner entity)
{
public static void box(TileEntityMobSpawner entity){
GlStateManager.blendFunc(770, 771);
GlStateManager.enableBlend();
EaglercraftGPU.glLineWidth(4.0F);

View File

@ -0,0 +1,18 @@
package dev.resent.module.impl.misc;
import dev.resent.annotation.Module;
import dev.resent.module.base.Mod;
import dev.resent.module.base.Mod.Category;
import dev.resent.module.base.setting.BooleanSetting;
import dev.resent.module.base.setting.NumberSetting;
@Module(name = "Particle multipler", category = Category.MISC)
public class ParticleMultiplier extends Mod{
public static BooleanSetting alwaysCrit = new BooleanSetting("Always critical", "", false);
public static BooleanSetting alwaysSharp = new BooleanSetting("Always sharpness", "", false);
public static NumberSetting multiplier = new NumberSetting("Multiplier", "", 1, 1, 10, 1, 1);
public ParticleMultiplier(){
addSetting(alwaysCrit, alwaysSharp);
}
}

View File

@ -5,6 +5,8 @@ import com.google.common.collect.Lists;
import dev.resent.client.Resent;
import dev.resent.module.base.ModManager;
import dev.resent.module.impl.misc.ParticleMultiplier;
import java.util.Collection;
import java.util.List;
import net.lax1dude.eaglercraft.v1_8.EaglercraftUUID;
@ -1047,11 +1049,11 @@ public abstract class EntityPlayer extends EntityLivingBase implements ICommandS
this.setSprinting(false);
}
if (flag) {
if (flag || ParticleMultiplier.alwaysCrit.getValue()) {
this.onCriticalHit(entity);
}
if (f1 > 0.0F) {
if (f1 > 0.0F || ParticleMultiplier.alwaysSharp.getValue()) {
this.onEnchantmentCritical(entity);
}