hey for your infinite terrain and images tutorial everything works fine except my images dont appear properly i checked my code and the images are in the right place their located in MCP\eclipse\Client\bin\net\minecraft\src\Firediamond\Color_Blocks
thats where their located in mcp please help me
nice tutorials, i curently work with forge 4.x.x and so far everything works exept the texture for rendering the armor on the player moddel
I put the armor textures into the .../jars/bin/minecraft.jar/armor and the path returned by 'getArmorTextureFile' is ither "/armor/myarmor_1.png" or "/armor/myarmor_2.png"
should the tutorial work with forge for minecraft 1.3.2 or is it outdated?
I think I know the solution to your problem (and some of this should work for 1.3.2). I had a similar problem getting armor textures to render on the player. Make sure this is correct in your mod_ file.
public static final Item ModHelmet = new ItemModArmor(12908, armorMod, 0, 0).setItemName("Helmet").setIconIndex(16);
public static final Item ModChestplate= new ItemModArmor(12909, armorMod, 1, 0).setItemName("Chestplate").setIconIndex(17);
public static final Item ModLeggings = new ItemModArmor(12910, armorMod, 2, 0).setItemName(" Leggings").setIconIndex(18);
public static final Item ModBoots = new ItemModArmor(12911, armorMod, 3, 0).setItemName("Boots").setIconIndex(19);
Please note the ModHelmet, ModBoots, ItemModArmor, etc. is just for this, make sure those are yours. After ItemModArmor, it should be (Data Value, Enum Armor Type, TYPE OF ARMOR (helmet, chestplate, etc.), ARMOR (leather, iron, etc.)). I haven't found a way to make the 4th number your own by making a new one (a.k.a. 5) but using 0-3 works and I haven't seen any changes to the custom armor using that number. Sorry if that was confusing. But make sure the order of the numbers is correct (that was my problem). For armor types, 0 is helmet, 1 is chestplate, 2 is leggings, and 3 is boots. I made the 4th number (the 0) match the 3rd number (so it looks like (data, enum, 1, 1) (data, enum, 2, 2) and it works fine. Sorry if I confused you or killed you but I hope this helped. If not I'm not sure unless I see code.
Rollback Post to RevisionRollBack
Something tells me I haven't been logged into Minecraft Forum for over a year, and that I should change my signature...
Ummmmmmmmmmmm..... Sir How Do I Make Custom recipes For All the blocks and tools?
// RECIPE
GameRegistry.addRecipe(new ItemStack(yourItem, 1), new Object[]{ //yourItem = an Item or Block that you've created with you mod.
"XXX","X X","XXX", Character.valueOf('X'), Block.glass // X = whatever material you want to use to craft (This example uses Glass Blocks)
}); // The space between the X's in the middle set represent an empty spot in the crafting grid. This is also the shape of a chest in Vanilla MC.
public class mod_LapizTools extends BaseMod
{
static EnumToolMaterial toolLapiz = EnumHelper.addToolMaterial("Lapiz", 2, 225, 8F,
4, 9);
public static final Item shovelLapiz = (new LapizItemSpade(127,
toolLapiz)).setIconCoord(0, 2).setItemName("shovelLapiz");
public static final Item pickaxeLapiz = (new LapizItemPickaxe(128,
toolLapiz)).setIconCoord(0, 3).setItemName("pickaxeLapiz");
public static final Item axeLapiz = (new LapizItemAxe(129,
toolLapiz)).setIconCoord(0, 4).setItemName("hatchetLapiz");
public static final Item swordLapiz = (new LapizItemSword(130,
toolLapiz)).setIconCoord(0, 1).setItemName("swordLapiz");
public static final Item hoeLapiz = (new LapizItemHoe(131,
toolLapiz)).setIconCoord(0, 5).setItemName("hoeLapiz");
public mod_LapizTools()
{
// RECIPE
GameRegistry.addRecipe(new ItemStack(LapizItemSword, 1), new Object[]{
" X "," X "," Z ", Character.valueOf('X'), item.lapiz Character.valueOf('Z'), Item.stick
});
}
I really think that your knowledge about java and the inner-workings of MC aren't quite developed enough to create mods yet, however a few tutorials and some light reading can really help a lot. You shouldn't be looking for examples until you can create your base. I see that you've got some old code in your post. You need to YouTube "Minecraft Forge Modding 1.4" this search string will give you the results that I was talking about. Starting from square one.
And to maybe answer your question at the end of your last post... Item.java and Block.java in the src files has every vanilla item and block in the game.They are under net.minecraft.src Item and Block.
Custom item renderers are complicated and are best understood with trial and error.
*This is based on what i've learnt from the item renderer sent by nerdboy
Start with creating the render class(make one for each differant render(2Hand, bow, spear, etc)
public class CustomRenderer implements IItemRenderer {
Hello all, I have been searching everywhere for help and I was wondering if anyone had an answer, or could help me out... I have been trying to make a flower that will spawn naturally underwater. I get the world generation part of it, I have made my custom flower able to spawn naturally, just on land though. Any help would be greatly appreciated!
I do everything on the custom armor tutorial and my armor is invisible, and it also makes that, in third person, held stuff invisible too.
I need help!
Rollback Post to RevisionRollBack
This is SGM, signin' out! Visit my Youtube channel here (still empty) if you're a strange gamer!
1. Download Forge
2. Rename minecraft.jar to minecraft.jar.zip and unzip it
3. Copy everything from the forge folder you downloaded and paste it into the minecraft.jar folder
4. Open Minecraft
5. Close Minecraft
6. Put any mod you want into the mods folder in Library/Application Support/minecraft
Some mods need to be put directly into minecraft.jar, though. Hope this helps
You do not have to open minecraft every time though!
thats where their located in mcp please help me
Hmm.... when I create a class it looks different from the tutorials. I have forge installed correctlI got itI think I know the solution to your problem (and some of this should work for 1.3.2). I had a similar problem getting armor textures to render on the player. Make sure this is correct in your mod_ file.
Please note the ModHelmet, ModBoots, ItemModArmor, etc. is just for this, make sure those are yours. After ItemModArmor, it should be (Data Value, Enum Armor Type, TYPE OF ARMOR (helmet, chestplate, etc.), ARMOR (leather, iron, etc.)). I haven't found a way to make the 4th number your own by making a new one (a.k.a. 5) but using 0-3 works and I haven't seen any changes to the custom armor using that number. Sorry if that was confusing. But make sure the order of the numbers is correct (that was my problem). For armor types, 0 is helmet, 1 is chestplate, 2 is leggings, and 3 is boots. I made the 4th number (the 0) match the 3rd number (so it looks like (data, enum, 1, 1) (data, enum, 2, 2) and it works fine. Sorry if I confused you or killed you but I hope this helped. If not I'm not sure unless I see code.
I am the creater of the Soul Forest Mod
Youtube : https://www.youtube.com/user/JlineMore999
Twitter : https://twitter.com/Goscalyon
Twitch: https://www.twitch.tv/goscalyon
Also can someone make a List of all the Item.(Example) and The Block.(Example)
I really think that your knowledge about java and the inner-workings of MC aren't quite developed enough to create mods yet, however a few tutorials and some light reading can really help a lot. You shouldn't be looking for examples until you can create your base. I see that you've got some old code in your post. You need to YouTube "Minecraft Forge Modding 1.4" this search string will give you the results that I was talking about. Starting from square one.
And to maybe answer your question at the end of your last post... Item.java and Block.java in the src files has every vanilla item and block in the game.They are under net.minecraft.src Item and Block.
Hope this helps a little at least.
*This is based on what i've learnt from the item renderer sent by nerdboy
Start with creating the render class(make one for each differant render(2Hand, bow, spear, etc)
Then Choose what it changes
You can pick what times to render(equipped, dropped, and inventory) renderhelper shouldn't be needed
From there. you can build off renderItem
It will call renderFirstPerson when in first person, RenderWeapon when in third person and regular inventory renderer otherwise
The renderFirstPerson and renderWeapon, are put in to modify variables
as an example; ive left first person unmodified. and moved third person model down(like a bow)
Then the renderWeaponAsItem(item), Render2D item and getRes()
there 3 different classes
These render the items in differant ways
I need help!
Visit my Youtube channel here (still empty) if you're a strange gamer!
1. Download Forge
2. Rename minecraft.jar to minecraft.jar.zip and unzip it
3. Copy everything from the forge folder you downloaded and paste it into the minecraft.jar folder
4. Open Minecraft
5. Close Minecraft
6. Put any mod you want into the mods folder in Library/Application Support/minecraft
Some mods need to be put directly into minecraft.jar, though. Hope this helps
You do not have to open minecraft every time though!