Jump to content

opssemnik

Members
  • Posts

    269
  • Joined

  • Last visited

Everything posted by opssemnik

  1. Also, rendering its only client side, so no communication Server - Client side.
  2. im on my tablet, i dont now if works, but please tell if it works, i need to my mod too.
  3. i have a block, that when i click(onBlockClicked) it checks the block id in a range of 50 blocks x and 50 blocks z to see if the blocks are Block.crops.blockID, if they are equals my block do some things, but the problem is, world.getBlockId(x , y ,z) its too expensive because it wont check in a range , it checks only in the giver coordinate.
  4. EntityPlayer pl = Minecraft.getMinecraft().thePlayer; if(Minecraft.getMinecraft().theWorld.getBlockId(pl.posX, pl.posY, pl.posZ) == Block.torchWood.blockID){ //do stuff } if(Minecraft.getMinecraft().theWorld.getBlockId(pl.posX++, pl.posY, pl.posZ++) == Block.torchWood.blockID){ //do stuff }
  5. found another way EntityPlayer pl = Minecraft.getMinecraft().thePlayer; if(Minecraft.getMinecraft().theWorld.getBlockId(pl.posX, pl.posY, pl.posZ) == Block.torchWood.blockID){ //do stuff }
  6. because the iterator of the list its not playerEntities, if u wanna get the player object just do Minecraft.getMinecraft().thePlayer, but if u wanna the player iterator you must do Iterator iterator = Minecraft.getMinecraft().theWorld.playerEntities.iterator(); while (iterator.hasNext()){ Object obj = iterator.next(); if ((obj instanceof EntityPlayer) && !((EntityPlayerMP)obj).username.isEmpty()) { // Do Stuff! } }
  7. you can only patch java files, only way to edit a class file without decompiling it, its using reflection or asm but u can change what you want(you can onnly detecte obfuscation, change something to public, or to private, or to final, or to non final)
  8. sorry, torch dosent have aabb so change if(list.equals("50")) to if(!list)
  9. yes, ABUI.SS, sorry bad english im from brazil
  10. 1- its same too 2 - yea you can, just do other coordinates so it dont conflict with that ore
  11. forgot EntityPlayer player = Minecraft.getMinecraft().thePlayer;
  12. hi, i wanna get the block ids in a range without doing a lot of world.getBlockId (because i want 50 block range), is that possible?
  13. it to show in the console the location but i made one thing wrong change to this int Xcoord = BlockX + random.nextInt(16); int Zcoord = BlockZ + random.nextInt(16); int Ycoord = random.nextInt(60); (new WorldGenMinable(Mod_Base.TriShardOre.blockID, 10)).generate(world, random,Xcoord, Ycoord, Zcoord); System.out.println(Xcoord); System.out.println(Ycoord); System.out.println(Zcooord);
  14. this will return a list of colliding boxes AxisAlignedBB var4 = AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)player.posX + how blocks u want(double)player.posY + how blocks u want(double)player.posZ + how blocks u want(double)(player.posX + 1), (double)(player.posY + 1), (double)(player.posZ + 1)); List list = Minecraft.getMinecraft().theWorld.getAllCollidingBoundingBoxes(var4);
  15. ... in the file that haves the generation stuff, like in the void that u are doing the generation sutff, most espific at private void generateSurface(World world, Random random, int chunkX, int chunkZ) int Xcoord = chunkX + random.nextInt(16); int Zcoord = chunkZ + random.nextInt(16); int Ycoord = random.nextInt(60) System.out.println(Xcoord); System.out.println(Ycoord); System.out.println(Zcooord); its the only place to put...
  16. in what method you are trying to get that?, in tickhandler?, in other block class?
×
×
  • Create New...

Important Information

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