Effects Readout in Liquidscripts

Avatar

By DrDesten / EZhacks YT 15 July 2019 13:04

Member · 138 comments

I am coding some Liquidscripts and I'm wondering how I can detect if the the player has a speed potion applied or not.

Any ideas?


A guy with many questions and ideas.
Config and Liquidscript creator.
Youtube: EZhacksYT https://www.youtube.com/ezhacks
Discord:

Avatar

By Senk Ju 15 July 2019 23:21

Administrator · 734 comments

Are you talking about the actual LiquidScript or LiquidBounce's new ScriptAPI?

With the new ScriptAPI you can get active effects like this:

var activeEffects = mc.thePlayer.getActivePotionEffects().toArray();

for (var i = 0; i < activeEffects.length; i++) {
    var effect = activeEffects[i].toString().split(",")
    var effectName = effect[0];
    var effectDuration = effect[1];

    chat.print(effectName + " | " + effectDuration); 
}

I don't think it is possible to get effects with the old ScriptAPI.


CCBlueX Co-Owner

Avatar

By DrDesten / EZhacks YT 4 August 2019 15:06

Member · 138 comments

I mean the New one thanks


A guy with many questions and ideas.
Config and Liquidscript creator.
Youtube: EZhacksYT https://www.youtube.com/ezhacks
Discord:

Avatar

By Sms_Gamer_3808 4 August 2019 15:31

Member · 594 comments
DrDesten / EZhacks YT wrote

I mean the New one thanks

script api, not liquidscript


I don't exist