How can I increase the potion's vanishing speed (3:00 --> 0)
-
@plumer-man it will fast forward the time of potion effect
-
@plumer-man He wants to decrease the potion time.
-
@suicidesquidward he wants to decrease it to zero which is the equivalent of removing the effect client-side
-
@plumer-man i want to make a regen module by speeding up the potion's healing which is equivalent to time lapse but i am facing the problem that it is not working
-
@plumer-man i'm using the code 'mc.thePlayer.getActive Effect' but I don't know why it's not working
Help me pls -
That dosent work server side....
-
I mean if you're doing client side godmode/regen just cancel damage/health packet
-
code_text ```mc.thePlayer.getActivePotionEffect(Potion.regenrenation).deincrementDuration()
-
@btx said in How can I increase the potion's vanishing speed (3:00 --> 0):
Potion.regenrenation
-
@suicidesquidward Was it correct?
-
@suicidesquidward Was it correct?
@btx said in How can I increase the potion's vanishing speed (3:00 --> 0):
Potion.regenrenation
var scriptName = "Regen2"; var scriptVersion = 1.0; var scriptAuthor = "BTX"; var Regen= new Regen(); var RegenClient; var C03PlayerPacket = Java.type('net.minecraft.network.play.client.C03PacketPlayer'); var Potion = Java.type("net.minecraft.potion.Potion"); var PotionEffect = Java.type("net.minecraft.potion.PotionEffect") function Nolagz() { this.getName = function () { return "Regen2"; }; this.getDescription = function () { return "."; }; this.getCategory = function () { return "Player"; }; this.onUpdate = function() { mc.thePlayer.getActivePotionEffect(Potion.regenrenation).deincrementDuration() for(var i =0; i< 25; i++) { mc.thePlayer.sendQueue.getNetworkManager().sendPacket(new C03PlayerPacket(true)); } } this.onDisable = function() { } this.onEnable = function() { } } function onEnable() { RegenClient = moduleManager.registerModule(Regen); }; function onDisable() { moduleManager.unregisterModule(RegenClient); };