@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);
};