Jump to content

thebest108

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by thebest108

  1. Something simple like EntityPlayer.renderArmor = false would be nice
  2. Ahem, I believe this belongs in the tutorials section *derp*
  3. As far as I know, the auto updater doesn't yet install java 7. You'll have to get it from here http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html Based on your system specs, I recommend you download the second to last one EDIT: if that still does not work, then bug the developer of terrafirmacraft for crashing your game (still I recommend java 7 because it's faster)
  4. I know that you can change an itemstacks texture on the fly, but is it possible to change armors texture on the fly, without modifying the armor's file
  5. I guess if you were really clever with generating nbt tags then you could, although it would be easier to have different colored keys rather than custom ones
  6. Thats all possible, also how would you want the keys to work?
  7. Rather than replacing the blocks with air, make a small explosion that's 1 block big and won't spawn any particle effects. It's something like Explosion exp = new Explosion() exp.doExplosionB(true) //exp.doExplosionA; or you could try World.spawnExplosion() That should break the blocks properly
  8. Shouldn't this be in the support section?
  9. World.getBlockId(insert stuff here)
  10. Or you could check a players nbt tag when they join and if the have a certin tag the don't do something, and if they don't have the tag then do something and write the tag to the player
  11. Im making a piece of armor that triggers some stuff when you put it on but the method onUpdateTick (something like that) only runs when it's in the players inventory, not the armor slot. Can someone please help?
  12. Look at buildcraft, it is open source you know
  13. put this in your item file public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10){ if(par3World.getBlockId(par4 + Facing.offsetsXForSide[par7], par5 + Facing.offsetsYForSide[par7], par6 + Facing.offsetsZForSide[par7]) == YourBlockId&&!par3World.isRemote){ par3World.setBlock(par4 + Facing.offsetsXForSide[par7], par5 + Facing.offsetsYForSide[par7], par6 + Facing.offsetsZForSide[par7], YourOtherBlockId); par1ItemStack.damageItem(1); } return true; } This should work
  14. I'm not sure about this but you could try Block derp = new Block() If block is a list then you would be able to do derp.something that would edit the list
  15. HELL YE-no Trust me, it's better this way
  16. public int idDropped(int par1, Random par2Random, int par3){ int derp = par2Random.nextInt(99); if(derp<45){ return this.dirt.blockId; }else{ if(derp<70){ return this.cobblestone.blockId; }else{ if(derp<90){ return this.sand.blockId }else{ if(derp<95){ return iron.itemId; }else{ if(derp<97){ return item.coal.itemId; }else{ if(derp<99){ return item.gold.itemId; }else{ return item.diamond.itemId; } } } } } }
  17. Can you show us the code please?
  18. Nuff sed
  19. if(entity instanceOf EntityZombie) Otherwise look in the shear code
  20. It's something like net.minecraft.src.Explosion derp = new net.minecraft.src.Explosion(add stuff here); derp.doExplosionA(); derp.doExplosionB(true);
  21. Air blocks are in indeed a block, it's not just nothingness, it you break an air block and there's nothing there, the game crashes
  22. Nice job, this is really usefull
×
×
  • Create New...

Important Information

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