multiplier
This commit is contained in:
parent
a598d5cfe5
commit
c086d671c4
File diff suppressed because it is too large
Load Diff
35600
javascript/classes.js
35600
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,7 @@ public class ClickGui extends Mod{
|
|||
public NumberSetting test = new NumberSetting("Test, ignore!", "", 50, 1, 200, 5, 5);
|
||||
|
||||
public ClickGui(){
|
||||
addSetting(scroll, guiTheme, test);
|
||||
addSetting(scroll, guiTheme);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,13 +6,13 @@ 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, hasSetting = true)
|
||||
@Module(name = "Particles Mod", category = Category.MISC, hasSetting = true)
|
||||
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 static NumberSetting multiplier = new NumberSetting("Multiplier", "", 1, 1, 50, 1, 1);
|
||||
|
||||
public ParticleMultiplier(){
|
||||
addSetting(alwaysCrit, alwaysSharp);
|
||||
addSetting(alwaysCrit, alwaysSharp, multiplier);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -372,6 +372,6 @@ public class ClickGUI extends GuiScreen {
|
|||
}
|
||||
|
||||
private int getListMaxScroll() {
|
||||
return this.height;
|
||||
return 500 - this.height;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package net.minecraft.client.entity;
|
||||
|
||||
import dev.resent.module.impl.misc.ParticleMultiplier;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.MovingSoundMinecartRiding;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
|
@ -526,12 +527,16 @@ public class EntityPlayerSP extends AbstractClientPlayer {
|
|||
* Args: entity that was hit critically
|
||||
*/
|
||||
public void onCriticalHit(Entity entityHit) {
|
||||
for(int i = 0; i < ParticleMultiplier.multiplier.getValue() - 1; i++){
|
||||
this.mc.effectRenderer.emitParticleAtEntity(entityHit, EnumParticleTypes.CRIT);
|
||||
}
|
||||
}
|
||||
|
||||
public void onEnchantmentCritical(Entity entityHit) {
|
||||
for(int i = 0; i < ParticleMultiplier.multiplier.getValue() - 1; i++){
|
||||
this.mc.effectRenderer.emitParticleAtEntity(entityHit, EnumParticleTypes.CRIT_MAGIC);
|
||||
}
|
||||
}
|
||||
|
||||
/**+
|
||||
* Returns if this entity is sneaking.
|
||||
|
|
|
@ -1049,11 +1049,11 @@ public abstract class EntityPlayer extends EntityLivingBase implements ICommandS
|
|||
this.setSprinting(false);
|
||||
}
|
||||
|
||||
if (flag || ParticleMultiplier.alwaysCrit.getValue()) {
|
||||
if (flag || ParticleMultiplier.alwaysCrit.getValue() && ModManager.particleMultiplier.isEnabled()) {
|
||||
this.onCriticalHit(entity);
|
||||
}
|
||||
|
||||
if (f1 > 0.0F || ParticleMultiplier.alwaysSharp.getValue()) {
|
||||
if (f1 > 0.0F || ParticleMultiplier.alwaysSharp.getValue() && ModManager.particleMultiplier.isEnabled()) {
|
||||
this.onEnchantmentCritical(entity);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user