perromercenary00
Members-
Posts
849 -
Joined
-
Last visited
-
Days Won
5
Everything posted by perromercenary00
-
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
-
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
-
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 .
-
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
-
[1.8] Textures shift for seemingly no reason
perromercenary00 replied to MarkSill's topic in Modder Support
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 -
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)); } }
-
[1.8] Textures shift for seemingly no reason
perromercenary00 replied to MarkSill's topic in Modder Support
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 -
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
-
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")); }
-
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
-
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
-
good days gues am i not the only one whith the swollen balls for the tink whit the json for the textures for blocks and items google dont give a clear answr i been reading and interpreting code from diferents sources but no working texture yet soo long i been reading lot of post about this but is something missing http://www.minecraftforge.net/forum/index.php/topic,24263.0.html 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 //aceromercenario.json _____________________ { "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 //aceroMercenario.java //__________________________________ package modMercenario.mercenarymod.items.materiales; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; import modMercenario.mercenarymod.items.MercenaryModItems; import modMercenario.mercenarymod.items.materiales.materialesMercenarios; import modmercenario.mercenarymod.Mercenary; public class aceroMercenario extends Item{ public static String name="aceromercenario"; public aceroMercenario(){ setUnlocalizedName(Mercenary.MODID + "_" + name); GameRegistry.registerItem(this, name); setCreativeTab(CreativeTabs.tabMisc); //setTextureName(Mercenary.MODID + ":" + "materiales/" + name); this.maxStackSize = 64; // this.setMaxDamage(500); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(MercenaryModItems.aceroMercenario, 0, new ModelResourceLocation("modmercenario:/items/materiales/aceromercenario", "inventory")); } public static ToolMaterial material(){ return materialesMercenarios.aceromadera(); } public static ArmorMaterial materialArmadura(){ return materialesMercenarios.acero(); } } //_______________________________________________ //MercenaryModItems.java //_______________________________________________ package modMercenario.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 modMercenario.mercenarymod.blocks.MercenaryModBlocks; import modmercenario.mercenarymod.Mercenary; public final class MercenaryModItems{ public static Item aceroMercenario; public static void init(){ aceroMercenario = new modMercenario.mercenarymod.items.materiales.aceroMercenario(); } //################################################################################################################################################################################################ }//fin de la classe
-
Be aware my friend teh penguin has his own ways i work absolutly on debian and never touch the window in the other partition but you must know to install the oracle java and set it in the path or nothing you read in the guides wil work
-
goog days puzleed im about this, i create like 6 diferent swords in a metaItem each of has a diferent texture and thats working. but i cant get to set diferent Atackdamage values for each metaSword, the damage value in a item is defined by the material declaret in the constructor. and when i atack whit the first sword it converts automatically to the second and then to the 3 sword how do you define diferents materials based on the meta(Itemdamage) ? codigo aqui https://github.com/perromercenary00/perro-codigo-/blob/master/metaespadamercenaria is way to declare meta items whit something else not Itemdamage ?
-
realized the problem is well if you consume a item soposed to add another item to inventory before it has chance to add the second item there would be not secund item in the inventory soo fuck rigth over. but his add another trouble, if there is no free space in inventory where it would go the secund item i gonna do other thread for that
-
this is a question who evoluted from other post , i feel it must have another thread in the forum original http://www.minecraftforge.net/forum/index.php/topic,25307.0.html realizing what the trouble is whith what i pretend to do gets a lot of time cos something simply easy or little is harder to spot than the biggest trouble well if you consume a item soposed to add another item to inventory before it has chance to add the second item there would be not secund item in the inventory soo fuck rigth over. soo then lets doo this you first add the secund item to inventory then consume the first, and now wath happen if there is no space free in the inventory to locate the second item . well then you fuckit again. soo then lets do this you have the first item that would be consume then you check if thereis free space in inventory if it is space throw the secund item to inventory consume the first. but if it is not space in inventory drop it to the world close to steve or over his hea or wath ever get more chance the item dont get stuuk in a wall. sooo the code cuestion ,i know there is a steve.inventory.getFirstEmptyStack(); //returns a int of the empy slot number if it is < 36 there is space free in inventory trouble whit this is adont see a method saiying add this item or itemstack to this especific slot(x) in inventory the secund trouble is idont see in the world.methods something like world.dropItemOrItemStack(world, itemOrItemStack, x, y, z ); couldyou please tell me if there exist methods to do this two things in minecraft ?? the other tink i have in mind is to add another threat.time to the class just to wait 200 or 300ms to add the secund item in inventory once the first is consume
-
goods im doing something little complicated i have create a potion "solucionderedstone0" if i shake this potion for 10 sec it become another diferent potion "solucionderedstoneActivada0" to do this i have to consume the item potion "solucionderedstone0" and replace it in the inventory whit the secund potion "solucionderedstoneActivada0" here is a video the piece of code on charge is if (execu){ System.out.println("### consumiendo suspensionderedstone0"); steve.inventory.consumeInventoryItem(modItems.suspensionderedstone0); steve.inventory.addItemStackToInventory(new ItemStack(modItems.suspensionderedstoneActivada0, 1)); steve.inventory.markDirty(); if (world.isRemote){remot=true;} else{local=true;} // steve.inventory.getStackInSlot(0) }
-
more or less the thing is that i have a multi meta item //item //meta suspencionderedstone 0 suspencionderedstone 1 suspencionderedstone 2 suspencionderedstone 3 suspencionderedstone 4 suspencionderedstone 5 suspencionderedstone 6 suspencionderedstone 7 i need to know if it is in the inventory at least one of the especific meta for example: i wanna know if there is suspencionderedstone 4 exactly the 4 and whit this in mind consume "suspencionderedstone 4" and based on that add to the inventory suspencionderedstoneActivate 4 if there is "suspencionderedstone 4" in inventory replace it whith "suspencionderedstoneActivate 4" but the methods i found only work with items whitout metadata steve.inventory.hasItem() steve.inventory.consumeInventoryItem() but steve.inventory.addItemStackToInventory(new ItemStack(modItems.suspensionderedstoneActivada, 1, 2); this one leftme define the metadata
-
good days i need little help whith itemStacks, two little commands i have made two meta items: suspencionderedstone y suspencionderedstoneActivada each of whith 8 meta subitems wath i wana doo is first check if player has in his inventory the especific meta item (1) and it it has change it for other meta item (1) more or lest i have this public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer steve){ if (steve.inventory.hasItem(modItems.varaMercenaria)){ //here i need someting like // steve.inventory.hasItemStack(modItems.suspencionderedstone,1, 2)//(item ,cuantity, meta) steve.inventory.consumeInventoryItem(modItems.suspensionderedstone);//here i need something like //steve.inventory.consumeInventoryItemStack(modItems.suspensionderedstone,1 ,2); steve.inventory.addItemStackToInventory(new ItemStack(modItems.suspensionderedstoneActivada, 1, 2));//this works pretty well } }
-
onItemLeftClick() onItemMiddleClick() methods exist ?
perromercenary00 replied to perromercenary00's topic in Modder Support
ñaa don't found it in the item class PlayerInteractEvent is used in what item or is something external to minecraft in the google they speak about butkit idont get it is abutkit plugin