[SSP Modding For 1.0.0] How To Make An Item For 1.0.0
3 posters
Page 1 of 1
[SSP Modding For 1.0.0] How To Make An Item For 1.0.0
The coding for ModLoader has changed in the 1.0.0 update. Here is the code for items in 1.0.0.
This Goes In ItemNameHere
And This Into mod_NameHere
This is the usuall. NameHere replaced with your mod/item name.
In the live ItemNameHere(800, 0) The 800 becomes the Item ID number.
Any questions. Just ask
This Goes In ItemNameHere
- Code:
package net.minecraft.src;
public class ItemNameHere extends Item
{
public ItemNameHere(int i)
{
super(i);
setMaxStackSize(64);
}
}
And This Into mod_NameHere
- Code:
package net.minecraft.src;
import java.util.Random;
public class mod_NameHere extends BaseMod
{
public static final ItemNameHere = new ItemNameHere(800, 0).setItemName("Heart");
public void load() {
ModLoader.AddName(ItemNameHere, "NameHere");
ItemNameHere.iconIndex = ModLoader.addOverride("/gui/items.png", "/NameHere.png");
ModLoader.AddRecipe(new ItemStack(NameHere, 64), new Object[] {
"***", "***","***", Character.valueOf('*'), Block.dirt
});
public String getVersion()
{
return "1.0.0";
}
}
This is the usuall. NameHere replaced with your mod/item name.
In the live ItemNameHere(800, 0) The 800 becomes the Item ID number.
Any questions. Just ask
jaojake1804- Member
- Posts : 10
Join date : 2011-10-26
Re: [SSP Modding For 1.0.0] How To Make An Item For 1.0.0
Question: HOW IS THIS DIFFERENT???
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [SSP Modding For 1.0.0] How To Make An Item For 1.0.0
the constructor is mod_NameHere instead of public mod_NameHere() its public void load ()
jaojake1804- Member
- Posts : 10
Join date : 2011-10-26
Re: [SSP Modding For 1.0.0] How To Make An Item For 1.0.0
jaojake1804 wrote:the constructor is mod_NameHere instead of public mod_NameHere() its public void load ()
AND the string version is not getVersion;
riccardoNL- Member
- Posts : 2
Join date : 2011-11-18
Re: [SSP Modding For 1.0.0] How To Make An Item For 1.0.0
AND the string version is not getVersion;
Yes, and that
Thanks
jaojake1804- Member
- Posts : 10
Join date : 2011-10-26
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum