Jump to content

perromercenary00

Members
  • Posts

    832
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by perromercenary00

  1. i use the bow code as base to make this, cut paste i edit wat i need soo the code for varita mercenaria is a few post up. basicli im using the method public ItemStack onItemRightClick(ItemStack p_77659_1_, World world, EntityPlayer steve){ } // i get this from the bow class varamercenaria00 exist just to get two blocks coordenates i name it coordenadas1=firstclick coordenadas2=secundclick coordenadas0 is just a cache for the input from util.coordenadaDeBlockeEnFocol(world, 10); when there is two diferent coordenates loaded in coordenadas1 and coordenas2 it run util.romper(world,util.circulo( coordenadas1,coordenadas2)); and set to zero coordenadas1 and coordenas2 the magic is in util.circulo( coordenadas1,coordenadas2) who define all the block in a cilinder volumen and returit like a list of coordenates then util.romper take the world data and break all the blocks in the list late i the nigth i gona reduce the exit of system.out soo the importantings could be seen in the eclipse stoudout the trouble whith eclipse, it have a limit to the output so i can grab all the exit,
  2. SO i made little video showing this think the think jeopardizing is this [16:59:49] [Client thread/INFO] [sTDOUT] [16:59:49] [Client thread/INFO] [sTDOUT] [16:59:49] [server thread/INFO] [sTDOUT] [16:59:49] [server thread/INFO] [sTDOUT]: Client thread | Server thread wen i destroy whit the block is make a cycle on client and then a cycle on server but why this is not happening with the wand
  3. public static int conteo=0; public ItemStack onItemRightClick(ItemStack p_77659_1_, World world, EntityPlayer steve){ // System.out.println("### presss"); conteo++; System.out.println("is "+conteo+" times onItemRightClick is execute"); System.out.println("world.isRemote="+world.isRemote); coordenadas0=util.coordenadaDeBlockeEnFocol(world, 10); // util.MostrarLista(coordenadas0); it gets weirder here : 16:00:10] Player962 joined the game [16:00:20] items.varaMercenaria00:onItemRightClick:79]: is 1 times onItemRightClick is execute [16:00:20] items.varaMercenaria00:onItemRightClick:80]: world.isRemote=true [16:00:20] items.varaMercenaria00:onItemRightClick:79]: is 2 times onItemRightClick is execute [16:00:20] items.varaMercenaria00:onItemRightClick:80]: world.isRemote=false [16:00:21] items.varaMercenaria00:onItemRightClick:79]: is 3 times onItemRightClick is execute [16:00:21] items.varaMercenaria00:onItemRightClick:80]: world.isRemote=true [16:00:21] items.varaMercenaria00:onItemRightClick:107]: Tengo dos coordenadas distintas [16:00:21] .utilidades.util:romper:174]: #### romper [16:00:21] .utilidades.util:romper:191]: #### world.isRemote=true [16:00:21] .utilidades.util:romper:191]: #### world.isRemote=true _________________________________________________________________________ the world is remote true an then false an again is true in the romper part is always true anyway on item rigth click is giving my this remote world and dont think this is a bug this code was copy from the item.bow class _________________________________________________________________________ soo i made a little xperiment create a block that on click it breaks the floor under and make the world check think [server thread/INFO] [sTDOUT]: onBlockClicked:46]: se ejecuto onBlockClicked [16:47:33] [server thread/INFO] [sTDOUT]:onBlockClicked:50]: #### world.isRemote=false [16:47:33] [server thread/INFO] [sTDOUT]l:romper:174]: #### romper [16:47:33] [Client thread/INFO] [sTDOUT]:: se ejecuto onBlockClicked [16:47:33] [Client thread/INFO] [sTDOUT]:onBlockClicked:49]: #### world.isRemote=true [Client thread/INFO] [sTDOUT]:: se ejecuto onBlockActivated [16:47:49] [Client thread/INFO] : #### world.isRemote=true [16:47:49] [Client thread/INFO] #### romper [16:47:49] [Client thread/INFO] : #### world.isRemote=true [16:47:49] [Client thread/INFO: #### world.isRemote=true [server thread/INFO] [sTDOUT]:: se ejecuto onBlockActivated [16:47:49] [server thread/INFO] [sTDOUT]: #### world.isRemote=false [16:47:49] [server thread/INFO] [sTDOUT]:: #### romper
  4. strange it is what is the version of java runing , cos you have 1.7 and 1.8 intalled at same time open a cmd promp and write in java -version enter and repost what you have
  5. very confused whit this is the world is provided by the method onItemRightClick anyway this are the two principal class of this item and a video showing how works //############ package mercenary00.mercenarymod.items; import java.io.IOException; import net.minecraft.init.Items; import mercenary00.mercenarymod.utilidades.cfg; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import mercenary00.mercenarymod.Mercenary; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.IChatComponent; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowNockEvent; import mercenary00.mercenarymod.utilidades.util; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Items; import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowLooseEvent; import net.minecraftforge.event.entity.player.ArrowNockEvent; import java.util.ArrayList; public class varaMercenaria00 extends Item{ public static String name="varamercenaria00"; public static final String[] bowPullIconNameArray = new String[] {"pulling_0", "pulling_1", "pulling_2"}; @SideOnly(Side.CLIENT) private IIcon[] iconArray; private static final String __OBFID = "CL_00001777"; public static ArrayList<Integer> coordenadas0 = new ArrayList<Integer>(); public static ArrayList<Integer> coordenadas1 = new ArrayList<Integer>(); public static ArrayList<Integer> coordenadas2 = new ArrayList<Integer>(); public static boolean coor1=false; public static boolean coor2=false; //############################################################################################# public varaMercenaria00() { setUnlocalizedName(Mercenary.MODID + "_" + name); GameRegistry.registerItem(this, name); setCreativeTab(CreativeTabs.tabTools); setTextureName(Mercenary.MODID + ":" + name); this.maxStackSize = 1; this.setMaxDamage(500); this.setCreativeTab(CreativeTabs.tabCombat); } //############################################################################################# //############################################################################################# public ItemStack onItemRightClick(ItemStack p_77659_1_, World world, EntityPlayer steve){ // System.out.println("### presss"); coordenadas0=util.coordenadaDeBlockeEnFocol(world, 10); // util.MostrarLista(coordenadas0); if (util.compararListas(coordenadas2,coordenadas0)==false){ //ignorar click if (coor1){ // System.out.println("coor1 true"); if ((coor2==false)&&(util.compararListas(coordenadas0,coordenadas1)==false)){ coordenadas2=coordenadas0;coor2=true; } }else{ // System.out.println("coor1 false"); coordenadas1=coordenadas0;coor1=true; } if ((coor1)&&(coor2)){ System.out.println("Tengo dos coordenadas distintas"); util.MostrarLista(coordenadas1); util.MostrarLista(coordenadas2); coor1=false; coor2=false; //util.romper(world, util.Cuadrado(0, coordenadas1,coordenadas2)); util.romper(world,util.circulo( coordenadas1,coordenadas2)); } } //ignorar click return p_77659_1_; } }//fin de la classe //########################################################################## //########################################################################## //########################################################################## //########################################################################## //########################################################################## //########################################################################## //########################################################################## //########################################################################## //########################################################################## package mercenary00.mercenarymod.utilidades; import net.minecraft.init.Blocks; import java.io.IOException; import java.util.ArrayList; import java.util.List; import net.minecraft.init.Items; import mercenary00.mercenarymod.utilidades.cfg; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import mercenary00.mercenarymod.Mercenary; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowNockEvent; import mercenary00.mercenarymod.utilidades.util; public class util{ //################################################################################################################# //#### devuelve las coordenadas del blocke al que esta mirando steve public static ArrayList<Integer> coordenadaDeBlockeEnFocol(World world,int distancia){ //System.out.println("###coordenadaDeBlockeEnFocoL"); ArrayList<Integer> lin =new ArrayList<Integer>(); // x y z //lin.add(0);lin.add(0);lin.add(0); MovingObjectPosition mop = Minecraft.getMinecraft().renderViewEntity.rayTrace(distancia, 1.0F); //System.out.println("###mop="+mop); if(mop != null) { int blockHitSide = mop.sideHit; Block blockLookingAt = world.getBlock(mop.blockX, mop.blockY, mop.blockZ) ; int fx=(int)mop.blockX; int fy=(int)mop.blockY; int fz=(int)mop.blockZ; // System.out.println("fx="+fx+" fy="+fy+" fz="+fz); lin.add(0,fx); lin.add(1,fy); lin.add(2,fz); } // // int x=lin.get(0); // int y=lin.get(1); // int z=lin.get(2); // if (world.isAirBlock(x,y,z)) {System.out.println(">>>>>### el blocke x="+x+" y="+y+" z="+z+" es aire");} // System.out.println("x="+lin.get(0)+" y="+lin.get(1)+" z="+lin.get(2)); return lin; // } //################################################################################################################# //### devuelve la id 0 del blocke en las coordenadas public static int IDdelBlockeEn(World world, List<Integer> lin){ //int x=lin.get(0); //int y=lin.get(1); //int z=lin.get(3); Block blck = world.getBlock(lin.get(0),lin.get(1),lin.get(2)); int iblck=Block.getIdFromBlock(blck); return iblck; } //################################################################################################################# public static boolean compararListas(List<Integer> lia, List<Integer> lib){ // System.out.println("compararVectores"); int la=lia.size(),lb=lib.size();int count=0; if (la==lb){ // System.out.println("A y B miden lo mismo la="+la+" lb="+lb); for (int c=0; c < la ;c++){ // System.out.println("c="+c); int a=lia.get©,b=lib.get©; if (a==b){ count++; ;} // System.out.println("count="+count+" a="+a+" y b="+b); } } // System.out.println("count="+count+" la="+la+" lb="+lb); if ((count==la)&&(la==lb)){ return true; }else{ return false; } } //################################################################################################################# public static List<Integer> minmax(List<Integer> lia, List<Integer> lib){ System.out.println("#### \nMetodo minmax"); ArrayList<Integer> orga =new ArrayList<Integer>(); for (int or=0; or<6 ; or++ ) { orga.add(0); } int count=0; int liasize=lia.size(),libsize=lib.size(); System.out.println("x="+lia.get(0)+" y="+lia.get(1)+" z="+lia.get(2)); System.out.println("x="+lib.get(0)+" y="+lib.get(1)+" z="+lib.get(2)); System.out.println(""); if (liasize==libsize){ // System.out.println("los dos vectores miden lo mismo "); for (int c=0;c<3;c++){ int a=lia.get©; int b=lib.get©; if ( a <= b ){ orga.set( c , a ) ;} if ( a >= b ){ orga.set((c+3) , a);} if ( b <= a ){ orga.set( c , b ) ;} if ( b >= a ){ orga.set((c+3) , b);} } } return orga; } //################################################################################################################# public static void romper(World world,List<Integer> lis){ System.out.println("#### romper"); int llist=lis.size(); //longitud de la lista System.out.println("#### llist="+llist); for (int conteo=0; conteo < llist;conteo=conteo+3){ int x=lis.get(conteo),y=lis.get(conteo+1),z=lis.get(conteo+2); //Block blck = world.getBlock(x,y,z); //blck.dropBlockAsItem(world, x,y,z, 1, 1); //world.setBlock(x,y,z, Blocks.air); world.func_147480_a(x,y,z, true); if (world.isRemote){ System.out.println("#### world.isRemote=true ");} else { System.out.println("#### world.isRemote=false");} System.out.println("#### x="+x+" y="+y+" z="+z); System.out.println("#### conteo="+conteo); } } //################################################################################################################# public static ArrayList<Integer> Cuadrado(int modo,List<Integer> lia, List<Integer> lib){ ArrayList<Integer> li = new ArrayList<Integer>(); ArrayList<Integer> lo = new ArrayList<Integer>(); ArrayList<Integer> orga = new ArrayList<Integer>(); //System.out.println("antes de organizar"); //System.out.println("min x="+min[0]+" y="+min[1]+" z="+min[2]); //System.out.println("max x="+max[0]+" y="+max[1]+" z="+max[2]); orga=(ArrayList<Integer>) minmax(lia , lib); ///por si acaso organizar min y maximos System.out.println("despues de organizar"); System.out.println("min x="+orga.get(0)+" y="+orga.get(1)+" z="+orga.get(2)); System.out.println("max x="+orga.get(3)+" y="+orga.get(4)+" z="+orga.get(5)); //############################################# int xmin=orga.get(0), ymin=orga.get(1), zmin=orga.get(2); int xmax=orga.get(3), ymax=orga.get(4), zmax=orga.get(5); for(int u=zmin;u<=zmax;u++){ for(int o=ymin;o<=ymax;o++){ for(int i=xmin;i<=xmax;i++){ li.add(i); li.add(o); li.add(u); }}} //############################################# /* try { Thread.sleep (10000); } catch (Exception e) { // Mensaje en caso de que falle } */ return li; } public static void MostrarLista(List<Integer> in){ int lilong=in.size(); for (int lins=0 ; lins < lilong ; lins=lins+3){ int x=in.get(lins),y=in.get(lins+1),z=in.get(lins+2); System.out.println(lins+" > x="+x+" y="+y+" z="+z); ;} } //################################################################################################################# public static ArrayList<Integer> circulo(List<Integer> lia, List<Integer> lib){ ArrayList<Integer> li = new ArrayList<Integer>(); ArrayList<Integer> lo = new ArrayList<Integer>(); ArrayList<Integer> orga = new ArrayList<Integer>(); li.clear(); lo.clear(); orga.clear(); double xc=lia.get(0), yc=lia.get(1), zc=lia.get(2); double xr=lib.get(0), yr=lib.get(1), zr=lib.get(2); double radio= Math.sqrt(Math.pow((xc-xr),2)+Math.pow((zc-zr),2)); int radiu=(int)radio; int longitud=(int)(yc-yr); if (longitud < 0){longitud=-longitud ;} System.out.println("Radio="+radio+"\nLongitud="+longitud); //z2+x2=r2 System.out.println("cargar li"); for (int y=0 ; y<= longitud ; y++ ){ for (int x=(-radiu);x <= radiu ;x++){ double dz=Math.sqrt( Math.pow(radio,2)-Math.pow(x,2) ); //System.out.println("x="+x+" y="+y+" z="+dz); //li.add(x);li.add(y);li.add((int)dz); int zmax=(int)dz; int zmin=(int) -dz; for (int relleno=zmin; relleno <= zmax ; relleno++){ li.add(x);li.add(y);li.add(relleno); ;} //li.add(x);li.add(y);li.add((int) -dz); } } //util.MostrarLista(li); int lisize=li.size(); System.out.println("cargar lo lisize="+lisize); for (int lis=0 ; lis < lisize ; lis=lis+3){ System.out.println("lis="+lis); lo.add( (int) (xc+li.get(lis))); lo.add( (int) (yc+li.get(lis+1))); lo.add( (int) (zc+li.get(lis+2))); } return lo; } }//fin de la classe
  6. ñaaa //codigo public static void romper(World world,List<Integer> lis){ System.out.println("#### romper"); int llist=lis.size(); //longitud de la lista System.out.println("#### llist="+llist); for (int conteo=0; conteo < llist;conteo=conteo+3){ int x=lis.get(conteo),y=lis.get(conteo+1),z=lis.get(conteo+2); //Block blck = world.getBlock(x,y,z); //blck.dropBlockAsItem(world, x,y,z, 1, 1); //world.setBlock(x,y,z, Blocks.air); world.func_147480_a(x,y,z, true); //####### aqui esta la flag \/ \/ \/ if (world.isRemote){ System.out.println("#### world.isRemote=true ");} else { System.out.println("#### world.isRemote=false");} //####### aqui esta la flag /\ /\ /\ System.out.println("#### x="+x+" y="+y+" z="+z); System.out.println("#### conteo="+conteo); } } //codigo #### romper [12:43:28] [Client thread/INFO] [sTDOUT]: #### llist=12 [12:43:28] [Client thread/INFO] [sTDOUT]: #### world.isRemote=true [12:43:28] [Client thread/INFO] [sTDOUT]: #### x=221 y=77 z=342 by this code im working on a remote world?? remenber from other guides something about a class proxiserver and proxiclient is that related whith error.this
  7. i been cleaning up mi code and converting the arrays[] to ArrayList<Integer> and just figure out what happened but the problem is that when i hold the rigthclick it sends like tenthousand orders to break this specific block soo after testing it whit the ArrayList system world.func_147480_a(x,y,z, true); works breaking the block and droping in just one step blck.dropBlockAsItem(world, x,y,z, 0, 0); works make the block drops whitout destroy and world.setBlock(x,y,z, Blocks.air); delete the block as well but i see this before in others mods the blocks are destroy and drops item but still there, if try to jump in the hole i get stuck, and if i close the game and reload the world the blocks come back like nothing happend ?is nesesary to cast some kind of sorcery to get the world to save the change in the chunks ¿
  8. jejejeje is half way but i must question again public ItemStack onItemRightClick(ItemStack p_77659_1_, World world, EntityPlayer p_77659_3_){ int[] coordenadas = util.coordenadaDeBlockeEnFoco(world, 10); Block blck = world.getBlock(coordenadas[0],coordenadas[1],coordenadas[2]); blck.dropBlockAsItem(world, coordenadas[0],coordenadas[1],coordenadas[2], 0, 0); } thismake the block drop but dont destroy the block, is bad declarated or is mandatory to set the block to air whith world.setBlock(x,y,z, Block.air);
  9. goood days i know this looks noob question but i get stuck here i wanna break some blocks wuith a custom item, but idont realize how to declare this weel i been doing some research and fin this world.destroyBlock(x,y,z, true); but not work in 1.710 in some forum they say thath deprecated but there is still a world.func_147480_a(x, y,z, true); but still not work and inthe world class i found world.destroyBlockInWorldPartially(int,int,int,int,int); but i dont get how to use this and the examples well the re is no examples. and donot know the order of the int's is not clear i been triying Block blck = world.getBlock(x, y, z); int idblock=Block.getIdFromBlock(blck); int idplayer=p_77659_3_.getEntityId(); world.destroyBlockInWorldPartially(idplayer,x,y,z,-1); not work world.destroyBlockInWorldPartially(idblock,x,y,z,-1); not work ñaaaaaaaaa sooo howdo you do to destroy a block in the given coordinates xyz droping what its drops.??
  10. good days bad english advertishment i have like two days triying to figure this. a have a vara and i wand to charge this vara after shot ind a want it to change their look on the charge process so i take the bow for starting point , the bow change skin on charge using skins named bow__standby.png, bow_pulling_0.png, bow_pulling_1.png, bow_pulling_2.png soo i create mi textures for mi vara in mi textures folder modmercenario/textures/items/ varamercenaria00_pulling_0.png varamercenaria00_pulling_1.png varamercenaria00_pulling_2.png varamercenaria00_standby.png but minecraft refuses to load mi textures and insist in search in minecraft textures folder 06:47:15] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/varamercenaria00_pulling_0.png it mus be something like modmercenario:textures/items/varamercenaria00_pulling_0.png where is mi wrong doing ?? the code of mi vara //############################################################################## package mercenary00.mercenarymod.items; import java.io.IOException; import net.minecraft.init.Items; import mercenary00.mercenarymod.utilidades.cfg; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import mercenary00.mercenarymod.Mercenary; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.IChatComponent; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowNockEvent; import mercenary00.mercenarymod.utilidades.util; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Items; import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowLooseEvent; import net.minecraftforge.event.entity.player.ArrowNockEvent; public class varaMercenaria00 extends Item{ public static String name="varamercenaria00"; public static final String[] bowPullIconNameArray = new String[] {"pulling_0", "pulling_1", "pulling_2"}; @SideOnly(Side.CLIENT) private IIcon[] iconArray; private static final String __OBFID = "CL_00001777"; //############################################################################################# public varaMercenaria00() { setUnlocalizedName(Mercenary.MODID + "_" + name); GameRegistry.registerItem(this, name); setCreativeTab(CreativeTabs.tabTools); // setTextureName(Mercenary.MODID + ":" + name); this.maxStackSize = 1; this.setMaxDamage(500); this.setCreativeTab(CreativeTabs.tabCombat); } //############################################################################################# //############################################################################################# public void onPlayerStoppedUsing(ItemStack p_77615_1_, World p_77615_2_, EntityPlayer p_77615_3_, int p_77615_4_) { int j = this.getMaxItemUseDuration(p_77615_1_) - p_77615_4_; ArrowLooseEvent event = new ArrowLooseEvent(p_77615_3_, p_77615_1_, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = event.charge; boolean flag = p_77615_3_.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, p_77615_1_) > 0; if (flag || p_77615_3_.inventory.hasItem(Items.arrow)) { float f = (float)j / 20.0F; f = (f * f + f * 2.0F) / 3.0F; if ((double)f < 0.1D) { return; } if (f > 1.0F) { f = 1.0F; } EntityArrow entityarrow = new EntityArrow(p_77615_2_, p_77615_3_, f * 2.0F); if (f == 1.0F) { entityarrow.setIsCritical(true); } int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, p_77615_1_); if (k > 0) { entityarrow.setDamage(entityarrow.getDamage() + (double)k * 0.5D + 0.5D); } int l = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, p_77615_1_); if (l > 0) { entityarrow.setKnockbackStrength(l); } if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, p_77615_1_) > 0) { entityarrow.setFire(100); } p_77615_1_.damageItem(1, p_77615_3_); p_77615_2_.playSoundAtEntity(p_77615_3_, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F); if (flag) { entityarrow.canBePickedUp = 2; } else { p_77615_3_.inventory.consumeInventoryItem(Items.arrow); } if (!p_77615_2_.isRemote) { p_77615_2_.spawnEntityInWorld(entityarrow); } } } public ItemStack onEaten(ItemStack p_77654_1_, World p_77654_2_, EntityPlayer p_77654_3_) { return p_77654_1_; } /** * How long it takes to use or consume an item */ public int getMaxItemUseDuration(ItemStack p_77626_1_) { return 72000; } /** * returns the action that specifies what animation to play when the items is being used */ public EnumAction getItemUseAction(ItemStack p_77661_1_) { return EnumAction.bow; } /** * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer */ public ItemStack onItemRightClick(ItemStack p_77659_1_, World p_77659_2_, EntityPlayer p_77659_3_) { ArrowNockEvent event = new ArrowNockEvent(p_77659_3_, p_77659_1_); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return event.result; } if (p_77659_3_.capabilities.isCreativeMode || p_77659_3_.inventory.hasItem(Items.arrow)) { p_77659_3_.setItemInUse(p_77659_1_, this.getMaxItemUseDuration(p_77659_1_)); } return p_77659_1_; } /** * Return the enchantability factor of the item, most of the time is based on material. */ public int getItemEnchantability() { return 1; } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister p_94581_1_) { System.out.println("###### registerIcons"+this.getIconString()); //this.itemIcon = p_94581_1_.registerIcon(this.getIconString() + "_standby"); this.itemIcon = p_94581_1_.registerIcon("varamercenaria00" + "_standby"); this.iconArray = new IIcon[bowPullIconNameArray.length]; for (int i = 0; i < this.iconArray.length; ++i) { //this.iconArray = p_94581_1_.registerIcon(this.getIconString() + "_" + bowPullIconNameArray); this.iconArray = p_94581_1_.registerIcon("varamercenaria00" + "_" + bowPullIconNameArray); System.out.println("###### "+"varamercenaria00" + "_" + bowPullIconNameArray); } } /** * used to cycle through icons based on their used duration, i.e. for the bow */ @SideOnly(Side.CLIENT) public IIcon getItemIconForUseDuration(int p_94599_1_) { System.out.println("###### getItemIconForUseDuration"+ p_94599_1_ ); return this.iconArray[p_94599_1_]; } } //##############################################################################
  11. Good days. in the tlor mod and minecraftcamealive the npc speak to player trougth the chat window, how do they do that? im positively sure is it not System.out.println();
  12. goods days now a been working whit tutorial for the metablocks following this http://www.orangetutorial.com/metadata-blocks/#sthash.5mplJKtA.dpbs, well i wanna do something that is not in this tutorial, i wan metablockes whit the same texture but different boundaries soo long I'm been trying this from google public void setBlockBoundsForItemRender(int metadata){ System.out.println("############### Blockes Bounds"); switch (metadata) { case 0: setBlockBounds(0, 0.7F, 0, 1, 1, 1); break; case 1: setBlockBounds(0, 0, 0, 1.0F, 0.3F, 1.0F); break; case 2: setBlockBounds(0.25F, 0, 0.25F, 0.75F, 0.4375F, 0.75F); break; } } an is not working forge is event entering in the method soo there in not mesage "############### Blockes Bounds" but eclipse don't tag this like an error, it run but all the blocks are at full 1m^3 what i wanna du is for example create meta blocks 00 01 02 blocks00 = slab blocks01 = wall blocks02 = vertical slab the question is. Is Right to use the method setBlockBoundsForItemRender() whit metablockes, or i just have it bad declared.
  13. Solve the part of the method to return the block cordenadas on click public ItemStack onItemRightClick(ItemStack p_77659_1_, World p_77659_2_, EntityPlayer p_77659_3_){ //########################################### System.out.println("###########################################"); MovingObjectPosition mop = Minecraft.getMinecraft().renderViewEntity.rayTrace(20, 1.0F); if(mop != null) { int blockHitSide = mop.sideHit; Block blockLookingAt = p_77659_2_.getBlock(mop.blockX, mop.blockY, mop.blockZ) ; float fx=mop.blockX; float fy=mop.blockY; float fz=mop.blockZ; System.out.println("fx="+fx+" fy="+fy+" fz="+fz); } } but still need the list.
  14. Good days bad english advertishment. im in neeed of another method, this time a have an item called "itemMercenario00" i whish this method on rigth click on a block whit this item in hand return the coordenadas x y z of the block, like entitiplayer.getOnfocusBlockCordenadas(entity , x, y, z); example, i have a custom stick on mi hand, hit a block whit the stick , it return position(x, y, z); of the block hit. in the other hand i been played minecraft just like a year and half, and beging whi this of the mods this sunday, soo im very newbii whith this is there somewhere a list of everymethod avaliable in 1.7.10 something sorted like the java documentation but filled whit the notch teachings ??
  15. its something. iwass figthing whit miself and then i find the answer the answer is converthe block to string System.out.println("onNeighborBlockChange"); int x=84, y=80, z=269; if (world.getBlock(x, y, z) == Blocks.water ){ System.out.println("es agua lo que hay en el blocke"); }else{ System.out.println("no se que sera este blocke"); } String sb= world.getBlock(x, y, z).toString(); System.out.println("String sb= "+sb); ]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:52]: onNeighborBlockChange [12:55:58] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:59]: es agua lo que hay en el blocke [12:55:58] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:64]: String SB= net.minecraft.block.BlockStaticLiquid@6e4a6525 [12:56:35] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:52]: onNeighborBlockChange [12:56:35] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:61]: no se que sera este blocke [12:56:35] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:64]: String SB= mercenary00.mercenarymod.blocks.mercenaryBlock@161020ce [12:56:59] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:52]: onNeighborBlockChange [12:56:59] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:61]: no se que sera este blocke [12:56:59] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:64]: String SB= net.minecraft.block.BlockStainedGlass@26ddc9d4 [12:56:59] [server thread/INFO] [sTDOUT]: [mercenary00.mercenarymod.blocks.mercenaryBlock:onNeighborBlockChange:52]: onNeighborBlockChange i have a question more about of method but thats another treath very gratefull
  16. Goods days bad english advertisment im doing a mod and ineed to know what block is in certain point in the space (x,y,z) soo example i need to know if the block a just put is two spaces over a block of wood, google tell mi about this method world.getBlockId() but i dont find it in eclipse 1.7.10. soo this method is wrong, has a change name is ths version o r was replaced by something else there is a pice of mi code ################################################### public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_){ System.out.println("se ejecuto onBlockActivated"); int x1=x; int y1=y-2; int z1=z; int blockID = world.getBlockId(x1,y1,z1); //.getBlockId(x, y, z); /* //piece of the code from google if(blockID != 0) //air has no block representation { Block.blocksList[blockID].translateBlockName(); }//84 80 269 */ return true; } is this deprecated or is just malformed ??
  17. no idont getit yet mein preinit ############################################### @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { blocKe00 = new blocKe00(); blocKe01 = new blocKe01(); blocKe02 = new blocKe02(); blocKe03 = new blocKe03(); blocKe04 = new blocKe04(); } ############################################### //blocKe01.jar package mercenary00.mercenarymod.blocks; import java.util.Random; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import mercenary00.mercenarymod.Mercenary; public class blocKe01 extends Block { private String name = "blocke01"; //notese the lowercase "k" public blocKe01(){ super(Material.iron); this.setCreativeTab(CreativeTabs.tabBlock); this.setBlockName(Mercenary.MODID + "_" + name); setBlockTextureName(Mercenary.MODID + ":" + name); GameRegistry.registerBlock(this, name); } public boolean onBlockActivated(World world, int x2, int y2, int z2, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_){ System.out.println("se ejecuto onBlockActivated"); //################################################################ int x3=x2+1; world.setBlock(x3, y2, z2, blocKe00 ); //here is the thing i want to create a new block 00 next to the 01 everitime i rigth click it return true; } } alll this blocks are the same exept name and textures the plan is that one block create the next on rigth click and soo on, making this esperimentss whit vanilla blocks work. but i want my blocks world.setBlock(x3, y2, z2, blocKe00 ) //crash the game
  18. good days bad English advertishment! i have some trouble using the command cos i don't know how forge is internally naming mi blocks the troubleson command is world.setBlock(x4, y2, z4, Blocks.iron_block); if a use this this way if creates and iron block wherever i tell him to do so , now i want to create in the world one of mi custom blocks and don't have the minus idea of how Blocks.iron_block = vanilla iron block mi mod has the name MODID = "modmercenario"; and my blocks are in the route /home/tenchi/Modding/forge-1.7.10-1230-src/src/main/java/mercenary00/mercenarymod/blocks the block iwanna use has the names in the lang file tile.modmercenario_blocke00.name=blocke00 the block loads has histexture working the name is also well in the materials tab soo long i been tried world.setBlock(x2, y2, z2, Blocks.blocke00); // Creates iron Block but in Blocks are none of mi blocks world.setBlock(x2, y2, z2, modmercenario.blocke00); //game crash world.setBlock(x2, y2, z2, modmercenario:blocke00); //game crash world.setBlock(x2, y2, z2, modmercenario_blocke00); //game crash world.setBlock(x2, y2, z2, tile.modmercenario_blocke00.name); //game crash sooo ?? how is forge naming my blocke00 ¿¿ ################################## THi answer is world.setBlock(x2, y2, z2, modBlocks.blocke00 );
  19. Good nigths the error was a missing dependencies afther ramdom google a tin of luck and the command ./gradlew clean setupDecompWorkspace ${ide} --refresh-dependencies it download the missings and now is working
  20. good days bad english advertisment ibeen triying to set up eclipse to work mods for 1.7.10 but the thing dont load or end whit a bunch of errors, and idont know whats is wrong but the eclipse folder is empty , and i been doing this before whit 1.7.2 so lets see Os: Debian GNU/Linux 7 64b 3.2.0-4-amd64 java 1.8.0_11 64-Bit oracle versión manualy instaled javac 1.8.0_11 64-Bit oracle versión manualy instaled eclipse-luna 4.4.0 tar.gz manualy instaled forge-1.7.10-10.13.0.1199 if i doo a hellOword indeed it works; sooo _________________________________________________________________________________________________ wget -c http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1199/forge-1.7.10-10.13.0.1199-src.zip tenchi@debian:~/Modding$ mkdir 1199 tenchi@debian:~/Modding$ mv forge-1.7.10-10.13.0.1199-src.zip 1199/ tenchi@debian:~/Modding$ cd 1199/ tenchi@debian:~/Modding/1199$ unzip forge-1.7.10-10.13.0.1199-src.zip Archive: forge-1.7.10-10.13.0.1199-src.zip inflating: forge-1.7.10-10.13.0.1199-changelog.txt inflating: LICENSE-fml.txt inflating: CREDITS-fml.txt inflating: MinecraftForge-License.txt inflating: MinecraftForge-Credits.txt inflating: gradlew inflating: gradlew.bat inflating: README.txt creating: src/ creating: src/main/ creating: src/main/java/ creating: src/main/java/com/ creating: src/main/java/com/example/ creating: src/main/java/com/example/examplemod/ inflating: src/main/java/com/example/examplemod/ExampleMod.java creating: src/main/resources/ inflating: src/main/resources/mcmod.info creating: eclipse/ creating: eclipse/.metadata/ creating: eclipse/.metadata/.plugins/ creating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/ creating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/ inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.usagedata.gathering.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs inflating: eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs creating: eclipse/.metadata/.plugins/org.eclipse.debug.ui/ inflating: eclipse/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml creating: eclipse/.metadata/.plugins/org.eclipse.core.resources/ creating: eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/ creating: eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/Minecraft/ inflating: eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/Minecraft/.location creating: eclipse/.metadata/.plugins/org.eclipse.core.resources/.root/ inflating: eclipse/.metadata/.plugins/org.eclipse.core.resources/.root/0.tree creating: eclipse/.metadata/.plugins/org.eclipse.debug.core/ creating: eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/ inflating: eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Client.launch inflating: eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Server.launch inflating: build.gradle creating: gradle/ creating: gradle/wrapper/ inflating: gradle/wrapper/gradle-wrapper.jar inflating: gradle/wrapper/gradle-wrapper.properties ##########################################3 tenchi@debian:~/Modding/1199$ ./gradlew setupDecompWorkspace Download http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/3.5.200-v20140224-1527/preferences-3.5.200-v20140224-1527.pom Download http://repo1.maven.org/maven2/org/eclipse/equinox/registry/3.5.400-v20140428-1507/registry-3.5.400-v20140428-1507.pom Download http://repo1.maven.org/maven2/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.pom Download http://repo1.maven.org/maven2/org/eclipse/core/jobs/3.6.0-v20140424-0053/jobs-3.6.0-v20140424-0053.pom Download http://repo1.maven.org/maven2/org/eclipse/core/contenttype/3.4.200-v20140207-1251/contenttype-3.4.200-v20140207-1251.pom Download http://repo1.maven.org/maven2/org/eclipse/equinox/app/1.3.200-v20130910-1609/app-1.3.200-v20130910-1609.pom Download http://repo1.maven.org/maven2/org/eclipse/core/runtime/3.10.0-v20140318-2214/runtime-3.10.0-v20140318-2214.pom Download http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/1.2-SNAPSHOT/ForgeGradle-1.2-20140806.222429-158.jar Download http://repo1.maven.org/maven2/org/eclipse/equinox/common/3.6.200-v20130402-1505/common-3.6.200-v20130402-1505.jar Download http://repo1.maven.org/maven2/org/eclipse/equinox/registry/3.5.400-v20140428-1507/registry-3.5.400-v20140428-1507.jar Download http://repo1.maven.org/maven2/org/eclipse/equinox/app/1.3.200-v20130910-1609/app-1.3.200-v20130910-1609.jar Download http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/3.5.200-v20140224-1527/preferences-3.5.200-v20140224-1527.jar Download http://repo1.maven.org/maven2/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar Download http://repo1.maven.org/maven2/org/eclipse/core/jobs/3.6.0-v20140424-0053/jobs-3.6.0-v20140424-0053.jar Download http://repo1.maven.org/maven2/org/eclipse/core/contenttype/3.4.200-v20140207-1251/contenttype-3.4.200-v20140207-1251.jar Download http://repo1.maven.org/maven2/org/eclipse/core/runtime/3.10.0-v20140318-2214/runtime-3.10.0-v20140318-2214.jar The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/.. **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** :extractUserDev Download http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1199/forge-1.7.10-10.13.0.1199-userdev.jar :extractNatives :genSrgs :getAssetsIndex :getAssets :makeStart Download http://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.pom Download http://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1.pom Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.pom Download http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.pom Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.pom Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.pom Download http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom Download http://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.pom Download https://libraries.minecraft.net/com/mojang/realms/1.3.1/realms-1.3.1.pom Download https://libraries.minecraft.net/com/mojang/authlib/1.5.16/authlib-1.5.16.pom Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0.pom Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.pom Download http://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom Download http://repo1.maven.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom Download http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.pom Download http://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar Download http://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar Download http://files.minecraftforge.net/maven/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar Download http://files.minecraftforge.net/maven/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar Download http://files.minecraftforge.net/maven/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar Download https://libraries.minecraft.net/com/mojang/realms/1.3.1/realms-1.3.1.jar Download https://libraries.minecraft.net/com/mojang/authlib/1.5.16/authlib-1.5.16.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar Download http://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar Download http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar warning: [options] bootstrap class path not set in conjunction with -source 1.6 1 warning :downloadMcpTools :downloadClient SKIPPED :downloadServer SKIPPED :mergeJars SKIPPED :deobfuscateJar Applying SpecialSource... INFO: merging AccessMap net/minecraft/item/ItemBlock/field_150939_a from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1) Applying Exceptor... :decompile :processSources Injecting fml files Applying fml patches Applying forge patches :remapJar :extractMinecraftSrc :recompMinecraft warning: [options] bootstrap class path not set in conjunction with -source 1.6 Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 warning :repackMinecraft :setupDecompWorkspace BUILD SUCCESSFUL Total time: 15 mins 18.52 secs tenchi@debian:~/Modding/1199$ ##################################### tenchi@debian:~/Modding/1199$ ./gradlew eclipse The assetDir is deprecated! Use runDir instead! runDir set to eclipse/assets/.. **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** :eclipseClasspath Download http://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3-sources.jar Download http://repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3-javadoc.jar Download http://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1-sources.jar Download http://repo1.maven.org/maven2/com/typesafe/config/1.2.1/config-1.2.1-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1-javadoc.jar Download https://libraries.minecraft.net/com/mojang/authlib/1.5.16/authlib-1.5.16-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/scala-actors/2.11.0/scala-actors-2.11.0-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2-javadoc.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1-sources.jar Download http://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1-javadoc.jar Download http://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0-sources.jar Download http://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0-javadoc.jar Download http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2-sources.jar Download http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2-javadoc.jar :eclipseJdt :eclipseProject :eclipse BUILD SUCCESSFUL Total time: 10 mins 27.239 secs ####################################################3 fireOn luna and set the workspace to /home/tenchi/Modding/1199/eclipse compile to test the state of the minecraft and thats it : Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release [19:32:13] [main/INFO] [GradleStart]: No arguments specified, assuming client. [19:32:13] [main/INFO] [GradleStart]: Extra: [] Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: /home/tenchi/.gradle/caches/minecraft/assets/indexes/{ASSET_INDEX}.json (No existe el fichero o el directorio) at com.google.common.base.Throwables.propagate(Throwables.java:160) at GradleStart.setupAssets(GradleStart.java:274) at GradleStart.startClient(GradleStart.java:82) at GradleStart.main(GradleStart.java:56) Caused by: java.io.FileNotFoundException: /home/tenchi/.gradle/caches/minecraft/assets/indexes/{ASSET_INDEX}.json (No existe el fichero o el directorio) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at GradleStart.loadAssetsIndex(GradleStart.java:280) at GradleStart.setupAssets(GradleStart.java:218) ... 2 more ________________________________________________________ and tath is. the eclipse folder is empty
  21. Buenos días Que método se utiliza para conocer la posición xyz de Steve o de un bloque en particular Es que estoy comenzando con esto del moding recién e aprendido a crear bloques multi textura y quiero que el bloque que e creado asigne las texturas de las caras con respecto ala posición de steve, así como con el furnace//horno que queda siempre dando la cara asía donde este steve sin importar como lo coloque lo otro que quiero saber es que como hacer que el blocke reaccione cuando steve le da clic derecho, así como las puertas que al darle clic derecho cambian abriendo o cerrandoce ?? existe ya una guía con la explicación de esos métodos??
×
×
  • Create New...

Important Information

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