Jump to content

Recommended Posts

Posted

So I know how to override them like Stone = MyStone, but now I want to delete one.

Is it possible without raping system (game) to remove MAJOR blocks in game, where major is ex. Ore (gold)?

If it's impossible then:

Is it possible to remove it from CretaiveTabs?

If not:

Is it possible to make sure that NOONE will get it (even on creative), only possible scenario would be typing command Give ;p

 

Also: NO ASM/Refle :D

 

EDIT: RANDOM INT rage!

Read my 3rd post.

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted

Most likely removing a vanilla block will cause issues somewhere but you prob can give it a try.  add this code to your main mod file

 

Block.blocksList[x] = null;

 

replace x with the blockID you want to remove.

Posted

No. Removing a block is raping the game.

Why would you do that anyway ?

It isn't like you need to remove Mojang things in order for yours to work. Quite the opposite actually.

Posted

Ok so maybe I'll take other approach: When making vanilia block replacement with my own, then if I define in MyBlockClass that it's ID is x, it will be x or it will stay vanilia?

Same goes to CreativeTabs - will they change?

 

Maybe I know how to override block, but to be honest I never used this: How exacly does it operate?

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted

If you remove the block like I showed then re-add your own block in its place, vanilla will refer to your new block Im pretty sure, but be aware the next version of Forge for the latest minecraft is getting rid of block ID's so this probably won't work the same way in the next version.

Posted

Ok, thanks, will test it :) Now new topic:

 

Next problem: When I am calling:

public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int m)

It does it server and client side.

Now when I put a Random int in it, it will be randomed 2 times (like all the other operations).

This is not a big problem, because if a method is launcher 2 times only second result is the actuall result so my random is actually single (not a pair), but can I turn it off?

Eg.:

public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int m)

have some stuff in it which will tell if at the end of mining block it should hit some value that will transform it to an bomb (lol). Now when I launch Random Int and it hit value (true) this is hat I get:

1st Random            2nd Random

true                      true                      It's cool

false                      false                      It's cool

false                      true                      }

true                      false                    } Now with last two it is making minecraft glitch :o

It sets block to bomb then it turns it again to normal, or it sets it to normal then to bomb.

As I said: It's not THAT bad, but it's confusing :C

 

 

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted

Stay on server side if it affects the world:

if(!world.isRemote)

 

As for block overriding, once again, it isn't good to do so.

If you want to change how a block "do things" different, there are other ways.

I can't be more specific without you telling what you want to change.

Posted

Well, my server is not planning on changing to 1.7+ (I am 1.6.4) so IF robustus manner will work and there will be no glitches (not using other mods, so no chance for incompatibility) I will stay on this, so thanks for that.

 

As to if(!world.isRemote) - God i am retarded I forgot about it xD

 

Thanks all :) Will report with result later :D

  Quote

1.7.10 is no longer supported by forge, you are on your own.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hey guys, i'm currently developping a mod with forge 1.12.2 2860 and i'm using optifine and gradle 4.9. The thing is i'm trying to figure out how to show the player's body in first person. So far everything's going well since i've try to use a shader. The player's body started to blink dark when using a shader. I've try a lot of shader like chocapic, zeus etc etc but still the same issue. So my question is : How should i apply the current shader to the body ? At the same time i'm also drawing a HUD so maybe it could be the problem?   Here is the issue :    And here is the code where i'm trying to display the body :    private static void renderFirstPersonBody(EntityPlayerSP player, float partialTicks) { Minecraft mc = Minecraft.getMinecraft(); GlStateManager.pushMatrix(); GlStateManager.pushAttrib(); try { // Préparation OpenGL GlStateManager.enableDepth(); GlStateManager.depthMask(true); GlStateManager.enableAlpha(); GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Éclairage correct pour shaders GlStateManager.enableLighting(); RenderHelper.enableStandardItemLighting(); GlStateManager.enableRescaleNormal(); // Active la lightmap pour les shaders mc.entityRenderer.enableLightmap(); // Position de rendu interpolée double px = player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks; double py = player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks; double pz = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks; GlStateManager.translate( px - mc.getRenderManager().viewerPosX, py - mc.getRenderManager().viewerPosY, pz - mc.getRenderManager().viewerPosZ ); // Rendu du joueur sans la tête Render<?> render = mc.getRenderManager().getEntityRenderObject(player); if (render instanceof RenderPlayer) { RenderPlayer renderPlayer = (RenderPlayer) render; boolean oldHeadHidden = renderPlayer.getMainModel().bipedHead.isHidden; boolean oldHeadwearHidden = renderPlayer.getMainModel().bipedHeadwear.isHidden; renderPlayer.getMainModel().bipedHead.isHidden = true; renderPlayer.getMainModel().bipedHeadwear.isHidden = true; setArmorHeadVisibility(renderPlayer, false); renderPlayer.doRender(player, 0, 0, 0, player.rotationYaw, partialTicks); renderPlayer.getMainModel().bipedHead.isHidden = oldHeadHidden; renderPlayer.getMainModel().bipedHeadwear.isHidden = oldHeadwearHidden; setArmorHeadVisibility(renderPlayer, !oldHeadwearHidden); } // Nettoyage post rendu mc.entityRenderer.disableLightmap(); GlStateManager.disableRescaleNormal(); } catch (Exception e) { // silent fail } finally { GlStateManager.popAttrib(); GlStateManager.popMatrix(); } }   Ty for your help. 
    • Item successfully registered, but there was a problem with the texture of the item, it did not insert and has just the wrong texture.     
    • Keep on using the original Launcher Run Vanilla 1.12.2 once and close the game Download Optifine and run optifine as installer (click on the optifine jar) Start the launcher and make sure the Optifine profile is selected - then test it again  
    • Hi everyone, I’m hoping to revisit an old version of Minecraft — specifically around Beta 1.7.3 — for nostalgia’s sake. I’ve heard you can do this through the official Minecraft Launcher, but I’m unsure how to do it safely without affecting my current installation or save files. Are there any compatibility issues I should watch out for when switching between versions? Would really appreciate any tips or advice from anyone who’s done this before! – Adam
    • hello! i was trying to recreate item-in-hand feature for my custom mob. i figured out that my mob needs a custom iteminhandlayer. i created it - but the main problem is.. well.. you can see all on screenshots any idea how i can fix that? is there any implemented method to render the item perfect to hand? public void render(@NotNull PoseStack pPoseStack, @NotNull MultiBufferSource pBufferSource, int pPackedLight, @NotNull TuneGolemRenderState pRenderState, float pYRot, float pXRot) { ItemStackRenderState item = pRenderState.heldItem; if (!item.isEmpty()) { pPoseStack.pushPose(); ModelPart leftArm = this.getParentModel().leftArm; pPoseStack.translate(0.35,0.5,-1.25); pPoseStack.mulPose(Axis.XP.rotationDegrees(180.0F)); pPoseStack.mulPose(Axis.YP.rotationDegrees(90.0F)); leftArm.translateAndRotate(pPoseStack); // pPoseStack.translate(0,0,0); leftArm.translateAndRotate(pPoseStack); if (TuneGolemRenderState.hornPlaying) { pPoseStack.translate(0, -0.5, 0.65); pPoseStack.scale(1.25F,1.25F,1.25F); } // Minecraft.getInstance().player.displayClientMessage(Component.literal(leftArm.xRot + " " + leftArm.yRot + " " + leftArm.zRot), true); item.render(pPoseStack, pBufferSource, pPackedLight, OverlayTexture.NO_OVERLAY); pPoseStack.popPose(); // -1.0F, -2.0F, -3.0F } }  
  • Topics

×
×
  • Create New...

Important Information

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