- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Welcome to the world of amazing Minecraft features! In this unique collection you will find free sources for Minecraft called "AirDropWay ReallyWorld". There are no hidden fees, only fully working and proven sources that will open up new horizons in the game for you.
Java:
package pizda.miyagi.client.feature.impl.visual;
import pizda.miyagi.client.event.EventTarget;
import pizda.miyagi.client.event.events.impl.render.EventBossBar;
import pizda.miyagi.client.event.events.impl.render.EventRender2D;
import pizda.miyagi.client.feature.Feature;
import pizda.miyagi.client.feature.impl.FeatureCategory;
import pizda.miyagi.client.utils.math.AnimationHelper;
import pizda.miyagi.client.utils.math.MathematicHelper;
import pizda.miyagi.client.utils.math.RotationHelper;
import pizda.miyagi.client.utils.render.RenderUtils;
import net.minecraft.util.math.BlockPos;
import org.lwjgl.opengl.GL11;
import java.awt.*;
public class AirDropWay extends Feature {
float xBoss = 0;
float zBoss = 0;
String bossname = "";
public AirDropWay() {
super("AirDropWay", "Показывает куда вам лететь до аирдропа", FeatureCategory.Visuals);
}
@EventTarget
public void onBossBar(EventBossBar event) {
if (event.bossName.contains("Босс") || event.bossName.contains("Босс")) {
String bossBar = event.bossName;
bossname = bossBar;
String[] ho = bossBar.substring(bossBar.indexOf("[") + 1, bossBar.indexOf("]")).split(";");
xBoss = Integer.parseInt(ho[0].trim().replaceAll("§4", ""));
zBoss = Integer.parseInt(ho[1].trim().replaceAll("§4", ""));
System.out.println(xBoss + " " + zBoss);
} else {
xBoss = 0;
zBoss = 0;
}
}
public static float getAngle(BlockPos entity) {
return (float) (RotationHelper.getRotations(entity.getX(), 0, entity.getZ())[0] - AnimationHelper.Interpolate(mc.player.rotationYaw, mc.player.prevRotationYaw, 1.0D));
}
@EventTarget
public void onRender2D(EventRender2D event) {
if (xBoss == 0 && zBoss == 0) {
return;
}
if ((int) mc.player.getDistance(xBoss, mc.player.posY, zBoss) <= 3) {
toggle();
}
if ((int) mc.player.getDistance(xBoss, mc.player.posY, zBoss) <= 10) {
int x = event.getResolution().getScaledWidth() / 2;
int y = event.getResolution().getScaledHeight() / 2;
mc.mntsb_15.drawString("Вы добрались до босса!", x + 25, y, Color.GREEN.getRGB());
}
if ((int) mc.player.getDistance(xBoss, mc.player.posY, zBoss) <= 10) {
return;
}
int x = event.getResolution().getScaledWidth() / 2;
int y = event.getResolution().getScaledHeight() / 2;
mc.mntsb_15.drawBlurredStringWithShadow(bossname, x + 25, y - 10, 8, new Color(253, 58, 58, 80), new Color(253, 58, 58).getRGB());
mc.mntsb_15.drawString("Осталось лететь ~ " + MathematicHelper.round((int) mc.player.getDistance(xBoss, mc.player.posY, zBoss), 0) + " блоков", x + 25, y, -1);
GL11.glPushMatrix();
GL11.glTranslatef((float) x, (float) y, 0.0F);
GL11.glRotatef(getAngle(new BlockPos(xBoss, 0, zBoss)) % 360.0F + 180.0F, 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float) (-x), (float) (-y), 0.0F);
RenderUtils.drawBlurredShadow((float) x - 3, (float) (y + 48), 5.0F, 10.0F, 15, new Color(255, 255, 255));
RenderUtils.drawTriangle((float) x - 5, (float) (y + 50), 5.0F, 10.0F, new Color(255, 255, 255).darker().getRGB(), new Color(255, 255, 255).getRGB());
GL11.glTranslatef((float) x, (float) y, 0.0F);
GL11.glRotatef(-(getAngle(new BlockPos(xBoss, 0, zBoss)) % 360.0F + 180.0F), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float) (-x), (float) (-y), 0.0F);
GL11.glPopMatrix();
}
}
Last edited by a moderator: