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.

MultiMote

Forge Modder
  • Joined

  • Last visited

Everything posted by MultiMote

  1. http://www.minecraftforge.net/forum/index.php/topic,21045.0.html
  2. @SubscribeEvent public void getName(PlayerEvent.NameFormat event) { if(event.username.equals("MultiMote")) event.displayname="Spy"; }
  3. setOwner is func_152115_b(player.getUniqueID().toString());
  4. PlayerEvent.NameFormat event, i think
  5. ...or public boolean onItemUse(ItemStack is, EntityPlayer pl, World world, int x, int y, int z, int side, float sx, float sy, float sz)
  6. drawTexturedModalRect is for 256x256 texture. Skin size is 64x32. Use this: public void drawNonStandartTexturedRect(int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight) { float f = 1F / (float)textureWidth; float f1 = 1F / (float)textureHeight; Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); tessellator.addVertexWithUV((double)(x), (double)(y + height), 0, (double)((float)(u) * f), (double)((float)(v + height) * f1)); tessellator.addVertexWithUV((double)(x + width), (double)(y + height), 0, (double)((float)(u + width) * f), (double)((float)(v + height) * f1)); tessellator.addVertexWithUV((double)(x + width), (double)(y), 0, (double)((float)(u + width) * f), (double)((float)(v) * f1)); tessellator.addVertexWithUV((double)(x), (double)(y), 0, (double)((float)(u) * f), (double)((float)(v) * f1)); tessellator.draw(); }
  7. Your code will cause crash on server. Minecraft class is client-side only.
  8. @SubscribeEvent public void renderPlayer(RenderPlayerEvent.Post e){ if(e.entityPlayer.getHeldItem() != null && e.entityPlayer.getHeldItem().getItem() instanceof YourItem){ e.renderer.modelBipedMain.aimedBow = true; } }
  9. GL11.glEnable(GL11.GL_BLEND); OpenGlHelper.glBlendFunc(770, 771, 1, 0); //your model render code GL11.glDisable(GL11.GL_BLEND);
  10. http://www.mfmesi.ru/uploads/maxed/fmcmodeler/ Old, but good.
  11. You can create class that extends BlockRedstoneRepeater / BlockRedstoneWire
  12. public void updateTick(World world, int x, int y, int z, Random random) { if (!world.isRemote && world.getBlockLightValue(x, y + 1, z) >= 9) for (int i = 0; i < 4; ++i) { int randX = x + random.nextInt(3) - 1; int randY = y + random.nextInt(3) - 1; int randZ = z + random.nextInt(3) - 1; if (world.getBlock(randX, randY, randZ) != Blocks.air && world.getBlock(randX, randY, randZ) != this && world.getBlock(randX, randY+1, randZ).isReplaceable(world, x, y, z)) world.setBlock(randX, randY+1, randZ, this); } } ?
  13. gear.getStackInSlot(20).getItem() != null must be gear.getStackInSlot(20) != null
  14. Add this.isTamed() check at the top your condition. Maybe entity owner is null and you trying to get his name.
  15. I dunno, it works public void updateTick(World world, int x, int y, int z, Random random) { if (!world.isRemote && world.getBlockLightValue(x, y + 1, z) >= 9) for (int i = 0; i < 4; ++i) { int randX = x + random.nextInt(3) - 1; int randY = y + random.nextInt(3) - 1; int randZ = z + random.nextInt(3) - 1; if (world.getBlock(randX, randY, randZ) != Blocks.air) world.setBlock(randX, randY, randZ, Yormod.yourblock); } }
  16. if(Minecraft.getMinecraft().currentScreen instanceof SomethingGui) ?
  17. I'm using kfind and i cant use lib to search :\
  18. /build/tmp/recompSrc/net/minecraft/block/BlockCrops.java /build/tmp/recompSrc/net/minecraft/item/ItemSeeds.java
  19. Look at the TileEntitySkullRenderer
  20. Try to use entity.setLocationAndAngles(x, y, z, yaw, pitch) in your spawn code / entity constructor.
  21. Set your gui's width and height in constructor ( this.xSize, this.ySize)
  22. But why he can't use ready-to-use objectMouseOver without problems with partialTicks?

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.