Jump to content

MultiMote

Forge Modder
  • Posts

    257
  • 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. ...or public boolean onItemUse(ItemStack is, EntityPlayer pl, World world, int x, int y, int z, int side, float sx, float sy, float sz)
  5. 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(); }
  6. Your code will cause crash on server. Minecraft class is client-side only.
  7. @SubscribeEvent public void renderPlayer(RenderPlayerEvent.Post e){ if(e.entityPlayer.getHeldItem() != null && e.entityPlayer.getHeldItem().getItem() instanceof YourItem){ e.renderer.modelBipedMain.aimedBow = true; } }
  8. GL11.glEnable(GL11.GL_BLEND); OpenGlHelper.glBlendFunc(770, 771, 1, 0); //your model render code GL11.glDisable(GL11.GL_BLEND);
  9. http://www.mfmesi.ru/uploads/maxed/fmcmodeler/ Old, but good.
  10. You can create class that extends BlockRedstoneRepeater / BlockRedstoneWire
  11. 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); } } ?
  12. gear.getStackInSlot(20).getItem() != null must be gear.getStackInSlot(20) != null
  13. Add this.isTamed() check at the top your condition. Maybe entity owner is null and you trying to get his name.
  14. 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); } }
  15. if(Minecraft.getMinecraft().currentScreen instanceof SomethingGui) ?
  16. I'm using kfind and i cant use lib to search :\
  17. /build/tmp/recompSrc/net/minecraft/block/BlockCrops.java /build/tmp/recompSrc/net/minecraft/item/ItemSeeds.java
  18. Try to use entity.setLocationAndAngles(x, y, z, yaw, pitch) in your spawn code / entity constructor.
  19. Set your gui's width and height in constructor ( this.xSize, this.ySize)
  20. But why he can't use ready-to-use objectMouseOver without problems with partialTicks?
×
×
  • Create New...

Important Information

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