Tutorials Navigation
[ Minecraft ] How To Make A New Item! [ Any Version ]
Tutorial Name: [ Minecraft ] How To Make A New Item! [ Any Version ]
Category: PC Tutorials
Submitted By: Console
Date Added:
Comments: 0
Views: 13,065
Related Forum: PC Building Forum
Share:
Hello Guys Well I Know You Guys Want Me To Get To The Tutorial.
Difficulty/Time: 2/10
Minecraft Version: Any
MCP Version: Any
1. You need to create a new file called ItemExample.java in the src directory.
2. The basic structure of the file is this:
3. You now need to add this item to minecraft so that it knows about it. To do this open up Item.java
4. Towards the bottom of the file there should be a whole heap of instance variables, add a new one:
This will create a new item which is item id 256 + 95 and uses icon 42. Therefore it should look like a sign. Currently it has no properties, and you cannot craft it. But after you compile and run the mod it will add the new item to minecraft.
Thanks For All Your Guys Support. Soon I will Be Releasing My Mod.
Thanks To -
Help With Tutorial - simo_415
Written And Did The Tutorial - Console aka ME!
Next Tutorial - How To Create A New Toolset!
Difficulty/Time: 2/10
Minecraft Version: Any
MCP Version: Any
1. You need to create a new file called ItemExample.java in the src directory.
2. The basic structure of the file is this:
package net.minecraft.src;
public class ItemExample extends Item
{
public ItemFood(int i)
{
super(i);
maxStackSize = 64;
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
}
}
3. You now need to add this item to minecraft so that it knows about it. To do this open up Item.java
4. Towards the bottom of the file there should be a whole heap of instance variables, add a new one:
public static Item example = (new ItemExample(95)).setIconIndex(42);
This will create a new item which is item id 256 + 95 and uses icon 42. Therefore it should look like a sign. Currently it has no properties, and you cannot craft it. But after you compile and run the mod it will add the new item to minecraft.
Thanks For All Your Guys Support. Soon I will Be Releasing My Mod.
Thanks To -
Help With Tutorial - simo_415
Written And Did The Tutorial - Console aka ME!
Next Tutorial - How To Create A New Toolset!
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(2,122)
- 02. How to: Matrix Numbers | Batch File(1,593)
- 03. How to Password Protect Files on Windows(765)
- 04. How to play Socom 2/3/ and Combined Assault on PC(5,192)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(5,046)
- 06. How to embed an image on TheTechGame(2,780)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,347)
- 08. Host bot lobbies! Full Tutorial!(9,578)
- 09. Unban yourself [Plutonium BO2](13,475)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,027)
- 11. Best Crosshair Settings for Valorant(6,170)
- 12. Othercide The Surgeon Boss Guide(2,229)
- 13. Othercide Remembrances Unlock Guide(3,929)
- 14. Othercide Beginners Tips and Tricks(2,469)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,367)
"[ Minecraft ] How To Make A New Item! [ Any Version ]" :: Login/Create an Account :: 0 comments