Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

i re-made the player model with RenderPlayerEvent so i can modify the model, but the event is making a "double" of steve like a mirror, i dont know which steve is the real and which one is the fake but i need to remove or make invisible the one below

i tried to use .Pre to make invisible the model

this is how it looks without the bipedPART.showModel = false: https://imgur.com/a/fMuXsBR

i tried to make the steve that is rotated down invisible but im doing the opposite(made invisible the one that is looking up or the correct one) and thats not what i want

@SubscribeEvent
    public static void renderPre(RenderPlayerEvent.Pre event)
    {
        event.getRenderer().getEntityModel().bipedHead.showModel = false;
        event.getRenderer().getEntityModel().bipedBody.showModel = false;
        event.getRenderer().getEntityModel().bipedRightArm.showModel = false;
        event.getRenderer().getEntityModel().bipedLeftArm.showModel = false;
        event.getRenderer().getEntityModel().bipedRightLeg.showModel = false;
        event.getRenderer().getEntityModel().bipedLeftLeg.showModel = false;
    }

    @SubscribeEvent
    public static void renderPost(RenderPlayerEvent.Post event)
    {
        event.getRenderer().getEntityModel().bipedHead.showModel = true;
        event.getRenderer().getEntityModel().bipedBody.showModel = true;
        event.getRenderer().getEntityModel().bipedRightArm.showModel = true;
        event.getRenderer().getEntityModel().bipedLeftArm.showModel = true;
        event.getRenderer().getEntityModel().bipedRightLeg.showModel = true;
        event.getRenderer().getEntityModel().bipedLeftLeg.showModel = true;
        if(ModKeys.ability1Key.isKeyDown())
        {
				PlayerEntity player = event.getPlayer();
                GlStateManager.enableBlend();
                PlayerModel<AbstractClientPlayerEntity> model = event.getRenderer().getEntityModel();
                ModelRenderer head = model.bipedHead;
                ModelRenderer rightarm = model.bipedRightArm;
                ModelRenderer leftarm = model.bipedLeftArm;
                ModelRenderer body = model.bipedBody;
                ModelRenderer rightleg = model.bipedRightLeg;
                ModelRenderer leftleg = model.bipedLeftLeg;
                head.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
                rightarm.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
                leftarm.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
                body.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
                rightleg.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
                leftleg.render(event.getMatrixStack(),
                        event.getBuffers().getBuffer(RenderType.getEntitySolid(((AbstractClientPlayerEntity)player).getLocationSkin())),
                        Minecraft.getInstance().getRenderManager().getPackedLight(player, 1f), OverlayTexture.NO_OVERLAY);
        }
    }

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.