Jump to content

perromercenary00

Members
  • Posts

    832
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by perromercenary00

  1. i get something Minecraft mc = Minecraft.getMinecraft(); EntityPlayer playerIn= mc.thePlayer; World worldIn=mc.theWorld; World worldOn= playerIn.getEntityWorld(); System.out.println("es worldIn remoto ="+worldIn.isRemote); System.out.println("es worldIn remoto ="+worldOn.isRemote); System.out.println("Entity steve Nombre="+playerIn.getDisplayNameString() ); ItemStack hand=playerIn.getHeldItem(); System.out.println("Entity steve in hand="+hand.getUnlocalizedName()); if i create an object from the minecraft class i can extrac from there the user and the world but just the remote world and i need the local the other thinks is. here i just have mi player in the developmen environment if iuse Minecraft mc = Minecraft.getMinecraft(); EntityPlayer playerIn= mc.thePlayer; in a lan party it will always get mi user or gona get mixed whith the users of the other players?
  2. i just resolve how to play sounds yesterday how do you do that ? the method i been using play the sound over the head of steve for it needs the value of the world in which steve is and the entitityplayer representing steve entity to get the coordinates where steve is worldIn.playSoundAtEntity(playerIn, "modmercenario:neutro", 1.0F, 1.0F); is a method to play a sound all over the place (loaded chuncks) in all the worlds at the same time ?
  3. well mi mod has a keybindclass named KeyInputHandler wen press '+' or '-'in the keyboard it executes public static void up(){ gear++; mgear(); } or public static void down(){ gear--; mgear(); } thats execute mgear and mgear play a sound wen int gear is zero and call gearbox_display.settextura("numero"+gear); that class is an item an has a method to change the texture of the item based on the int gear value soo first go the keyhandler but keyhandler dont have world value or entityplayer value and i need those two to play a sound
  4. well i need to play a sound from a custom class, not an item or block class, to do dat i need the current world and the player EntityPlayer. worldIn.playSoundAtEntity(playerIn, "modmercenario:neutro", 1.0F, 1.0F); for that I need to extract the current EntityPlayer and the local world from somewhere else i was searching methods in minecraft class but nothing that could serve me like a clock or the compas must work in the inventory whithout need of click this class was created to change the texture of an indicator item and depend on mi keybindings class, iwanna make it give mi sounds ass well wen the gearbox value change //gearbox.java //_____________________________ package mercenarymod.utilidades; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import mercenarymod.items.display.gearbox_display; public class gearbox{ public static int gear = 0; public static int getgear(){return gear;} public static void setgear(int g){gear=g;} public static int limite = 5; public static int getlimite(){return limite;} public static void setlimite(int l){limite=l;gear=0;} public static World worldIn=null; public static EntityPlayer playerIn=null; public static void up(){ gear++;mgear(); } public static void down(){ gear--;mgear(); } public static String mgear(){ if (gear<=0){ gear=0; gearbox_display.settextura("numeron"); worldIn.playSoundAtEntity(playerIn, "modmercenario:neutro", 1.0F, 1.0F); return ""+gear;} if (gear>=limite){gear=limite;} gearbox_display.settextura("numero"+gear); System.out.println("gear="+gear); return ""+gear; } public gearbox(){;} } //_________________________________________
  5. good days im leaving this mini guide here for miself later retake wen ned. well first i wanna set a simple sound for an item nothing complicated soo i gonna take the sound file Rhapsody of Fire - Dark Wings of Steel [2013] 320/11 - Sad Mystic Moon.mp3 and i gona converit to ogg using the sound converter tool from linux and chop the name to sadmistickmoon.ogg this sadmistickmoon.ogg i gonna put in mi mod sounds folder forge-1.8-11.14.0.1261-1.8-src/src/main/resources/assets/modmercenario/sounds/sadmistickmoon.ogg now the json file , this one is a little tricky there is this colon ', ' must be wached because it can fuck all the file forge-1.8-11.14.0.1261-1.8-src/src/main/resources/assets/modmercenario/sounds.json //__________________________________________________________ { "taladro": { "category": "player", "sounds": [ "taladro" ] }, "neutro": { "category": "player", "sounds": [ "n" ] }, "smm": { "category": "player", "sounds": [ "sadmistickmoon" ] } } //__________________________________________________________ there is only tree sounds files declarated in this json and now the colon thing is at the end of every sound line there must be a colon at the end but never in the last one if you let the colon in the last one or omit the colon in any other line minecraft wont gonna load the file and surprise no custom sounds just one one error and nothing works now to play the sound you must writte this in the item you wanna use whit, mi MODID name is "modmercenario" and this is in the onItemRightClick of mi testingItem public ItemStack onItemRightClick(ItemStack sierra, World worldIn, EntityPlayer playerIn){ //plays taladro worldIn.playSoundAtEntity(playerIn, "modmercenario:taladro", 1.0F, 1.0F); //plays neutro worldIn.playSoundAtEntity(playerIn, "modmercenario:neutro", 1.0F, 1.0F); //plays sad mistic moon worldIn.playSoundAtEntity(playerIn, "modmercenario:smm", 1.0F, 1.0F); } when i fireup minecraft take the testitem on mi hand and press rigth click it sounds first taladro then neutro and sadmistic moon is like all at the same time, but the sound dont gonna move whith steve is like a music box whit a disk if you move ten meters far there is no sound if you get close again there is again the sound .
  6. i just get this fixed in google i found another tutorial but this was complete the trouble is there is a mising line FMLCommonHandler.instance().bus().register(new mercenarymod.utilidades.KeyInputHandler()); mercenarymod.utilidades.KeyBindings.init(); and the two lines must be in preinit. so first create KeyBindings.java then second create KeyInputHandler.java thirth put the two lines in the preinit of the principal class in my case Mercenary.java the other tutorial. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2112337-1-7-2-forge-help-gui-tutorial and my principal class //________________________________________________________- // Mercenary.java package mercenarymod; import mercenarymod.blocks.MercenaryModBlocks; import mercenarymod.items.MercenaryModItems; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; @Mod(modid = Mercenary.MODID, version = Mercenary.VERSION) public class Mercenary { public static final String MODID = "modmercenario"; public static final String VERSION = "1.1"; @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); MercenaryModBlocks.init(); MercenaryModItems.init(); MercenaryModRecipes.init(); FMLCommonHandler.instance().bus().register(new mercenarymod.utilidades.KeyInputHandler()); mercenarymod.utilidades.KeyBindings.init(); } @Mod.EventHandler public void init(FMLInitializationEvent event) { MercenaryModTexturas.init(); } @Mod.EventHandler public void postInit(FMLPostInitializationEvent event) { } public static CreativeTabs herramientas = new CreativeTabs("Herraminetas armas y armaduras mercenarias") { @Override @SideOnly(Side.CLIENT) public Item getTabIconItem() { return MercenaryModItems.aceroMercenario; } }; public static CreativeTabs materiales = new CreativeTabs("materiales mercenarios") { @Override @SideOnly(Side.CLIENT) public Item getTabIconItem() { return MercenaryModItems.nokiaMercenaria; } }; }//fin de la clase
  7. jumm i just folow this http://www.minecraftforge.net/wiki/Key_Binding soo in mi folder forge-1.8-11.14.0.1261-1.8-src/src/main/java/mercenarymod/utilidades/ i create //KeyBindings.java //__________________________________________________________ package mercenarymod.utilidades; import org.lwjgl.input.Keyboard; //import net.java.games.input.Keyboard; import net.minecraft.client.settings.KeyBinding; import net.minecraftforge.fml.client.registry.ClientRegistry; public class KeyBindings { // Declare two KeyBindings, ping and pong public static KeyBinding ping; public static KeyBinding pong; public static void init() { // Define the "ping" binding, with (unlocalized) name "key.ping" and // the category with (unlocalized) name "key.categories.mymod" and // key code 24 ("O", LWJGL constant: Keyboard.KEY_O) ping = new KeyBinding("key.ping", Keyboard.KEY_O, "key.categories.MercenaryMod"); // Define the "pong" binding, with (unlocalized) name "key.pong" and // the category with (unlocalized) name "key.categories.mymod" and // key code 25 ("P", LWJGL constant: Keyboard.KEY_P) pong = new KeyBinding("key.pong", Keyboard.KEY_P, "key.categories.MercenaryMod"); // Register both KeyBindings to the ClientRegistry ClientRegistry.registerKeyBinding(ping); ClientRegistry.registerKeyBinding(pong); } } //_____________________________________________________________ //and create too //KeyInputHandler.java //_____________________________________________________________ package mercenarymod.utilidades; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.InputEvent; //import cpw.mods.fml.common.eventhandler.SubscribeEvent; //import cpw.mods.fml.common.gameevent.InputEvent; public class KeyInputHandler { @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { if(KeyBindings.ping.isPressed()) System.out.println("ping"); if(KeyBindings.pong.isPressed()) System.out.println("pong"); } } //_____________________________________________________________ ¿but where the fucks goes this line? FMLCommonHandler.instance().bus().register(new mercenarymod.utilidades.KeyBindings()); putit in preinit, noting happen when press 'p' or 'o' nothing in the controls menu putit in init, noting happen when press 'p' or 'o' nothing in the controls menu putit in postinit, noting happen when press 'p' or 'o' nothing in the controls menu all the code seems to be rigth in eclipse.
  8. good in other days play whith applets i cand bind a keyboard key to some funcion in java using an actionListener like jump when hit spacebar but in minecraft what is the name of the class in charge of this, ? and there is this menu to change the keybinds that every mod uses how do you do for the mod to be settable in the options / controls menu
  9. good days i have create a item testitem whit a nbt tag static NBTTagCompound ns = new NBTTagCompound(); public static NBTTagCompound getNBT(){return ns;} ns.setInteger("gearbox", 0); lets say there is two user in a server player1 and player2 and the two have the testitem if the player2 change the value of gearbox to 5 ¿ the testitem from the player will change to ? es que idont have two pcs to make the test here .
  10. if i have a set of items created in the forge i have like nine, and then you remove some of this then ids get messed up in the world, the relation texture <==> itemid get messed up and or you get mixed items whit wrong texture or some items will not load any texture although everithing is rigth whit the json the textures and the testuse register class how do you solved ? dont now, but if you fireup the minecraft and create another world in this world the textures go back to work normal
  11. At least realize how to use the ModelBakery is harder when no examples are avaliable firts is true you can create a custome texture linkid to a custom json file no matter names .but you must load this json whith an existing item no matter what but existing and registered here an example: i take a ramdom picture from internet this http://www.mildred.co/issueassets/22/14RSpaperbagdog.jpg download resize convert to png whit gimp and named ramdon.png, store in forge-1.8-11.14.0.1261-1.8-src/src/main/resources/assets/modmercenario/textures/items/ramdom/ramdon.png then a create a json file in forge-1.8-11.14.0.1261-1.8-src/src/main/resources/assets/modmercenario/models/item/namedhowiwant.json and set like this _____________________________________________ { "parent": "builtin/generated", "textures": { "layer0": "modmercenario:items/ramdom/ramdon" }, "display": { "thirdperson": { "rotation": [ 0, 90, -35 ], "translation": [ 0, 1.25, -3.5 ], "scale": [ 0.85, 0.85, 0.85 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } ________________________________________________ then in mi register textures file, mi case MercenaryModTexturas i set namedhowiwant to the apple item, whatever item you chose work ModelBakery.addVariantName(Items.apple, new String[]{"modmercenario:namedhowiwant"}); the apple item is not afected in any way just used force minecraft to load namedhowiwant.json and now i can use namedhowiwant.json to set the texture of what ever mi items i whant registrarTextura.item(MercenaryModItems.espada_carbon_carbon,0,"namedhowiwant"); now this sword has the doogy image from internet loaded like texture // i set method registrarTextura.item(item , metadata , jsonName); way to shorten code
  12. i been experiment whit code i found something if i take my multiitem and do registrarTextura.item(MercenaryModItems.multitextura,0,"multitextura"); registrarTextura.item(MercenaryModItems.multitextura,1,"pica_carbon_carbon"); registrarTextura.item(MercenaryModItems.multitextura,2,"pala_carbon_carbon"); but thas mi resgistrar textura class and is equal to doo Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 0, new ModelResourceLocation("modmercenario:multitextura" , "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 1, new ModelResourceLocation("modmercenario:pica_carbon_carbon" , "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 2, new ModelResourceLocation("modmercenario:pala_carbon_carbon" , "inventory")); whith that i get mi multitexture subitems get multitextura0 whith texture 0 like it must be multitextura1 whith mi pica texture multitextura2 whith mi pala texture if i could make custome files.json whithout declarated and item whit the same it would be great .
  13. is become two post for the same issue i got the thread for the multiitem / sub item in http://www.minecraftforge.net/forum/index.php/topic,25827.0.html i gto something new there
  14. is become two post for the same issue i got the thread for the multiitem / sub item in http://www.minecraftforge.net/forum/index.php/topic,25827.0.html i gto something new there
  15. can you give me an example , when i look in the minecraft code coal and charcoal has diferents jsons named coal.json and charcoal.json the same goes for the inks
  16. well i have pictures to show its happend this is the rigth order whit the rigth textures loaded notese the firsitem name modmercenario_aceroMercenario which i take the icon for the tab https://www.dropbox.com/s/20x37i8l10ovt8q/texturaBien.png?dl=0 then i exchange positions in the MercenaryModItems class to look like this barradeAcero = new mercenarymod.items.materiales.barradeAcero(); // Item Id=4097 aceroMercenario = new mercenarymod.items.materiales.aceroMercenario(); // Item Id=4096 and now the textures are exchanged even the tab icon is afected barradeAcero has now the texture of aceroMercenario , and aceroMercenario has the texture for barradeAcero https://www.dropbox.com/s/y1wuajmzkxlfogk/texturaInterCambiada.png?dl=0
  17. you have a bigger mod than mine for sure ?? you have only one mod loaded in the forge at time maiby the losing ids are in other set of items can you do this trick in one item not loading the texture change the ModelResourceLocation to the one of a item whit a working texture like i have this Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 0, new ModelResourceLocation("modmercenario:multitextura" , "inventory")); if i change it to this Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 0, new ModelResourceLocation("modmercenario:carbonoMercenario" , "inventory")); i get the item multitextura loading the texture from carbonoMercenario
  18. i been harvesting the minecraft classes for hours and just dont ge it. i create a meta item named multitextura using like model items.coal and i have the multitextura showing all the six subitems i set in mi custom but is not loading the textures well if i declare textures using Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.multitextura, 0, new ModelResourceLocation("modmercenario:multitextura" , "inventory")); it load the texture just for the item multitextura0, the tutorial say i must add ModelBakery.addVariantName(MercenaryModItems.multitextura, new String[]{"multitextura1", "multitextura2", "multitextura3"}); notese i have create multitextura1.json multitextura2.json multitextura3.json pointing to the textures to this sub items but is not working and fuckup the texture for multitextura single item scavengin the code i found in net.minecraft.client.resources.model.ModelBakery in the line 354 the coal charcoal declaration and i been using that for example and .minecraft/versions/1.8/1.8/assets/minecraft/models/item/charcoal.json .minecraft/versions/1.8/1.8/assets/minecraft/models/item/coal.json for my json's files soo what im doing wrong can someone point mi in the direction or an example of subitems working ?? here is the code _________________________________________________________________________ package mercenarymod.items.multitextura; import java.util.List; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.init.Items; import net.minecraft.stats.StatList; import net.minecraft.world.World; import mercenarymod.materialesMercenarios; import mercenarymod.Mercenary; 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.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class multitextura extends Item{ public static String name = "multitextura"; public multitextura(){ // setUnlocalizedName(Mercenary.MODID + "_" + name); GameRegistry.registerItem(this, name); setCreativeTab(Mercenary.herramientas); this.setHasSubtypes(true); this.maxStackSize = 1; ;} public String getUnlocalizedName(ItemStack stack) { int m= stack.getMetadata(); if (m == 0){return name+"0" ;} if (m == 1){return name+"1" ;} if (m == 2){return name+"2" ;} if (m == 3){return name+"3" ;} if (m == 4){return name+"4" ;} if (m == 5){return name+"5" ;} return name+"0"; } @SideOnly(Side.CLIENT) public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) { subItems.add(new ItemStack(itemIn, 1, 0)); subItems.add(new ItemStack(itemIn, 1, 1)); subItems.add(new ItemStack(itemIn, 1, 2)); subItems.add(new ItemStack(itemIn, 1, 3)); subItems.add(new ItemStack(itemIn, 1, 4)); subItems.add(new ItemStack(itemIn, 1, 5)); } }
  19. hey you are the guy from realistic surviver i think i know what is happening and i tink is a bug very rare but idont wana write that long again here is the post i have trouble whit mixed textures and found that feature / bug http://www.minecraftforge.net/forum/index.php/topic,25815.0.html
  20. good days changes to this version at first seemed to me to give me an easy way to do complex things, but now I'm pretty annoyed with what and found well to set a texture to an item you must first create the class without the this.settexture tag, second you must create a file .json pointing to the texture file you want to mount, third must create texture in png format, for you must register this texture whith this item seting the metadata number zero for default whith Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.potato , 0 , new ModelResourceLocation("modmercenario:"+"potato" , "inventory")); and this must be done in the init() section of the principal class of the mod , not preinit but init don´t posinit but wen you create multiplex items the textures get mixed and the you have the pala_carbon_carbon spade whit the texture of the charcoalCompreso and thus for the rest. i discovered that the order in which the objects in the itemmodfile affects the order in which the texture is loaded, so i create a custom tab then send all my items to that custom tab to see the order in which minecraft hass establish the ids and then put the objects in that order in my modItems class. witch solves the problem of textures mixed. the second feature / bug I found is that for minecraft accept a .json a png texture must be a registered item with exactly the same name as the json which means that for minecraft accept the potato.json must be an item named exactly potato I wanted to create a meta potato with different textures implying different json file named potato0.json potato1.json potato2.json pointing to the three textures but minecraft just get the texture from potato.json ignoring the others. adding mi moditemsfile to clarificate the thing whit the textures mixed package mercenarymod.items; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import mercenarymod.blocks.MercenaryModBlocks; import mercenarymod.Mercenary; public final class MercenaryModItems{ //materiales 9 public static Item carbonoMercenario; public static Item inertebarradeCarbon; public static Item hierroAlrojo; public static Item nokiaMercenaria; public static Item obsidianaMercenaria; public static Item coalCompreso; public static Item charcoalCompreso; public static Item aceroMercenario; public static Item barradeAcero; public static Item espada_carbon_carbon; public static Item hacha_carbon_carbon; public static Item pica_carbon_carbon; public static Item hoe_carbon_carbon; public static Item pala_carbon_carbon; public static Item multitextura; public static Item papa; public static void init(){ // if this is not the order in which minecraft set the id numbers the textures get mixed aceroMercenario = new mercenarymod.items.materiales.aceroMercenario(); // Item Id=4096 barradeAcero = new mercenarymod.items.materiales.barradeAcero(); // Item Id=4097 inertebarradeCarbon= new mercenarymod.items.materiales.inertebarradeCarbon(); // Item Id=4098 hierroAlrojo = new mercenarymod.items.materiales.hierroAlrojo(); // Item Id=4099 coalCompreso = new mercenarymod.items.materiales.coalCompreso(); // Item Id=4100 charcoalCompreso = new mercenarymod.items.materiales.charcoalCompreso(); // Item Id=4101 obsidianaMercenaria = new mercenarymod.items.materiales.obsidianaMercenaria(); // Item Id=4102 nokiaMercenaria = new mercenarymod.items.materiales.nokiaMercenaria(); // Item Id=4103 carbonoMercenario = new mercenarymod.items.materiales.carbonoMercenario(); // Item Id=4104 espada_carbon_carbon = new mercenarymod.items.espadas.espada_carbon_carbon(); // Item Id=4105 hacha_carbon_carbon = new mercenarymod.items.hachas.hacha_carbon_carbon(); // Item Id=4106 pica_carbon_carbon = new mercenarymod.items.picas.pica_carbon_carbon(); // Item Id=4107 hoe_carbon_carbon = new mercenarymod.items.hoe.hoe_carbon_carbon(); // Item Id=4108 pala_carbon_carbon = new mercenarymod.items.palas.pala_carbon_carbon(); // Item Id=4109 multitextura = new mercenarymod.items.multitextura.multitextura(); // Item Id=4110 papa = new mercenarymod.items.alimentos.papa(3); // Item Id=4111 } //################################################################################################################################################################################################ }//fin de la classe
  21. the think is that Minecraft.getMinecraft().getRenderItem(). goes into the init() of the principal class not in the item class aceromercenario, and you must create an item of the kind to put it in youritem register(YourItem, metadata, that wass my second error i declared it like MercenaryModItems.aceroMercenario well i have some weirdness whit the look of the ingot but seems more like a design issue. next i have to resolv Items whit multiTextures. @Mod.EventHandler public void init(FMLInitializationEvent event) { Item acero = MercenaryModItems.aceroMercenario; Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(acero, 0, new ModelResourceLocation("modmercenario:aceromercenario" , "inventory")); }
  22. eee nop thi s cause the error [22:29:55] [Client thread/ERROR]: Using missing texture, unable to load modmercenario:textures/materiales/aceromercenario.png java.io.FileNotFoundException: modmercenario:textures/materiales/aceromercenario.png and now i just notice this [22:29:47] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [22:29:47] [Client thread/INFO] [FML]: Searching /home/tenchi/Modding/forge-1.8-11.14.0.1251-1.8-src/eclipse/mods for mods [22:29:47] [Client thread/INFO] [modmercenario]: Mod modmercenario is missing the required element 'name'. Substituting modmercenario seting back to "layer0": "modmercenario:items/materiales/aceromercenario" and error disapear. soo i conclude thath the png file and the json file are in the rigth places this is the output whit modmercenario:items/materiales/aceromercenario 22:32:58] [main/INFO] [GradleStart]: Extra: [] [22:32:58] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.8, --assetsDir, /home/tenchi/.gradle/caches/minecraft/assets, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [22:32:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [22:32:58] [main/INFO] [FML]: Forge Mod Loader version 8.0.12.1251 for Minecraft 1.8 loading [22:32:58] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_71, running on Linux:amd64:3.2.0-4-amd64, installed at /opt/oracle/jre1.7.0_71 [22:32:58] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [22:32:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [22:32:58] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [22:32:58] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [22:32:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:32:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:32:58] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [22:32:59] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [22:32:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:32:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:33:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [22:33:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [22:33:00] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:33:02] [Client thread/INFO]: Setting user: Player490 [22:33:06] [Client thread/INFO]: LWJGL Version: 2.9.1 [22:33:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [22:33:06] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1251 Initialized [22:33:07] [Client thread/INFO] [FML]: Replaced 215 ore recipies [22:33:07] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [22:33:07] [Client thread/INFO] [FML]: Searching /home/tenchi/Modding/forge-1.8-11.14.0.1251-1.8-src/eclipse/mods for mods [22:33:07] [Client thread/INFO] [modmercenario]: Mod modmercenario is missing the required element 'name'. Substituting modmercenario [22:33:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [22:33:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod, modmercenario] at CLIENT [22:33:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod, modmercenario] at SERVER [22:33:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:modmercenario [22:33:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [22:33:11] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [22:33:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [22:33:11] [Client thread/INFO] [FML]: Applying holder lookups [22:33:11] [Client thread/INFO] [FML]: Holder lookups applied [22:33:12] [Client thread/INFO] [sTDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. [22:33:12] [Client thread/ERROR]: Couldn't initialize twitch stream [22:33:12] [sound Library Loader/INFO]: Starting up SoundSystem... [22:33:12] [Thread-7/INFO]: Initializing LWJGL OpenAL [22:33:12] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [22:33:12] [Thread-7/INFO]: OpenAL initialized. [22:33:12] [sound Library Loader/INFO]: Sound engine started [22:33:17] [Client thread/INFO]: Created: 512x512 textures-atlas [22:33:18] [Client thread/INFO] [sTDOUT]: [com.example.examplemod.ExampleMod:init:18]: DIRT BLOCK >> tile.dirt [22:33:18] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [22:33:18] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:modmercenario [22:33:18] [Client thread/INFO]: SoundSystem shutting down... [22:33:18] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [22:33:18] [sound Library Loader/INFO]: Starting up SoundSystem... [22:33:18] [Thread-9/INFO]: Initializing LWJGL OpenAL [22:33:18] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [22:33:19] [Thread-9/INFO]: OpenAL initialized. [22:33:19] [sound Library Loader/INFO]: Sound engine started [22:33:20] [Client thread/INFO]: Created: 512x512 textures-atlas [22:33:30] [server thread/INFO]: Starting integrated minecraft server version 1.8 [22:33:30] [server thread/INFO]: Generating keypair [22:33:31] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [22:33:31] [server thread/INFO] [FML]: Applying holder lookups [22:33:31] [server thread/INFO] [FML]: Holder lookups applied [22:33:31] [server thread/INFO] [FML]: Loading dimension 0 (Beta) (net.minecraft.server.integrated.IntegratedServer@6419955a) [22:33:31] [server thread/INFO] [FML]: Loading dimension 1 (Beta) (net.minecraft.server.integrated.IntegratedServer@6419955a) [22:33:31] [server thread/INFO] [FML]: Loading dimension -1 (Beta) (net.minecraft.server.integrated.IntegratedServer@6419955a) [22:33:31] [server thread/INFO]: Preparing start region for level 0 [22:33:32] [server thread/INFO]: Preparing spawn area: 50% [22:33:33] [server thread/INFO]: Changing view distance to 6, from 10 [22:33:33] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1 [22:33:33] [Netty Server IO #1/INFO] [FML]: Client protocol version 1 [22:33:33] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [22:33:33] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [22:33:33] [server thread/INFO] [FML]: [server thread] Server side modded connection established [22:33:33] [server thread/INFO]: Player490[local:E:26ea92cd] logged in with entity id 139 at (-42.4476285082479, 72.0, 252.7210353814158) [22:33:34] [server thread/INFO]: Player490 joined the game [22:33:34] [server thread/INFO]: Saving and pausing game... [22:33:34] [server thread/INFO]: Saving chunks for level 'Beta'/Overworld [22:33:35] [server thread/INFO]: Saving chunks for level 'Beta'/Nether [22:33:35] [server thread/INFO]: Saving chunks for level 'Beta'/The End
  23. nop im stuck that was one of first post i read and according to that i get it well the mod name is MODID = "modmercenario" , the folder is in /home/tenchi/Modding/forge-1.8-11.14.0.1251-1.8-src/src/main/java/modMercenario/mercenarymod the item is a steelIngot i steal the json from the iron ingot. and i like to set everything in folders public static Item aceroMercenario; aceroMercenario = new modMercenario.mercenarymod.items.materiales.aceroMercenario(); the texture is in /home/tenchi/Modding/forge-1.8-11.14.0.1251-1.8-src/src/main/resources/assets/modmercenario/textures/items/materiales/aceromercenario.png is a 64b texture but i alredy chage it to 16 soo thas was not the problem mi json is in /home/tenchi/Modding/forge-1.8-11.14.0.1251-1.8-src/src/main/resources/assets/modmercenario/models/item/aceromercenario.json and inside looks identicaly to the one of the torch example in http://minecraft.gamepedia.com/Block_models whith only diference is the route to the texture _____________________ { "parent": "builtin/generated", "textures": { "layer0": "modmercenario:/items/materiales/aceromercenario" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } ________________________________________ there is no errors in the console output mi item acero mercenario is in the CreativeTabs.tabMisc but just and ugly purple black square in tghe steve hand is black purpole square and something rare happend in 3 view is a full 1M cubic block purple and black swalow the steve arm. https://www.dropbox.com/s/rxg25rx0i5zbac1/Captura%20de%20pantalla%20de%202014-12-02%2020%3A21%3A24.png?dl=0 nop i dont any have idea what im missing
×
×
  • Create New...

Important Information

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