[Script] No more shit Fireballs fucking you up like a bitch on Hypixel
-
var scriptName = "AntiFireball"; var scriptVersion = 1.0; var scriptAuthor = "york"; var EntityLiving = Java.type('net.minecraft.entity.EntityLivingBase'); var EntityFireball = Java.type('net.minecraft.entity.projectile.EntityLargeFireball'); var C02PacketUseEntity = Java.type("net.minecraft.network.play.client.C02PacketUseEntity"); var MSTimer = Java.type('net.ccbluex.liquidbounce.utils.timer.MSTimer'); function AntiFireball() { this.getName = function() { return "AntiFireball"; }; this.getDescription = function() { return "Anti Fireball"; }; this.getCategory = function() { return "Misc"; }; var TimerF = new MSTimer(); this.onUpdate = function() { for (var x in mc.theWorld.loadedEntityList) { var entities = mc.theWorld.loadedEntityList[x]; if (entities != null && entities instanceof EntityFireball && mc.thePlayer.getDistanceToEntity(entities) < 5.5 && (TimerF.hasTimePassed(100) || lastEntity != entities)) { lastEntity = entities; mc.thePlayer.sendQueue.addToSendQueue(new C02PacketUseEntity(entities, C02PacketUseEntity.Action.ATTACK)); TimerF.reset(); break; } } } this.onEnable = function() { lastEntity = ""; } } var AntiFireball = new AntiFireball(); var AntiFireballClient; function onEnable() { AntiFireballClient = moduleManager.registerModule(AntiFireball); }; function onDisable() { moduleManager.unregisterModule(AntiFireballClient); };
Credits to some old 2014 client called WeepCraft for the idea
-
Now it would be cool to add a silent rotation to the direction where the fireball came from or scan for the nearest player and shot in this direction
-
add
entities.ticksExisted > anything higher than 6 i think
to make sure it isnt hitting fireballs you fired, ofc it wont hit fireballs fired in the range of 5.5 blocks by enemys bc they also have a lower existed tickrate but then you cant really counter fireballs anyways.
-> so: prevent changing your own fireballs direction with this, happened to me before, not a strong direction change but still one