Even with the letters instead of symbols it still isn't liking it. Could it be something to do with me using ModItem instead of Item as the reference in some of the recipes. I've checked and the recipes that cause crashes are specifically those that use a mod item.
For example
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{ "***", Character.valueOf('*'), ModItem.ChocolateBar});
Whereas this recipe is fine
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{ " * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
But ModItem is the correct name of the class and i have all the items inside the class so it shouldn't have a problem...
This is the ModItem.java file
package foodplus;
import net.minecraft.item.Item;
public class ModItem extends Item
{
public ModItem(int par1)
{
super (par1);
}
//Mod Items for Crafting
public static ModItem Juicer;
public static ModItem ChocolateBar;
public static ModItem Custard;
public static ModItem Toffee;
public static ModItem SugarWater;
public static ModItem ChocolateMilk;
public static ModItem CustardDanish;
public String getTextureFile()
{
return "/Texture/moditems.png";
}
}
I'm all out of ideas to fix it. I've tried fiddling around with various lines of code and what not but nothing seems to work. It's so much easier to fix things like this with ModLoader... ;( haha
I'm, not totally sure why that's in an item class... Item objects should be in the mod class
I'm, not totally sure why that's in an item class... Item objects should be in the mod class
If i don't have them there won't it want me to make a "constant" or "field" in the Item.java file? That's why i made the ModItem file so that i didn't have to edit the original code from Item.java...
EDIT 1 - I'm an idiot... I just realised my mistake haha thanks for the help/push in the right direction.
If i don't have them there won't it want me to make a "constant" or "field" in the Item.java file? That's why i made the ModItem file so that i didn't have to edit the original code from Item.java...
EDIT 1 - I'm an idiot... I just realised my mistake haha thanks for the help/push in the right direction.
Try calling proxy.registerRenderInformation() in init, it might help
edit: ok, so, using my own methods i got the textures to show up. i added shovel, pickaxe, and axe succesfully, but the code you gave for the hoe doesnt compile. . . and if i do things to the code to make it compile, the texture shows up black and white
I've been following along with your tutorials, and they are quite helpful. However when I got to the part about how to recompile and release my mod, I run into an error:
22:35:29 - Unrecoverable error during obfuscation, see log file for details.
22:35:29 -
22:35:29 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound pl
22:35:29 - '"C:\Program Files\Java\jdk1.7.0_15\bin\java" -cp "runtime\bin\retroguard.jar;lib;lib\*;jars\minecraf...' failed : 1
22:35:29 -
22:35:29 - == ERRORS FOUND ==
22:35:29 -
22:35:29 - Unrecoverable error during obfuscation, see log file for details.
22:35:29 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound pl
22:35:29 - ==================
22:35:29 -
22:35:29 - Decompile failed
I tried a completely fresh install of forge 6.6.2.534, and immediately ran recompile.bat and got the same error. Does anyone know how to fix this?
edit: ok, so, using my own methods i got the textures to show up. i added shovel, pickaxe, and axe succesfully, but the code you gave for the hoe doesnt compile. . . and if i do things to the code to make it compile, the texture shows up black and white
I've been following along with your tutorials, and they are quite helpful. However when I got to the part about how to recompile and release my mod, I run into an error:
22:35:29 - Unrecoverable error during obfuscation, see log file for details.
22:35:29 -
22:35:29 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound pl
22:35:29 - '"C:\Program Files\Java\jdk1.7.0_15\bin\java" -cp "runtime\bin\retroguard.jar;lib;lib\*;jars\minecraf...' failed : 1
22:35:29 -
22:35:29 - == ERRORS FOUND ==
22:35:29 -
22:35:29 - Unrecoverable error during obfuscation, see log file for details.
22:35:29 - RetroGuard error: COM.rl.obf.classfile.ClassFileException: ClassNotFound pl
22:35:29 - ==================
22:35:29 -
22:35:29 - Decompile failed
I tried a completely fresh install of forge 6.6.2.534, and immediately ran recompile.bat and got the same error. Does anyone know how to fix this?
I have absolutely no idea what is causing that 0.o
Are you sure forge installed correctly or/and it didn't error on decompile?
Yes, I extracted the forge zip into a clean directory, ran install.bat which completed with no errors.
After talking with another modder I believe that the problem is that its looking for a separate server which no longer exists, but that hasnt been accounted for by mcp yet. I did get my mod to build and package so its not really a big problem, but I dont like errors I cant fix
Yes, I extracted the forge zip into a clean directory, ran install.bat which completed with no errors.
After talking with another modder I believe that the problem is that its looking for a separate server which no longer exists, but that hasnt been accounted for by mcp yet. I did get my mod to build and package so its not really a big problem, but I dont like errors I cant fix
MCP's worked the entire 1.4 so far, don't see why it would suddenly fail for no reason, just saying
well it works, it just throws apparently ignorable errors, at least for me. I can still recompile and reobfuscate my project and package it to release, but its just annoying having that error pop up every time. Oh well.
On another note, I'm almost all the way through your tutorials, just have the custom tools and breaking ore blocks by mining level ones left to follow. All of them have been very helpful, I really appreciate that you've done this, and I look forward to more tutorials to come.
Request a Block likes Soaryns witch glow in the dark please
To make a block glow all you need to do is add .setLightValue(pram1) to a block.
To either the constructor under the super line in the block class or in the mod class when you add the block object.
pram1 is a float value so you have to make it a decimal and add "F" at the end.
it goes from 1.0F to 15.0F with 1.0F being the brightest and glows and gives off light like glowstone, and 15.0F gives off little to almost nothing in light but makes the block glow in the dark.
Example:
.setLightValue(1.0F)
.setLightValue(15.0F)
Also take note that this might not be what your looking for because I don't know who or what Soaryns is.
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:8: warn
ing: [deprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:9: warn
ing: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:11: war
ning: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
public class ModLoaderDispenseHelper implements IDispenserHandler
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:39: warning: [d
eprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:40: warning: [d
eprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:39: warning: [depre
cation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:40: warning: [depre
cation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderModContainer.java:528: warn
ing: [deprecation] registerDispenserHandler(IDispenserHandler) in GameRegistry h
as been deprecated
GameRegistry.registerDispenserHandler(ModLoaderHelper.buildDispenseH
elper(mod));
^ src\minecraft\lecapria\main\common\item\ItemCustomHoe.java:31: error: constructo
r ItemLecaprianTools in class ItemLecaprianTools cannot be applied to given type
s;
super(par1);
^
required: int,int,EnumToolMaterial,Block[]
found: int
reason: actual and formal argument lists differ in length src\minecraft\net\minecraft\src\ModLoader.java:638: warning: [deprecation] regis
terBlock(Block) in GameRegistry has been deprecated
GameRegistry.registerBlock(block);
^ src\minecraft\net\minecraft\src\ModLoader.java:649: warning: [deprecation] regis terBlock(Block,Class<? extends ItemBlock>) in GameRegistry has been deprecated
GameRegistry.registerBlock(block, itemclass);
^
1 error
10 warnings
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
Server side recompiling skipped, this is normal
- Done in 0.00 seconds
Press any key to continue . . .
^This one compiles perfectly. but the texture for hoe is. . . well. . . it might as well be MissingNo.'s cousin (black and white gibberish)
EDIT: you may want to fix the code you put for hoe. . . I changed that part of the code to mimic the code for shovel and now it works perfectly- texture and everything
public ItemCustomHoe(int ID, EnumToolMaterial m, int tex, String name)
{
super(ID, 1, m, blocksEffectiveAgainst);
setTextureFile("/modMainGFX/Items.png");
this.setCreativeTab(CreativeTabs.tabTools);
setIconIndex(tex);
setItemName(name);
}
i also (btw) had to impliment part of Legendary17's tutorial in order to stop my textures from being invisible (remember when i said i fixed it? heres how)
CommonProxy
package lecapria.main.common.core;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import lecapria.main.modMain;
public class CommonProxy implements IGuiHandler
{
//THIS IS IMPORTANT, CANNOT BE A PROXY/GUI HANDLER WITHOUT THIS!!
public static String ITEMS_PNG = "/modMainGFX/items.png";
public static String BLOCK_PNG = "/modMainGFX/block.png";
public void registerRenderInformation() //Client side texture registering
{
}
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
public void registerTiles()
{
}
public void registerBlocks()
{
}
public void addNames()
{
}
public void addRecipes()
{
}
}
ClientProxy
package lecapria.main.common.core;
import lecapria.main.common.core.CommonProxy;
import net.minecraftforge.client.MinecraftForgeClient;
public class ClientProxy extends CommonProxy
{
@Override
public void registerRenderInformation()
{
MinecraftForgeClient.preloadTexture(ITEMS_PNG);
MinecraftForgeClient.preloadTexture(BLOCK_PNG);
}
}
ItemTeeth
package lecapria.main.client.core.item;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import lecapria.main.modMain;
import lecapria.main.common.core.CommonProxy;
import net.minecraft.creativetab.CreativeTabs;
public class ItemTeeth extends Item
{
public ItemTeeth(int par1)
{
super(par1);
setTextureFile("/modMainGFX/items.png");
setItemName("lecapriaItemWormTeeth");
setCreativeTab(CreativeTabs.tabMaterials);
setIconIndex(44);
}
//from here
@SideOnly(Side.CLIENT)
public int getItemIconFromDamage(int i)
{
return 44;
}
//to here, doesnt get read at all
public String getTextureFile() {
return CommonProxy.ITEMS_PNG;
}
}
well it works, it just throws apparently ignorable errors, at least for me. I can still recompile and reobfuscate my project and package it to release, but its just annoying having that error pop up every time. Oh well.
On another note, I'm almost all the way through your tutorials, just have the custom tools and breaking ore blocks by mining level ones left to follow. All of them have been very helpful, I really appreciate that you've done this, and I look forward to more tutorials to come.
K, I guess if it doesn't cause a real problem, it's fine. Errors are annoying though, I agree xD
To make a block glow all you need to do is add .setLightValue(pram1) to a block.
To either the constructor under the super line in the block class or in the mod class when you add the block object.
pram1 is a float value so you have to make it a decimal and add "F" at the end.
it goes from 1.0F to 15.0F with 1.0F being the brightest and glows and gives off light like glowstone, and 15.0F gives off little to almost nothing in light but makes the block glow in the dark.
Example:
.setLightValue(1.0F)
.setLightValue(15.0F)
Also take note that this might not be what your looking for because I don't know who or what Soaryns is.
Not quite what he meant, but a good tip nonetheless. Check out a mod called Xycraft to see what he means
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:8: warn
ing: [deprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:9: warn
ing: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:11: war
ning: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
public class ModLoaderDispenseHelper implements IDispenserHandler
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:39: warning: [d
eprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:40: warning: [d
eprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:39: warning: [depre
cation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:40: warning: [depre
cation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderModContainer.java:528: warn
ing: [deprecation] registerDispenserHandler(IDispenserHandler) in GameRegistry h
as been deprecated
GameRegistry.registerDispenserHandler(ModLoaderHelper.buildDispenseH
elper(mod));
^ src\minecraft\lecapria\main\common\item\ItemCustomHoe.java:31: error: constructo
r ItemLecaprianTools in class ItemLecaprianTools cannot be applied to given type
s;
super(par1);
^
required: int,int,EnumToolMaterial,Block[]
found: int
reason: actual and formal argument lists differ in length src\minecraft\net\minecraft\src\ModLoader.java:638: warning: [deprecation] regis
terBlock(Block) in GameRegistry has been deprecated
GameRegistry.registerBlock(block);
^ src\minecraft\net\minecraft\src\ModLoader.java:649: warning: [deprecation] regis terBlock(Block,Class<? extends ItemBlock>) in GameRegistry has been deprecated
GameRegistry.registerBlock(block, itemclass);
^
1 error
10 warnings
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
Server side recompiling skipped, this is normal
- Done in 0.00 seconds
Press any key to continue . . .
^This one compiles perfectly. but the texture for hoe is. . . well. . . it might as well be MissingNo.'s cousin (black and white gibberish)
EDIT: you may want to fix the code you put for hoe. . . I changed that part of the code to mimic the code for shovel and now it works perfectly- texture and everything
public ItemCustomHoe(int ID, EnumToolMaterial m, int tex, String name)
{
super(ID, 1, m, blocksEffectiveAgainst);
setTextureFile("/modMainGFX/Items.png");
this.setCreativeTab(CreativeTabs.tabTools);
setIconIndex(tex);
setItemName(name);
}
i also (btw) had to impliment part of Legendary17's tutorial in order to stop my textures from being invisible (remember when i said i fixed it? heres how)
CommonProxy
package lecapria.main.common.core;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import lecapria.main.modMain;
public class CommonProxy implements IGuiHandler
{
//THIS IS IMPORTANT, CANNOT BE A PROXY/GUI HANDLER WITHOUT THIS!!
public static String ITEMS_PNG = "/modMainGFX/items.png";
public static String BLOCK_PNG = "/modMainGFX/block.png";
public void registerRenderInformation() //Client side texture registering
{
}
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
public void registerTiles()
{
}
public void registerBlocks()
{
}
public void addNames()
{
}
public void addRecipes()
{
}
}
ClientProxy
package lecapria.main.common.core;
import lecapria.main.common.core.CommonProxy;
import net.minecraftforge.client.MinecraftForgeClient;
public class ClientProxy extends CommonProxy
{
@Override
public void registerRenderInformation()
{
MinecraftForgeClient.preloadTexture(ITEMS_PNG);
MinecraftForgeClient.preloadTexture(BLOCK_PNG);
}
}
ItemTeeth
package lecapria.main.client.core.item;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import lecapria.main.modMain;
import lecapria.main.common.core.CommonProxy;
import net.minecraft.creativetab.CreativeTabs;
public class ItemTeeth extends Item
{
public ItemTeeth(int par1)
{
super(par1);
setTextureFile("/modMainGFX/items.png");
setItemName("lecapriaItemWormTeeth");
setCreativeTab(CreativeTabs.tabMaterials);
setIconIndex(44);
}
//from here
@SideOnly(Side.CLIENT)
public int getItemIconFromDamage(int i)
{
return 44;
}
//to here, doesnt get read at all
public String getTextureFile() {
return CommonProxy.ITEMS_PNG;
}
}
Well I'm not sure how you fixed it, but the hoe works fine for me from the tutroail
The Meaning of Life, the Universe, and Everything.
Join Date:
10/7/2011
Posts:
66
Member Details
The first 2 tutorials are really hard for someone that never used java to understand, my mind got completely ed.
Luckyly i found this and i managed to do it, the tutorials about block creating and etc are 10/10!
The first 2 tutorials are really hard for someone that never used java to understand, my mind got completely ed.
Luckyly i found this and i managed to do it, the tutorials about block creating and etc are 10/10!
Agreed that the setup is easiest explained through videos, but these tutorials aren't aimed at people without a good amount of java experience, which is why I put a link to thenewboston
Agreed that the setup is easiest explained through videos, but these tutorials aren't aimed at people without a good amount of java experience, which is why I put a link to thenewboston
Should at least say that you need python installed to run install.bat
Also i can't find on your turorials how to make the item eatable, do you have it?
My pan is to make a bacon mod just because seems simple, i'll make raw bacon drop from the pig with this tutorial http://darkhaxspace.weebly.com/living-drops.html and than make it smeltable into bacon with your tutorial.
Seems like a good idea for a first mod, simple but i think i'll learn a lot from it :D.
Should at least say that you need python installed to run install.bat
Also i can't find on your turorials how to make the item eatable, do you have it?
My pan is to make a bacon mod just because seems simple, i'll make raw bacon drop from the pig with this tutorial http://darkhaxspace....ving-drops.html and than make it smeltable into bacon with your tutorial.
Seems like a good idea for a first mod, simple but i think i'll learn a lot from it .
Try looking at the pork and cooked pork classes and copy those to start with. I used the golden apple class to implement a golden potato.
I'm, not totally sure why that's in an item class... Item objects should be in the mod class
If i don't have them there won't it want me to make a "constant" or "field" in the Item.java file? That's why i made the ModItem file so that i didn't have to edit the original code from Item.java...
EDIT 1 - I'm an idiot... I just realised my mistake haha thanks for the help/push in the right direction.
Sure thing
edit: ok, so, using my own methods i got the textures to show up. i added shovel, pickaxe, and axe succesfully, but the code you gave for the hoe doesnt compile. . . and if i do things to the code to make it compile, the texture shows up black and white
My Planetminecraft Page
I tried a completely fresh install of forge 6.6.2.534, and immediately ran recompile.bat and got the same error. Does anyone know how to fix this?
This should all work with SMP, forge being universal nowadays
Do you get errors?
I have absolutely no idea what is causing that 0.o
Yes, I extracted the forge zip into a clean directory, ran install.bat which completed with no errors.
After talking with another modder I believe that the problem is that its looking for a separate server which no longer exists, but that hasnt been accounted for by mcp yet. I did get my mod to build and package so its not really a big problem, but I dont like errors I cant fix
MCP's worked the entire 1.4 so far, don't see why it would suddenly fail for no reason, just saying
On another note, I'm almost all the way through your tutorials, just have the custom tools and breaking ore blocks by mining level ones left to follow. All of them have been very helpful, I really appreciate that you've done this, and I look forward to more tutorials to come.
To make a block glow all you need to do is add .setLightValue(pram1) to a block.
To either the constructor under the super line in the block class or in the mod class when you add the block object.
pram1 is a float value so you have to make it a decimal and add "F" at the end.
it goes from 1.0F to 15.0F with 1.0F being the brightest and glows and gives off light like glowstone, and 15.0F gives off little to almost nothing in light but makes the block glow in the dark.
Example:
.setLightValue(1.0F)
.setLightValue(15.0F)
Also take note that this might not be what your looking for because I don't know who or what Soaryns is.
With your code yes.
your code
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csv, ast
yle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_06\bin\javac" -encoding UTF-8 -Xlint:-options -
deprecation -g -sourc...' failed : 1
== ERRORS FOUND ==
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:8: warn
ing: [deprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:9: warn
ing: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:11: war
ning: [deprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
public class ModLoaderDispenseHelper implements IDispenserHandler
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:39: warning: [d
eprecation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:40: warning: [d
eprecation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:39: warning: [depre
cation] IDispenseHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:40: warning: [depre
cation] IDispenserHandler in cpw.mods.fml.common has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderModContainer.java:528: warn
ing: [deprecation] registerDispenserHandler(IDispenserHandler) in GameRegistry h
as been deprecated
GameRegistry.registerDispenserHandler(ModLoaderHelper.buildDispenseH
elper(mod));
^
src\minecraft\lecapria\main\common\item\ItemCustomHoe.java:31: error: constructo
r ItemLecaprianTools in class ItemLecaprianTools cannot be applied to given type
s;
super(par1);
^
required: int,int,EnumToolMaterial,Block[]
found: int
reason: actual and formal argument lists differ in length
src\minecraft\net\minecraft\src\ModLoader.java:638: warning: [deprecation] regis
terBlock(Block) in GameRegistry has been deprecated
GameRegistry.registerBlock(block);
^
src\minecraft\net\minecraft\src\ModLoader.java:649: warning: [deprecation] regis
terBlock(Block,Class<? extends ItemBlock>) in GameRegistry has been deprecated
GameRegistry.registerBlock(block, itemclass);
^
1 error
10 warnings
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
Server side recompiling skipped, this is normal
- Done in 0.00 seconds
Press any key to continue . . .
what i did to fix it
EDIT: you may want to fix the code you put for hoe. . . I changed that part of the code to mimic the code for shovel and now it works perfectly- texture and everything
i also (btw) had to impliment part of Legendary17's tutorial in order to stop my textures from being invisible (remember when i said i fixed it? heres how)
My Planetminecraft Page
RobitHoe = new ItemRobitHoe(1004, toolRobit).setItemName("Robit Hoe").setIconIndex(4);
public ItemRobitHoe(int par1, EnumToolMaterial par2EnumToolMaterial) {
super(par1, par2EnumToolMaterial);
this.setCreativeTab(CreativeTabs.tabTools);
}
public String getTextureFile(){
return "/Robit/gui/Items.png";
}
}
Nevermine
Are there any necessary changes needed to be done to make my mod compatible with MCPC Bukkit?
K, I guess if it doesn't cause a real problem, it's fine. Errors are annoying though, I agree xD
I wish I knew how to do that xD
Not quite what he meant, but a good tip nonetheless. Check out a mod called Xycraft to see what he means
Well I'm not sure how you fixed it, but the hoe works fine for me from the tutroail
A fair amount of porting I believe, unfortunately I have 0 experience with it
Luckyly i found this and i managed to do it, the tutorials about block creating and etc are 10/10!
Looks like he re-draws the texture over the block, he probably does some lightning hooks or... hmm i have no idea hehehe.
Agreed that the setup is easiest explained through videos, but these tutorials aren't aimed at people without a good amount of java experience, which is why I put a link to thenewboston
Should at least say that you need python installed to run install.bat
Also i can't find on your turorials how to make the item eatable, do you have it?
My pan is to make a bacon mod just because seems simple, i'll make raw bacon drop from the pig with this tutorial http://darkhaxspace.weebly.com/living-drops.html and than make it smeltable into bacon with your tutorial.
Seems like a good idea for a first mod, simple but i think i'll learn a lot from it :D.
Try looking at the pork and cooked pork classes and copy those to start with. I used the golden apple class to implement a golden potato.