public void load(FMLInitializationEvent event){
// define items
ancientShard = new FarmingItems(2000).setUnlocalizedName("ancient_shard");
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == BetterFarming.ancientShard.itemID) {
this.itemIcon = reg.registerIcon("ancient_shard"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
ok well what is your texture called? remeber capitals and spaces DO matter
Been looking to learn java and working with MC so far is awesome for setting achievable goals >:}
I personally work best reverse engineering so i was wondering if for example with your armor tutorial mod, you could also upload completed mod files. Say for example you complete a 1.6.x mod for this amethyst armor that way i could look at it cross check my code and have a solid base for compatibility testing with my SMP Server?
I know its probably a big ask but yeah would be sweet
Ya I'm sorry I would but I wouldn't have time to do it, I hardly have enough time to record now Adays but that's why I put the code on the main page of the forum, it is all there, everything that Is in my mod just more spaced out
Okay... so i've tried loading the textures your way, and it works for inside of eclipse, but I can't figure out where to put the textures in a compiled release, you know ModNameHere.zip, please help me!
Ok well you either want to put them into the jar that you are using or I think if you rename the textures to "Syn:textures/items/amethyst" and put it in the Syn zip folder and in a folder called textures it should work. So pretty much make a folder called, let's say items, put it in the textures folder and put that in you zip. Put you texture in the items folder
Hi I was wondering why when I go into Eclipse it doesnt have anything on the package explorer. Like on your Ep. 1 of it you opened up eclipse and minecraft was in it mine doesnt have a minecraft in the package explorer. (This is my url: C:\Users\ssimm_000\Desktop\Mod1\forge\mcp\eclipse) I think you opened up the same thing. Please help... fast Thank you
It should be working as long as everything else is In it's appropriate place
Every time I download forge on a different computer the files have problems, the last time i downloaded it on this computer the names were mixed up and i couldnt make the mod properly, then on my other laptop it had all the names of items in numbers, then on my laptop (which im using to make a mod from this tutorial) Forge doesnt have all the files like install and the path (jdk) wont work properly, I MEAN SERIOUSLY!, Why do I have such bad luck! Basically My Question Is Why Does My Forge Not Have The Install and How Do I Get It?
Yes,but I have an another problem!When I try to install Java it tells me that it has to be recently installed to update!
hmm, i dont know that beyond me at the moment, look for youtube tutorials, and i will try to figure it out sorry. I dont really have time at the moment to look though :/
Syn I got a problem converting my mode! When I launch the .exe's it shows this
== MCP 8.09 (data: 8.11, client: 1.6.4, server: 1.6.4) ==
> Searching for javac.exe in C:\Program Files
"scalac" is not found on the PATH. Scala files will not be recompiled
!! java check FAILED !!
Command '"C:\Program Files\Java\jdk1.7.0_45\bin\java" -version' returned non-zer
o exit status 1
Press any key to continue . . .
I reinstalled Java and Everithing and shows it again!!!! PLS Help!!!!
Hey,Syn.Everything is working for me!Can You make a video how to add armor? As you can see my image thats the mod called...Firingigom Mod...It's hart to pronaunce.It's something like this {fireingigom mod}
oh cool and ya I just finished editing it, I'm uploading it now! Follow me on twitter to know when its up!
package test.first;
import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.item.EnumToolMaterial;
import net.minecraftforge.common.EnumHelper;
@Mod(modid="ModTutorial",name="Mod Tutorial",version="v2")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class testMain {
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item berillium;
public static Item refinedBerillium;
//tools
public static EnumToolMaterial berilliumTool = EnumHelper.addToolMaterial("berilliumTool", 2, 250, 6.0F, 2.0F, 14); {
berilliumAxe = new berilliumAxe(6000, berilliumTool).setUnlocalizedName("berillium_axe");
berilliumShovel = new berilliumShovel(6001, berilliumTool).setUnlocalizedName("berillium_shovel");
berilliumPickaxe = new berilliumPickaxe(6002, berilliumTool).setUnlocalizedName("berillium_pickaxe");
berilliumHoe = new berilliumHoe(6003, berilliumTool).setUnlocalizedName("berillium_hoe");
berilliumSword = new berilliumSword(6004, berilliumTool).setUnlocalizedName("berillium_sword");
}
//blocks
public static Block berilliumblock;
public static Block berilliumOre;
public static Object berilliumAxe;
public static Object berilliumShovel;
public static Object berilliumPickaxe;
public static Object berilliumHoe;
public static Object berilliumSword;
//Declaring Init
@Init
public void load (FMLInitializationEvent event) {
// define items
berillium = new testBerillium(6556).setUnlocalizedName("berillium");
refinedBerillium = new testBerillium(7000).setUnlocalizedName("Refined Berillium");
// define blocks
berilliumblock = new berilliumblock(3608, "berilliumblock").setUnlocalizedName("berillium_block").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(berilliumblock, "berilliumblock");
berilliumOre = new berilliumOre(4000, "berilliumOre").setUnlocalizedName("berillium_ore").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(berilliumOre, "berilliumOre");
//adding names
//items
LanguageRegistry.addName(berillium, "Berillium");
LanguageRegistry.addName(refinedBerillium, "Refined Berillium");
LanguageRegistry.addName(berilliumPickaxe, "Berillium Pickaxe");
//blocks
LanguageRegistry.addName(berilliumblock, "Berillium Block");
LanguageRegistry.addName(berilliumOre, "Berillium Ore");
//crafting
//to use dye (new.ItemStack(Item.dyePowder,1 ,4)
//Blocks
GameRegistry.addRecipe(new ItemStack(berilliumblock,1), new Object[]{
"TTT","TTT","TTT",'T',berillium,
});
//smellting
GameRegistry.addSmelting(testMain.berillium.itemID, new ItemStack(refinedBerillium, 1), 5F);
//World Gen
GameRegistry.registerWorldGenerator(new BerilliumOreGen());
}
}
This is my pickaxe class
package test.first;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemSword;
import net.minecraftforge.common.EnumHelper;
public class berilliumPickaxe extends ItemPickaxe
{
public berilliumPickaxe(int ItemID, EnumToolMaterial material)
{
super(ItemID, material);
setCreativeTab(CreativeTabs.tabTools);
}//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg)
{ // Make sure to import IconRegister!
if (itemID == testMain.berilliumPickaxe.itemID)
{
this.itemIcon = reg.registerIcon("berillium_pickaxe"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
}
}
In the pickaxe one if (itemID == testMain.berilliumPickaxe.itemID) the last .itemID says its an error.
It is because you have
"Public static OBJECT" you are supposed to have
Public static Item
Ok so I think what your problem is, is that it is just called "Syn;" as the package, it should be "Syn.Tutorial;" depending on what you named your other folder, check you "morandomness" class and see what it is called on the top, if it's called "Syn.Tutorial;" them that what this one should be to! So try that
ok I cant really see a problem from that so if you could send me the code for your main class files to, ill take a look at it
package Sin.Tutorial; //Package directory
/*
* Basic importing
*/
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid="Amethyst",name="Amethyst Mod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class ModTutorial {
/*
* ToolMaterial
*/
public static EnumToolMaterial AmethystTool = EnumHelper.addToolMaterial("AmethystTool", 3, 1600, 9.0F, 3.0F, 10);
//Telling forge that we are creating these
//items
public static Item amethyst;
public static Item amethysthalf;
public static Item amethysthalvestack;
public static Item amethystingot;
public static Item amethystaxe;
public static Item amethystshovel;
public static Item amethystpickaxe;
public static Item amethysthoe;
public static Item amethystsword;
public static Item amethysttabicon;
//blocks
public static Block amethystblock;
public static Block amethystore;
//tools
//creative tabs
public static CreativeTabs amethysttab;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
//World Gen
GameRegistry.registerWorldGenerator(new WorldGeneratorSin());
//define creative tabs
amethysttab = new Tabamethyst(CreativeTabs.getNextID(), "amethysttab");
// define items
amethysttabicon = new Synitems(1999).setUnlocalizedName("amethyst_tab_icon");
amethyst = new Synitems(2000).setUnlocalizedName("amethyst");
amethysthalf = new Synitems(2003).setUnlocalizedName("amethysthalf");
amethysthalvestack = new Synitems(2004).setUnlocalizedName("amethysthalvestack");
amethystingot = new Synitems(2005).setUnlocalizedName("amethystingot");
amethystaxe = new SynAxe(2006, AmethystTool).setUnlocalizedName("amethytst_axe");
amethystshovel = new SynShovel(2007, AmethystTool).setUnlocalizedName("amethyst_shovel");
amethystpickaxe = new SynPickaxe(2008, AmethystTool).setUnlocalizedName("amethyst_pickaxe");
amethysthoe = new SynHoe(2009, AmethystTool).setUnlocalizedName("amethyst_hoe");
amethystsword = new SynSword(2010, AmethystTool).setUnlocalizedName("amethyst_sword");
// define blocks
amethystblock = new AmethystBlock(2001, "amethystblock").setUnlocalizedName("amethyst_block").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(3.0F);
GameRegistry.registerBlock(amethystblock, "amethystblock");
amethystore = new AmethystOre(2002, "amethystore").setUnlocalizedName("amethyst_ore").setHardness(5.0F).setStepSound(Block.soundStoneFootstep).setResistance(3.0F);
GameRegistry.registerBlock(amethystore, "amethystore");
//adding names
//CreativeTabs
LanguageRegistry.instance().addStringLocalization("Itemgroup.amethysttab", "en_US", "Amethyst Tab");
//items
LanguageRegistry.addName(amethyst, "§dAmethyst");
LanguageRegistry.addName(amethysthalf, "§dAmethyst Half");
LanguageRegistry.addName(amethysthalvestack, "§dStacked Amethyst Halves");
LanguageRegistry.addName(amethystingot, "§dAmethyst Ingot");
LanguageRegistry.addName(amethystaxe, "§dAmethyst Axe");
LanguageRegistry.addName(amethystshovel, "§dAmethyst Shovel");
LanguageRegistry.addName(amethystpickaxe, "§dAmethyst Pickaxe");
LanguageRegistry.addName(amethystsword, "§dAmethyst Sword");
LanguageRegistry.addName(amethysthoe, "§dAmethyst Hoe");
//blocks
LanguageRegistry.addName(amethystblock, "§dAmethyst Block");
LanguageRegistry.addName(amethystore, "§dAmethyst Ore");
//crafting
GameRegistry.addRecipe(new ItemStack(amethystblock,1), new Object[]{
"TTT","TTT","TTT",'T',amethyst,
});
GameRegistry.addShapelessRecipe(new ItemStack(amethyst,9), new Object[]{
amethystblock});
GameRegistry.addShapelessRecipe(new ItemStack(amethysthalvestack), new Object[]{
amethysthalf,amethysthalf});
GameRegistry.addRecipe(new ItemStack(amethystpickaxe,1), new Object[]{
"TTT"," Y "," Y ",'T',amethystingot,'Y',Item.stick});
GameRegistry.addRecipe(new ItemStack(amethystsword,1), new Object[]{
" T "," T "," Y ",'T',amethystingot,'Y',Item.stick});
GameRegistry.addRecipe(new ItemStack(amethystaxe,1), new Object[]{
"TT ","TY "," Y ",'T',amethystingot,'Y',Item.stick});
GameRegistry.addRecipe(new ItemStack(amethysthoe,1), new Object[]{
"TT "," Y "," Y ",'T',amethystingot,'Y',Item.stick});
GameRegistry.addRecipe(new ItemStack(amethystshovel,1), new Object[]{
" T "," Y "," Y ",'T',amethystingot,'Y',Item.stick});
//smelting
GameRegistry.addSmelting(ModTutorial.amethyst.itemID, new ItemStack(amethysthalf, 1), 5F);
GameRegistry.addSmelting(ModTutorial.amethysthalvestack.itemID, new ItemStack(amethystingot, 1), 5F);
}
}
SynItems
package Sin.Tutorial;
import net.minecraft.item.Item;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class Synitems extends Item {
public Synitems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(ModTutorial.amethysttab); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ModTutorial.amethyst.itemID) {
this.itemIcon = reg.registerIcon("amethyst"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
if (itemID == ModTutorial.amethysthalf.itemID) {
this.itemIcon = reg.registerIcon("amethyst_halve"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
if (itemID == ModTutorial.amethysthalvestack.itemID) {
this.itemIcon = reg.registerIcon("amethyst_halvestack"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
if (itemID == ModTutorial.amethystingot.itemID) {
this.itemIcon = reg.registerIcon("amethyst_ingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
if (itemID == ModTutorial.amethysttabicon.itemID) {
this.itemIcon = reg.registerIcon("amethyst_tab_icon"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
}
}
Tabamethyst
package Sin.Tutorial;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
public class Tabamethyst extends CreativeTabs {
Tabamethyst(int par1, String par2Str)
{
super(par1, par2Str);
}
@SideOnly(Side.CLIENT)
public ItemStack geticonItemStack()
{
return new ItemStack(ModTutorial.amethysttabicon.itemID, 1999, 0);
}
public String getTranslatedTabLabel()
{
return "Amethyst";
}
}
as far as i've seen nothing is different in this from the code used by others that the creative tab code I used was acquired from except for my custom tab being in the main class with the items coding in their classes, whereas the only tutorials i found the coding on had their items coded in their main class, can you notice anything I've done wrong so far? as i said on twitter the items work with them in other creative tabs such as the blocks tab but not in the custom tab i made of Amethyst
The video on creative tabs will be out soon, i am editing the tools one right now and then about to record the creative tabs one creative tabs should be out by early Saturday latest
0
ok well where exactly did you put it? like give me the run down
0
ok well what is your texture called? remeber capitals and spaces DO matter
well do you have install.py and install.sh?
0
Ya I'm sorry I would but I wouldn't have time to do it, I hardly have enough time to record now Adays but that's why I put the code on the main page of the forum, it is all there, everything that Is in my mod just more spaced out
0
Ok well you either want to put them into the jar that you are using or I think if you rename the textures to "Syn:textures/items/amethyst" and put it in the Syn zip folder and in a folder called textures it should work. So pretty much make a folder called, let's say items, put it in the textures folder and put that in you zip. Put you texture in the items folder
It should be working as long as everything else is In it's appropriate place
0
What do you mean by the forge install?
0
hmm, i dont know that beyond me at the moment, look for youtube tutorials, and i will try to figure it out sorry. I dont really have time at the moment to look though :/
0
do you have your path set up?
0
mac or windows
0
hmmm well are you in the just mcp or did you go to forge>mcp>recompile?
0
hmm what do you mean you ran the .exe
0
oh cool and ya I just finished editing it, I'm uploading it now! Follow me on twitter to know when its up!
https://twitter.com/TheSynasonic
0
hmmm i odnt know why it wouldnt be working, Im uploading the video right now. It was supposed to be up yesturday but my computer was being dumb
0
Ya I just need to upload the tools one but I've been super busy, watch my next Mc LP video to find out why
0
It is because you have
"Public static OBJECT" you are supposed to have
Public static Item
0
ok I cant really see a problem from that so if you could send me the code for your main class files to, ill take a look at it
The video on creative tabs will be out soon, i am editing the tools one right now and then about to record the creative tabs one creative tabs should be out by early Saturday latest