MultiMote
Forge Modder-
Posts
257 -
Joined
-
Last visited
Everything posted by MultiMote
-
http://www.minecraftforge.net/forum/index.php/topic,21045.0.html
-
setResistance ?
-
[1.7.10] [MP] Change player username to something else
MultiMote replied to czaarek99's topic in Modder Support
@SubscribeEvent public void getName(PlayerEvent.NameFormat event) { if(event.username.equals("MultiMote")) event.displayname="Spy"; } -
[1.7.10] A sword with ability to tame wolves
MultiMote replied to piotr_a3's topic in Modder Support
setOwner is func_152115_b(player.getUniqueID().toString()); -
Modifying name displayed above a player's head
MultiMote replied to Kilkio's topic in Modder Support
PlayerEvent.NameFormat event, i think -
...or public boolean onItemUse(ItemStack is, EntityPlayer pl, World world, int x, int y, int z, int side, float sx, float sy, float sz)
-
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(); }
-
Your code will cause crash on server. Minecraft class is client-side only.
-
@SubscribeEvent public void renderPlayer(RenderPlayerEvent.Post e){ if(e.entityPlayer.getHeldItem() != null && e.entityPlayer.getHeldItem().getItem() instanceof YourItem){ e.renderer.modelBipedMain.aimedBow = true; } }
-
GL11.glEnable(GL11.GL_BLEND); OpenGlHelper.glBlendFunc(770, 771, 1, 0); //your model render code GL11.glDisable(GL11.GL_BLEND);
-
http://www.mfmesi.ru/uploads/maxed/fmcmodeler/ Old, but good.
-
You can create class that extends BlockRedstoneRepeater / BlockRedstoneWire
-
A block that spreads over every block but air?
MultiMote replied to Looke81's topic in Modder Support
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); } } ? -
[1.7.2] Null Pointer Exception + Ticking Memory Connection
MultiMote replied to qpwoeiruty's topic in Modder Support
gear.getStackInSlot(20).getItem() != null must be gear.getStackInSlot(20) != null -
[1.7.2] Null Pointer Exception + Ticking Memory Connection
MultiMote replied to qpwoeiruty's topic in Modder Support
Add this.isTamed() check at the top your condition. Maybe entity owner is null and you trying to get his name. -
A block that spreads over every block but air?
MultiMote replied to Looke81's topic in Modder Support
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); } } -
[1.7.2] Null Pointer Exception + Ticking Memory Connection
MultiMote replied to qpwoeiruty's topic in Modder Support
Full errlog, please. -
if(Minecraft.getMinecraft().currentScreen instanceof SomethingGui) ?
-
I'm using kfind and i cant use lib to search :\
-
/build/tmp/recompSrc/net/minecraft/block/BlockCrops.java /build/tmp/recompSrc/net/minecraft/item/ItemSeeds.java
-
Look at the TileEntitySkullRenderer
-
[SOLVED][1.7.10]Entity instantly despawning?
MultiMote replied to Nimbleguy's topic in Modder Support
Try to use entity.setLocationAndAngles(x, y, z, yaw, pitch) in your spawn code / entity constructor. -
Set your gui's width and height in constructor ( this.xSize, this.ySize)
-
[1.7.10][Sloved] Help - How do I get a player's target block?
MultiMote replied to LEGOlord208's topic in Modder Support
But why he can't use ready-to-use objectMouseOver without problems with partialTicks? -
[1.7.10][Sloved] Help - How do I get a player's target block?
MultiMote replied to LEGOlord208's topic in Modder Support
this way