
opssemnik
Members-
Posts
269 -
Joined
-
Last visited
Everything posted by opssemnik
-
Also, rendering its only client side, so no communication Server - Client side.
-
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
im on my tablet, i dont now if works, but please tell if it works, i need to my mod too. -
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.
-
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
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 } -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
found another way EntityPlayer pl = Minecraft.getMinecraft().thePlayer; if(Minecraft.getMinecraft().theWorld.getBlockId(pl.posX, pl.posY, pl.posZ) == Block.torchWood.blockID){ //do stuff } -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
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! } } -
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)
-
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
sorry, torch dosent have aabb so change if(list.equals("50")) to if(!list) -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
do you have skype or something?, to talk better -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
yes, ABUI.SS, sorry bad english im from brazil -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
String ing = list.toString(); System.out.println(ing); -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
1 look at spoiler 2 - yes -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
1- its same too 2 - yea you can, just do other coordinates so it dont conflict with that ore -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
System.out.println(list); see what u get on console -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
list.equals(string) -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
50 its amoun that wil generate in chunk -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
so that code its not being called -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
forgot EntityPlayer player = Minecraft.getMinecraft().thePlayer; -
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?
-
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
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); -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
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); -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
witch side? -
[Modding Help]Ore Generation Trouble
opssemnik replied to ZeldaCorporation's topic in Modder Support
... 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... -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
in what method you are trying to get that?, in tickhandler?, in other block class? -
[N Help/Advice Modding] Detection Player->specificBlock [solved]
opssemnik replied to Ghoul159's topic in Modder Support
hey like u can use world.setBlockTileEntity