Исходник ItemRadius exp 3.1

Начинающий
Статус
Оффлайн
Регистрация
17 Июн 2024
Сообщения
171
Реакции[?]
0
Поинты[?]
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

всем ку меня просили я слил
ItemRadius:
@FunctionRegister(
    name = "ItemRadius",
    type = Category.Render
)
/**
 *@created 13.07.2024
 * Author Cryonee
 */
public class ItemRadius extends Function {
    private final Minecraft mc = Minecraft.getInstance();

    public ItemRadius() {
    }

    @Subscribe
    private void onRender(WorldEvent event) {
        ClientPlayerEntity player = this.mc.player;
        ItemStack mainHandItem = ((PlayerEntity)player).getHeldItemMainhand();
        ItemStack offHandItem = this.mc.player.getHeldItemOffhand();
        float radius;
        Vector3d position;
        double pitch;
        double yaw;
        int x;
        int z;
        float angle;
        float xOffset;
        float zOffset;
        int loopIndex;
        if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.ENDER_EYE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.ENDER_EYE)) {
            if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.SUGAR || !offHandItem.isEmpty() && offHandItem.getItem() == Items.SUGAR) {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587202559;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996488705;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            } else if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.FIRE_CHARGE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.FIRE_CHARGE)) {
                if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.PHANTOM_MEMBRANE || !offHandItem.isEmpty() && offHandItem.getItem() == Items.PHANTOM_MEMBRANE) {
                    radius = 2.0F;
                    GlStateManager.pushMatrix();
                    RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                    position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                    position = position.add(0.0, -1.4, 0.0);
                    RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                    pitch = (double)this.mc.getRenderManager().info.getPitch();
                    yaw = (double)this.mc.getRenderManager().info.getYaw();
                    GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                    RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                    RenderSystem.enableBlend();
                    RenderSystem.depthMask(false);
                    RenderSystem.disableTexture();
                    RenderSystem.disableCull();
                    RenderSystem.blendFunc(770, 771);
                    RenderSystem.shadeModel(7425);
                    RenderSystem.lineWidth(3.0F);
                    GL11.glEnable(2848);
                    GL11.glHint(3154, 4354);
                    buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                    x = 570425599;
                    buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                    for(z = 0; z <= 360; ++z) {
                        angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                        xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                        buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                    }

                    tessellator.draw();
                    buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                    z = -2013265665;

                    for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                        xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                        zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                        buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                    }

                    tessellator.draw();
                    GL11.glHint(3154, 4352);
                    GL11.glDisable(2848);
                    RenderSystem.enableTexture();
                    RenderSystem.disableBlend();
                    RenderSystem.enableCull();
                    RenderSystem.depthMask(true);
                    RenderSystem.shadeModel(7424);
                    GlStateManager.popMatrix();
                }
            } else {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587169536;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996521728;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            }
        } else {
            radius = 10.0F;
            GlStateManager.pushMatrix();
            RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
            position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
            position = position.add(0.0, -1.4, 0.0);
            RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
            pitch = (double)this.mc.getRenderManager().info.getPitch();
            yaw = (double)this.mc.getRenderManager().info.getYaw();
            GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
            RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
            RenderSystem.enableBlend();
            RenderSystem.depthMask(false);
            RenderSystem.disableTexture();
            RenderSystem.disableCull();
            RenderSystem.blendFunc(770, 771);
            RenderSystem.shadeModel(7425);
            RenderSystem.lineWidth(3.0F);
            GL11.glEnable(2848);
            GL11.glHint(3154, 4354);
            buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            x = 570490879;
            buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

            for(z = 0; z <= 360; ++z) {
                angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
            }

            tessellator.draw();
            buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
            z = -2013200385;

            for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
            }

            tessellator.draw();
            GL11.glHint(3154, 4352);
            GL11.glDisable(2848);
            RenderSystem.enableTexture();
            RenderSystem.disableBlend();
            RenderSystem.enableCull();
            RenderSystem.depthMask(true);
            RenderSystem.shadeModel(7424);
            GlStateManager.popMatrix();
        }

    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
Начинающий
Статус
Оффлайн
Регистрация
6 Дек 2023
Сообщения
308
Реакции[?]
1
Поинты[?]
1K
всем ку меня просили я слил
ItemRadius:
@FunctionRegister(
    name = "ItemRadius",
    type = Category.Render
)
/**
*@created 13.07.2024
* Author Cryonee
*/
public class ItemRadius extends Function {
    private final Minecraft mc = Minecraft.getInstance();

    public ItemRadius() {
    }

    @Subscribe
    private void onRender(WorldEvent event) {
        ClientPlayerEntity player = this.mc.player;
        ItemStack mainHandItem = ((PlayerEntity)player).getHeldItemMainhand();
        ItemStack offHandItem = this.mc.player.getHeldItemOffhand();
        float radius;
        Vector3d position;
        double pitch;
        double yaw;
        int x;
        int z;
        float angle;
        float xOffset;
        float zOffset;
        int loopIndex;
        if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.ENDER_EYE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.ENDER_EYE)) {
            if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.SUGAR || !offHandItem.isEmpty() && offHandItem.getItem() == Items.SUGAR) {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587202559;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996488705;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            } else if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.FIRE_CHARGE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.FIRE_CHARGE)) {
                if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.PHANTOM_MEMBRANE || !offHandItem.isEmpty() && offHandItem.getItem() == Items.PHANTOM_MEMBRANE) {
                    radius = 2.0F;
                    GlStateManager.pushMatrix();
                    RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                    position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                    position = position.add(0.0, -1.4, 0.0);
                    RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                    pitch = (double)this.mc.getRenderManager().info.getPitch();
                    yaw = (double)this.mc.getRenderManager().info.getYaw();
                    GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                    RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                    RenderSystem.enableBlend();
                    RenderSystem.depthMask(false);
                    RenderSystem.disableTexture();
                    RenderSystem.disableCull();
                    RenderSystem.blendFunc(770, 771);
                    RenderSystem.shadeModel(7425);
                    RenderSystem.lineWidth(3.0F);
                    GL11.glEnable(2848);
                    GL11.glHint(3154, 4354);
                    buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                    x = 570425599;
                    buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                    for(z = 0; z <= 360; ++z) {
                        angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                        xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                        buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                    }

                    tessellator.draw();
                    buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                    z = -2013265665;

                    for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                        xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                        zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                        buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                    }

                    tessellator.draw();
                    GL11.glHint(3154, 4352);
                    GL11.glDisable(2848);
                    RenderSystem.enableTexture();
                    RenderSystem.disableBlend();
                    RenderSystem.enableCull();
                    RenderSystem.depthMask(true);
                    RenderSystem.shadeModel(7424);
                    GlStateManager.popMatrix();
                }
            } else {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587169536;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996521728;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            }
        } else {
            radius = 10.0F;
            GlStateManager.pushMatrix();
            RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
            position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
            position = position.add(0.0, -1.4, 0.0);
            RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
            pitch = (double)this.mc.getRenderManager().info.getPitch();
            yaw = (double)this.mc.getRenderManager().info.getYaw();
            GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
            RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
            RenderSystem.enableBlend();
            RenderSystem.depthMask(false);
            RenderSystem.disableTexture();
            RenderSystem.disableCull();
            RenderSystem.blendFunc(770, 771);
            RenderSystem.shadeModel(7425);
            RenderSystem.lineWidth(3.0F);
            GL11.glEnable(2848);
            GL11.glHint(3154, 4354);
            buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            x = 570490879;
            buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

            for(z = 0; z <= 360; ++z) {
                angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
            }

            tessellator.draw();
            buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
            z = -2013200385;

            for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
            }

            tessellator.draw();
            GL11.glHint(3154, 4352);
            GL11.glDisable(2848);
            RenderSystem.enableTexture();
            RenderSystem.disableBlend();
            RenderSystem.enableCull();
            RenderSystem.depthMask(true);
            RenderSystem.shadeModel(7424);
            GlStateManager.popMatrix();
        }

    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
/DELDELDEL БЛЯТЬ ТЫ НИКС ДЕОБФНУЛ И ВАРЫ УБРАЛ КАКОЙ НАХУЙ АВТОР КРИОН ЕСЛИ ТЫ ЧЕРЕЗ ЧАТ ГПТ ВАРЫ УБРАЛ ТОЛЬКО
 
Начинающий
Статус
Оффлайн
Регистрация
6 Дек 2023
Сообщения
308
Реакции[?]
1
Поинты[?]
1K
всем ку меня просили я слил
ItemRadius:
@FunctionRegister(
    name = "ItemRadius",
    type = Category.Render
)
/**
*@created 13.07.2024
* Author Cryonee
*/
public class ItemRadius extends Function {
    private final Minecraft mc = Minecraft.getInstance();

    public ItemRadius() {
    }

    @Subscribe
    private void onRender(WorldEvent event) {
        ClientPlayerEntity player = this.mc.player;
        ItemStack mainHandItem = ((PlayerEntity)player).getHeldItemMainhand();
        ItemStack offHandItem = this.mc.player.getHeldItemOffhand();
        float radius;
        Vector3d position;
        double pitch;
        double yaw;
        int x;
        int z;
        float angle;
        float xOffset;
        float zOffset;
        int loopIndex;
        if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.ENDER_EYE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.ENDER_EYE)) {
            if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.SUGAR || !offHandItem.isEmpty() && offHandItem.getItem() == Items.SUGAR) {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587202559;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996488705;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            } else if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.FIRE_CHARGE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.FIRE_CHARGE)) {
                if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.PHANTOM_MEMBRANE || !offHandItem.isEmpty() && offHandItem.getItem() == Items.PHANTOM_MEMBRANE) {
                    radius = 2.0F;
                    GlStateManager.pushMatrix();
                    RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                    position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                    position = position.add(0.0, -1.4, 0.0);
                    RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                    pitch = (double)this.mc.getRenderManager().info.getPitch();
                    yaw = (double)this.mc.getRenderManager().info.getYaw();
                    GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                    RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                    RenderSystem.enableBlend();
                    RenderSystem.depthMask(false);
                    RenderSystem.disableTexture();
                    RenderSystem.disableCull();
                    RenderSystem.blendFunc(770, 771);
                    RenderSystem.shadeModel(7425);
                    RenderSystem.lineWidth(3.0F);
                    GL11.glEnable(2848);
                    GL11.glHint(3154, 4354);
                    buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                    x = 570425599;
                    buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                    for(z = 0; z <= 360; ++z) {
                        angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                        xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                        buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                    }

                    tessellator.draw();
                    buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                    z = -2013265665;

                    for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                        xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                        zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                        buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                    }

                    tessellator.draw();
                    GL11.glHint(3154, 4352);
                    GL11.glDisable(2848);
                    RenderSystem.enableTexture();
                    RenderSystem.disableBlend();
                    RenderSystem.enableCull();
                    RenderSystem.depthMask(true);
                    RenderSystem.shadeModel(7424);
                    GlStateManager.popMatrix();
                }
            } else {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587169536;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996521728;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            }
        } else {
            radius = 10.0F;
            GlStateManager.pushMatrix();
            RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
            position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
            position = position.add(0.0, -1.4, 0.0);
            RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
            pitch = (double)this.mc.getRenderManager().info.getPitch();
            yaw = (double)this.mc.getRenderManager().info.getYaw();
            GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
            RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
            RenderSystem.enableBlend();
            RenderSystem.depthMask(false);
            RenderSystem.disableTexture();
            RenderSystem.disableCull();
            RenderSystem.blendFunc(770, 771);
            RenderSystem.shadeModel(7425);
            RenderSystem.lineWidth(3.0F);
            GL11.glEnable(2848);
            GL11.glHint(3154, 4354);
            buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            x = 570490879;
            buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

            for(z = 0; z <= 360; ++z) {
                angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
            }

            tessellator.draw();
            buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
            z = -2013200385;

            for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
            }

            tessellator.draw();
            GL11.glHint(3154, 4352);
            GL11.glDisable(2848);
            RenderSystem.enableTexture();
            RenderSystem.disableBlend();
            RenderSystem.enableCull();
            RenderSystem.depthMask(true);
            RenderSystem.shadeModel(7424);
            GlStateManager.popMatrix();
        }

    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
удали акк на форуме пж и научись не выдавать чужой код за свой когда ты убрал вары с и немножко перекодил что то
Остынь потому что я сын шлюхи
да нахуй таких $$$elfcodeров которые чужой код за свой выдают
 
Начинающий
Статус
Оффлайн
Регистрация
14 Июл 2024
Сообщения
254
Реакции[?]
2
Поинты[?]
1K
удали акк на форуме пж и научись не выдавать чужой код за свой когда ты убрал вары с и немножко перекодил что то

да нахуй таких $$$elfcodeров которые чужой код за свой выдают
здесь из 50 тем 49 хуйня бесполезная)
 
Начинающий
Статус
Оффлайн
Регистрация
6 Дек 2023
Сообщения
308
Реакции[?]
1
Поинты[?]
1K
Начинающий
Статус
Оффлайн
Регистрация
26 Сен 2024
Сообщения
119
Реакции[?]
1
Поинты[?]
1K
всем ку меня просили я слил
ItemRadius:
@FunctionRegister(
    name = "ItemRadius",
    type = Category.Render
)
/**
*@created 13.07.2024
* Author Cryonee
*/
public class ItemRadius extends Function {
    private final Minecraft mc = Minecraft.getInstance();

    public ItemRadius() {
    }

    @Subscribe
    private void onRender(WorldEvent event) {
        ClientPlayerEntity player = this.mc.player;
        ItemStack mainHandItem = ((PlayerEntity)player).getHeldItemMainhand();
        ItemStack offHandItem = this.mc.player.getHeldItemOffhand();
        float radius;
        Vector3d position;
        double pitch;
        double yaw;
        int x;
        int z;
        float angle;
        float xOffset;
        float zOffset;
        int loopIndex;
        if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.ENDER_EYE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.ENDER_EYE)) {
            if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.SUGAR || !offHandItem.isEmpty() && offHandItem.getItem() == Items.SUGAR) {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587202559;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996488705;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            } else if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.FIRE_CHARGE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.FIRE_CHARGE)) {
                if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.PHANTOM_MEMBRANE || !offHandItem.isEmpty() && offHandItem.getItem() == Items.PHANTOM_MEMBRANE) {
                    radius = 2.0F;
                    GlStateManager.pushMatrix();
                    RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                    position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                    position = position.add(0.0, -1.4, 0.0);
                    RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                    pitch = (double)this.mc.getRenderManager().info.getPitch();
                    yaw = (double)this.mc.getRenderManager().info.getYaw();
                    GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                    RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                    RenderSystem.enableBlend();
                    RenderSystem.depthMask(false);
                    RenderSystem.disableTexture();
                    RenderSystem.disableCull();
                    RenderSystem.blendFunc(770, 771);
                    RenderSystem.shadeModel(7425);
                    RenderSystem.lineWidth(3.0F);
                    GL11.glEnable(2848);
                    GL11.glHint(3154, 4354);
                    buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                    x = 570425599;
                    buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                    for(z = 0; z <= 360; ++z) {
                        angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                        xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                        buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                    }

                    tessellator.draw();
                    buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                    z = -2013265665;

                    for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                        xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                        zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                        buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                    }

                    tessellator.draw();
                    GL11.glHint(3154, 4352);
                    GL11.glDisable(2848);
                    RenderSystem.enableTexture();
                    RenderSystem.disableBlend();
                    RenderSystem.enableCull();
                    RenderSystem.depthMask(true);
                    RenderSystem.shadeModel(7424);
                    GlStateManager.popMatrix();
                }
            } else {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587169536;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996521728;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            }
        } else {
            radius = 10.0F;
            GlStateManager.pushMatrix();
            RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
            position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
            position = position.add(0.0, -1.4, 0.0);
            RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
            pitch = (double)this.mc.getRenderManager().info.getPitch();
            yaw = (double)this.mc.getRenderManager().info.getYaw();
            GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
            RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
            RenderSystem.enableBlend();
            RenderSystem.depthMask(false);
            RenderSystem.disableTexture();
            RenderSystem.disableCull();
            RenderSystem.blendFunc(770, 771);
            RenderSystem.shadeModel(7425);
            RenderSystem.lineWidth(3.0F);
            GL11.glEnable(2848);
            GL11.glHint(3154, 4354);
            buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            x = 570490879;
            buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

            for(z = 0; z <= 360; ++z) {
                angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
            }

            tessellator.draw();
            buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
            z = -2013200385;

            for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
            }

            tessellator.draw();
            GL11.glHint(3154, 4352);
            GL11.glDisable(2848);
            RenderSystem.enableTexture();
            RenderSystem.disableBlend();
            RenderSystem.enableCull();
            RenderSystem.depthMask(true);
            RenderSystem.shadeModel(7424);
            GlStateManager.popMatrix();
        }

    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
ахуеть
Код:
public ItemRadius() {
    }
 
Начинающий
Статус
Оффлайн
Регистрация
8 Май 2023
Сообщения
457
Реакции[?]
5
Поинты[?]
6K
всем ку меня просили я слил
ItemRadius:
@FunctionRegister(
    name = "ItemRadius",
    type = Category.Render
)
/**
*@created 13.07.2024
* Author Cryonee
*/
public class ItemRadius extends Function {
    private final Minecraft mc = Minecraft.getInstance();

    public ItemRadius() {
    }

    @Subscribe
    private void onRender(WorldEvent event) {
        ClientPlayerEntity player = this.mc.player;
        ItemStack mainHandItem = ((PlayerEntity)player).getHeldItemMainhand();
        ItemStack offHandItem = this.mc.player.getHeldItemOffhand();
        float radius;
        Vector3d position;
        double pitch;
        double yaw;
        int x;
        int z;
        float angle;
        float xOffset;
        float zOffset;
        int loopIndex;
        if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.ENDER_EYE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.ENDER_EYE)) {
            if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.SUGAR || !offHandItem.isEmpty() && offHandItem.getItem() == Items.SUGAR) {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587202559;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996488705;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            } else if ((player == null || mainHandItem.isEmpty() || mainHandItem.getItem() != Items.FIRE_CHARGE) && (offHandItem.isEmpty() || offHandItem.getItem() != Items.FIRE_CHARGE)) {
                if (player != null && !mainHandItem.isEmpty() && mainHandItem.getItem() == Items.PHANTOM_MEMBRANE || !offHandItem.isEmpty() && offHandItem.getItem() == Items.PHANTOM_MEMBRANE) {
                    radius = 2.0F;
                    GlStateManager.pushMatrix();
                    RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                    position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                    position = position.add(0.0, -1.4, 0.0);
                    RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                    pitch = (double)this.mc.getRenderManager().info.getPitch();
                    yaw = (double)this.mc.getRenderManager().info.getYaw();
                    GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                    RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                    RenderSystem.enableBlend();
                    RenderSystem.depthMask(false);
                    RenderSystem.disableTexture();
                    RenderSystem.disableCull();
                    RenderSystem.blendFunc(770, 771);
                    RenderSystem.shadeModel(7425);
                    RenderSystem.lineWidth(3.0F);
                    GL11.glEnable(2848);
                    GL11.glHint(3154, 4354);
                    buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                    x = 570425599;
                    buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                    for(z = 0; z <= 360; ++z) {
                        angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                        xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                        buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                    }

                    tessellator.draw();
                    buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                    z = -2013265665;

                    for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                        xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                        zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                        buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                    }

                    tessellator.draw();
                    GL11.glHint(3154, 4352);
                    GL11.glDisable(2848);
                    RenderSystem.enableTexture();
                    RenderSystem.disableBlend();
                    RenderSystem.enableCull();
                    RenderSystem.depthMask(true);
                    RenderSystem.shadeModel(7424);
                    GlStateManager.popMatrix();
                }
            } else {
                radius = 10.0F;
                GlStateManager.pushMatrix();
                RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
                position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
                position = position.add(0.0, -1.4, 0.0);
                RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
                pitch = (double)this.mc.getRenderManager().info.getPitch();
                yaw = (double)this.mc.getRenderManager().info.getYaw();
                GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
                RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
                RenderSystem.enableBlend();
                RenderSystem.depthMask(false);
                RenderSystem.disableTexture();
                RenderSystem.disableCull();
                RenderSystem.blendFunc(770, 771);
                RenderSystem.shadeModel(7425);
                RenderSystem.lineWidth(3.0F);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
                x = 587169536;
                buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

                for(z = 0; z <= 360; ++z) {
                    angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                    xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                    buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
                }

                tessellator.draw();
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                z = -1996521728;

                for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                    xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                    zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                    buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
                }

                tessellator.draw();
                GL11.glHint(3154, 4352);
                GL11.glDisable(2848);
                RenderSystem.enableTexture();
                RenderSystem.disableBlend();
                RenderSystem.enableCull();
                RenderSystem.depthMask(true);
                RenderSystem.shadeModel(7424);
                GlStateManager.popMatrix();
            }
        } else {
            radius = 10.0F;
            GlStateManager.pushMatrix();
            RenderSystem.translated(-this.mc.getRenderManager().info.getProjectedView().x, -this.mc.getRenderManager().info.getProjectedView().y, -this.mc.getRenderManager().info.getProjectedView().z);
            position = MathUtil.interpolate(this.mc.player.getPositionVec(), new Vector3d(this.mc.player.lastTickPosX, this.mc.player.lastTickPosY, this.mc.player.lastTickPosZ), event.getPartialTicks());
            position = position.add(0.0, -1.4, 0.0);
            RenderSystem.translated(position.x, position.y + (double)this.mc.player.getHeight(), position.z);
            pitch = (double)this.mc.getRenderManager().info.getPitch();
            yaw = (double)this.mc.getRenderManager().info.getYaw();
            GL11.glRotatef((float)(-yaw), 0.0F, 1.0F, 0.0F);
            RenderSystem.translated(-position.x, -(position.y + (double)this.mc.player.getHeight()), -position.z);
            RenderSystem.enableBlend();
            RenderSystem.depthMask(false);
            RenderSystem.disableTexture();
            RenderSystem.disableCull();
            RenderSystem.blendFunc(770, 771);
            RenderSystem.shadeModel(7425);
            RenderSystem.lineWidth(3.0F);
            GL11.glEnable(2848);
            GL11.glHint(3154, 4354);
            buffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            x = 570490879;
            buffer.pos(position.x, position.y + (double)this.mc.player.getHeight(), position.z).color(x).endVertex();

            for(z = 0; z <= 360; ++z) {
                angle = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)z)) * radius));
                xOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)z)) * radius));
                buffer.pos((double)angle, position.y + (double)this.mc.player.getHeight(), (double)xOffset).color(x).endVertex();
            }

            tessellator.draw();
            buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
            z = -2013200385;

            for(loopIndex = 0; loopIndex <= 360; ++loopIndex) {
                xOffset = (float)(position.x + (double)(MathHelper.sin((float)Math.toRadians((double)loopIndex)) * radius));
                zOffset = (float)(position.z + (double)(-MathHelper.cos((float)Math.toRadians((double)loopIndex)) * radius));
                buffer.pos((double)xOffset, position.y + (double)this.mc.player.getHeight(), (double)zOffset).color(z).endVertex();
            }

            tessellator.draw();
            GL11.glHint(3154, 4352);
            GL11.glDisable(2848);
            RenderSystem.enableTexture();
            RenderSystem.disableBlend();
            RenderSystem.enableCull();
            RenderSystem.depthMask(true);
            RenderSystem.shadeModel(7424);
            GlStateManager.popMatrix();
        }

    }
}
Пожалуйста, авторизуйтесь для просмотра ссылки.
не ну прикольно, код лень оценивать
 
Забаненный
Статус
Оффлайн
Регистрация
16 Окт 2024
Сообщения
76
Реакции[?]
0
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
17 Июн 2024
Сообщения
171
Реакции[?]
0
Поинты[?]
0
Начинающий
Статус
Оффлайн
Регистрация
17 Июн 2024
Сообщения
171
Реакции[?]
0
Поинты[?]
0
Сверху Снизу