Everything posted by MultiMote
-
[1.7.X] Read data from a .schematic file
http://www.minecraftforge.net/forum/index.php/topic,21045.0.html
-
Detecting/Disable tnt damage
setResistance ?
-
[1.7.10] [MP] Change player username to something else
@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
setOwner is func_152115_b(player.getUniqueID().toString());
-
Modifying name displayed above a player's head
PlayerEvent.NameFormat event, i think
-
onItemRightClick on a block Help
...or public boolean onItemUse(ItemStack is, EntityPlayer pl, World world, int x, int y, int z, int side, float sx, float sy, float sz)
-
[1.7.2] How to draw skin face on the gui?
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(); }
-
Teleportation Staff? [(Un)Solved]
Your code will cause crash on server. Minecraft class is client-side only.
-
[1.7.2] Rotations at the playermodel
@SubscribeEvent public void renderPlayer(RenderPlayerEvent.Post e){ if(e.entityPlayer.getHeldItem() != null && e.entityPlayer.getHeldItem().getItem() instanceof YourItem){ e.renderer.modelBipedMain.aimedBow = true; } }
-
Alpha in model textures?
GL11.glEnable(GL11.GL_BLEND); OpenGlHelper.glBlendFunc(770, 771, 1, 0); //your model render code GL11.glDisable(GL11.GL_BLEND);
-
Easier Modeling, Help?
http://www.mfmesi.ru/uploads/maxed/fmcmodeler/ Old, but good.
-
[1.7.10]Add new Redstone Repeater
You can create class that extends BlockRedstoneRepeater / BlockRedstoneWire
-
A block that spreads over every block but air?
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
gear.getStackInSlot(20).getItem() != null must be gear.getStackInSlot(20) != null
-
[1.7.2] Null Pointer Exception + Ticking Memory Connection
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?
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
Full errlog, please.
-
[1.7.2] Switching Between GUIs On Key Press
if(Minecraft.getMinecraft().currentScreen instanceof SomethingGui) ?
-
[1.7.2]How to make crops
I'm using kfind and i cant use lib to search :\
-
[1.7.2]How to make crops
/build/tmp/recompSrc/net/minecraft/block/BlockCrops.java /build/tmp/recompSrc/net/minecraft/item/ItemSeeds.java
-
[1.7.2][SOLVED]Reference Player's Skin
Look at the TileEntitySkullRenderer
-
[SOLVED][1.7.10]Entity instantly despawning?
Try to use entity.setLocationAndAngles(x, y, z, yaw, pitch) in your spawn code / entity constructor.
-
[1.7.2] Item Popping Out Of GUI
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?
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?
this way
IPS spam blocked by CleanTalk.