public static final Block rubyBlock = new BlockRubyOre(199, 0).getIndirectPowerOutput("Ruby Ore").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);
But it still won't show a texture. Did I leave something out? At least now it says its own name instead of the name of one of my other ores.
Rollback Post to RevisionRollBack
↑Click the achievement above to get to my channel↑
can you post a tutorial how to make 3d modeled weapon and a statue with potion effects? I'm making a Dead Space mod and i need codes for my 211-V Plasma Cutter and for my Red Marker and when you go near of the sign, you will get Nausea potion effect. Can you do that? Here's my topic:
---- Minecraft Crash Report ----
// Don't do that.
Time: 3/26/13 8:25 PM
Description: Exception occured in ModLoader
java.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.src.CraftingManager.addShapelessRecipe(CraftingManager.java:243)
at net.minecraft.src.ModLoader.addShapelessRecipe(ModLoader.java:448)
at net.minecraft.src.mod_chrome.<init>(mod_chrome.java:60)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:366)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1221)
at net.minecraft.src.ModLoader.init(ModLoader.java:779)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:180)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:96)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:417)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:726)
at java.lang.Thread.run(Thread.java:722)
My other post wasn't responded to, so I'll post it again. I changed my public static final Block to this because setUnlocalizedName wouldn't work:
public static final Block rubyBlock = new BlockRubyOre(199, 0).getIndirectPowerOutput("Ruby Ore").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);
But the texture still won't show up. How do I fix it?
Rollback Post to RevisionRollBack
↑Click the achievement above to get to my channel↑
I've looked all over everywhere and I cant find a tutorial on entities. I have made models with techne but I can't do anything with them. Could you do or a tutorial? My models are outside of the 16x16x16 block model size too. I'm NOT looking to make a MOB, I have custom models of various objects I would like to add to my mod. PLEASE HELP! I would even let you use one of my models just so I may learn how to put them into the game.
My other post wasn't responded to, so I'll post it again. I changed my public static final Block to this because setUnlocalizedName wouldn't work:
public static final Block rubyBlock = new BlockRubyOre(199, 0).getIndirectPowerOutput("Ruby Ore").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);
But the texture still won't show up. How do I fix it?
So .getIndirectPowerOutput("RubyOre") is the script for entering a texture.
RubyOre or whatever u type in would be the name of the texture file.
Since 1.5, you must make a 16X16 pic texture of RubyOre, and place it in
the .minecraft jar, in the textures folder, in the Blocks folder Hope it works!
So .getIndirectPowerOutput("RubyOre") is the script for entering a texture.
RubyOre or whatever u type in would be the name of the texture file.
Since 1.5, you must make a 16X16 pic texture of RubyOre, and place it in
the .minecraft jar, in the textures folder, in the Blocks folder Hope it works!
I have been modding with this mod since 1.3, I'm not an idiot. For some reason that code won't show my texture.
EDIT-
Thank god I finally figured out my problem! I looked in the console after running the game and realized that the blocks go in textures/blocks, not texture/items. I feel like an idiot now.
I've looked all over everywhere and I cant find a tutorial on entities. I have made models with techne but I can't do anything with them. Could you do or a tutorial? My models are outside of the 16x16x16 block model size too. I'm NOT looking to make a MOB, I have custom models of various objects I would like to add to my mod. PLEASE HELP! I would even let you use one of my models just so I may learn how to put them into the game.
Also when ever I try to use my own item or block in a crafting or smelting recipe, it says something like : there is no such thing as (item) or (block).
Thx,
Diamond
I have a problem can somebody help me out? The stuff in red are errors (except for the slashes) and I don't undertand how to fix them.
package net.minecraft.src;
import java.util.Random;
public class [color=#ff0000]mod_crdtrd1[/color] extends BaseMod
{
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final Block platinumOre = new BlockPOre(200).getIndirectPowerOutput("platinumore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock);
public static final Item platinumIngot = new ItemPIngot(2000).setUnlocalizedName("platinumingot").setCreativeTab(CreativeTabs.tabMaterials);
public static final Item platinumPick = new ItemPickaxe(2001, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumpick").setCreativeTab(CreativeTabs.tabTools);
public static final Item platinumAxe = new ItemAxe(2002, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumaxe").setCreativeTab(CreativeTabs.tabTools);
public static final Item platinumHoe = new ItemHoe(2003, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumhoe").setCreativeTab(CreativeTabs.tabTools);
public static final Item platinumSpade = new ItemSpade(2004, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumshovel").setCreativeTab(CreativeTabs.tabTools);
public static final Item platinumSword = new ItemSword(2005, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumsword").setCreativeTab(CreativeTabs.tabTools);
public void load()
{
ModLoader.addName(platinumIngot, "Platinum Ingot");
ModLoader.addSmelting(mod_crdtrd1.platinumOre.blockID, new ItemStack(mod_crdtrd1.platinumIngot, 1), 1.0F);
ModLoader.registerBlock(platinumOre);
ModLoader.addName(platinumOre, "Platinum Ore");
}
public void generateSurface(int chunkX, int chunkZ, World world, Random random)
{
for(int i = 0; i > 2; i++) //number of veins
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(9); //height limit
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(platinumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ); //size limit
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final Block titaniumOre = new BlockTOre(201).getIndirectPowerOutput("titaniumore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock);
public static final Item titaniumIngot = new ItemTIngot(3000).setUnlocalizedName("titaniumingot").setCreativeTab(CreativeTabs.tabMaterials);
public static final Item titaniumPick = new ItemPickaxe(3001, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumpick").setCreativeTab(CreativeTabs.tabTools);
public static final Item titaniumAxe = new ItemAxe(3002, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumaxe").setCreativeTab(CreativeTabs.tabTools);
public static final Item titaniumHoe = new ItemHoe(3003, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumhoe").setCreativeTab(CreativeTabs.tabTools);
public static final Item titaniumSpade = new ItemSpade(3004, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumshovel").setCreativeTab(CreativeTabs.tabTools);
public static final Item titaniumSword = new ItemSword(3005, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumsword").setCreativeTab(CreativeTabs.tabTools);
{
ModLoader.addName(titaniumIngot, "Titanium Ingot");
ModLoader.addSmelting(mod_crdtrd1.titaniumOre.blockID, new ItemStack(mod_crdtrd1.titaniumIngot, 1), 1.0F);
ModLoader.registerBlock(titaniumOre);
ModLoader.addName(titaniumOre, "Titanium Ore");
}
public void generateSurface1(int chunkX, int chunkZ, World world, Random random)
{
for(int i = 0; i > 7; i++) //number of veins
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(21); //height limit
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(titaniumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ); //size of veins
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final Block rubyOre = new BlockROre(202).getIndirectPowerOutput("rubyore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock);
public static final Item ruby = new ItemRuby(4000).setUnlocalizedName("ruby").setCreativeTab(CreativeTabs.tabMaterials);
public static final Item rubyPick = new ItemPickaxe(4001, EnumToolMaterial.RUBY).setUnlocalizedName("rubypick").setCreativeTab(CreativeTabs.tabTools);
public static final Item rubyAxe = new ItemAxe(4002, EnumToolMaterial.RUBY).setUnlocalizedName("rubyaxe").setCreativeTab(CreativeTabs.tabTools);
public static final Item rubyHoe = new ItemHoe(4003, EnumToolMaterial.RUBY).setUnlocalizedName("rubyhoe").setCreativeTab(CreativeTabs.tabTools);
public static final Item rubySpade = new ItemSpade(4004, EnumToolMaterial.RUBY).setUnlocalizedName("rubyshovel").setCreativeTab(CreativeTabs.tabTools);
public static final Item rubySword = new ItemSword(4005, EnumToolMaterial.RUBY).setUnlocalizedName("rubysword").setCreativeTab(CreativeTabs.tabTools);
{
ModLoader.addName(ruby, "Ruby");
ModLoader.registerBlock(rubyOre);
ModLoader.addName(rubyOre, "Ruby Ore");
}
public void generateSurface2(int chunkX, int chunkZ, World world, Random random)
{
for(int i = 0; i > 2; i++) //number of veins
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(8); //height limit
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(rubyOre.blockID, 5)).generate(world, random, randPosX, randPosY, randPosZ); //size of veins
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final Item emeraldPick = new ItemPickaxe(5001, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldpick").setCreativeTab(CreativeTabs.tabTools);
public static final Item emeraldAxe = new ItemAxe(5002, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldaxe").setCreativeTab(CreativeTabs.tabTools);
public static final Item emeraldHoe = new ItemHoe(5003, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldhoe").setCreativeTab(CreativeTabs.tabTools);
public static final Item emeraldSpade = new ItemSpade(5004, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldshovel").setCreativeTab(CreativeTabs.tabTools);
public static final Item emeraldSword = new ItemSword(5005, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldsword").setCreativeTab(CreativeTabs.tabTools);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public static final Item dirtPick = new ItemPickaxe(6001, EnumToolMaterial.DIRT).setUnlocalizedName("dirtpick").setCreativeTab(CreativeTabs.tabTools);
public static final Item dirtAxe = new ItemAxe(6002, EnumToolMaterial.DIRT).setUnlocalizedName("dirtaxe").setCreativeTab(CreativeTabs.tabTools);
public static final Item dirtHoe = new ItemHoe(6003, EnumToolMaterial.DIRT).setUnlocalizedName("dirthoe").setCreativeTab(CreativeTabs.tabTools);
public static final Item dirtSpade = new ItemSpade(6004, EnumToolMaterial.DIRT).setUnlocalizedName("dirtshovel").setCreativeTab(CreativeTabs.tabTools);
public static final Item dirtSword = new ItemSword(6005, EnumToolMaterial.DIRT).setUnlocalizedName("dirtsword").setCreativeTab(CreativeTabs.tabTools);
{
[color=#ff0000]return "ßeta 1.5.1";[/color]
}
}
sorry guys im in utah skiing right now for the next week probably cant help much till then
Where are you skiing at? I live next to three resorts maybe you can come stop by my house and help me with modding xD
package net.minecraft.src;
public class mod_myFirstBlock extends BaseMod
{
public static final Block test = new Block(160,
Material.ground).setUnlocalizedName("myFirstBlock").setCreativeTab(CreativeTabs.tabBlock);
public String getVersion()
{
return null;
}
public void load()
{
ModLoader.registerBlock(myFirstBlock);
ModLoader.addName(myFirstBlock, "myFirstBlock");
}
}
I get errors on lines:
6 (The Method setUnlocalizedName is undefined for the type Block)
15 (myFirstBlock cannot be resolved to a variable)
16 (myFirstBlock cannot be resolved to a variable)
Where are you skiing at? I live next to three resorts maybe you can come stop by my house and help me with modding xD
package net.minecraft.src;
public class mod_myFirstBlock extends BaseMod
{
public static final Block test = new Block(160,
Material.ground).setUnlocalizedName("myFirstBlock").setCreativeTab(CreativeTabs.tabBlock);
public String getVersion()
{
return null;
}
public void load()
{
ModLoader.registerBlock(myFirstBlock);
ModLoader.addName(myFirstBlock, "myFirstBlock");
}
}
I get errors on lines:
6 (The Method setUnlocalizedName is undefined for the type Block)
15 (myFirstBlock cannot be resolved to a variable)
16 (myFirstBlock cannot be resolved to a variable)
1: Use getIndirectPowerOutput instead of setUnlocalizedName
2: For both of the bottom errors, you named your block test in the public static final, so it has to be registerBlock(test) and addName(test, "myFirstBlock)
Rollback Post to RevisionRollBack
↑Click the achievement above to get to my channel↑
package net.minecraft.src;
import java.util.Random;
public class mod_myFirstRecipe extends BaseMod
{
public mod_myFirstRecipe()
{
ModLoader.addRecipe(new ItemStack(Block.myFirstBlock, 1), new Object []{
"XXX","XXX","XXX", Character.valueOf('X'), Item.myfirstItem
});
}
public String getVersion()
{
return "3.14159265";
}
public void load()
{
}
}
It can't resolve Item.myFirstItem or Block.myFirstBlock
I have both of them already created.
Phantom, to solve your problem, when ever you use one of your own items or blocks in any type of recipe or smelting thing, you replace Block.(something) or Item.(something) with mod_(whatever your mods name is).
Hope this helps
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
public static final Block rubyBlock = new BlockRubyOre(199, 0).getIndirectPowerOutput("Ruby Ore").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);But it still won't show a texture. Did I leave something out? At least now it says its own name instead of the name of one of my other ores.you might want to look at this http://ichun.us/modding-tutorial-3d-item-models-using-techne/
---- Minecraft Crash Report ----
// Don't do that.
Time: 3/26/13 8:25 PM
Description: Exception occured in ModLoader
java.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.src.CraftingManager.addShapelessRecipe(CraftingManager.java:243)
at net.minecraft.src.ModLoader.addShapelessRecipe(ModLoader.java:448)
at net.minecraft.src.mod_chrome.<init>(mod_chrome.java:60)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:366)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1221)
at net.minecraft.src.ModLoader.init(ModLoader.java:779)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:180)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:96)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:417)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:726)
at java.lang.Thread.run(Thread.java:722)
Pleze respond cuz i have no idea at all wats rong
public static final Block rubyBlock = new BlockRubyOre(199, 0).getIndirectPowerOutput("Ruby Ore").setHardness(10F).setResistance(150F).setCreativeTab(CreativeTabs.tabBlock);But the texture still won't show up. How do I fix it?So .getIndirectPowerOutput("RubyOre") is the script for entering a texture.
RubyOre or whatever u type in would be the name of the texture file.
Since 1.5, you must make a 16X16 pic texture of RubyOre, and place it in
the .minecraft jar, in the textures folder, in the Blocks folder
EDIT-
Thank god I finally figured out my problem! I looked in the console after running the game and realized that the blocks go in textures/blocks, not texture/items. I feel like an idiot now.
Generate Ores! Please!!
^^ Click the Signature to go to my page. (: ^^
Also when ever I try to use my own item or block in a crafting or smelting recipe, it says something like : there is no such thing as (item) or (block).
Thx,
Diamond
package net.minecraft.src; import java.util.Random; public class [color=#ff0000]mod_crdtrd1[/color] extends BaseMod { ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static final Block platinumOre = new BlockPOre(200).getIndirectPowerOutput("platinumore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock); public static final Item platinumIngot = new ItemPIngot(2000).setUnlocalizedName("platinumingot").setCreativeTab(CreativeTabs.tabMaterials); public static final Item platinumPick = new ItemPickaxe(2001, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumpick").setCreativeTab(CreativeTabs.tabTools); public static final Item platinumAxe = new ItemAxe(2002, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumaxe").setCreativeTab(CreativeTabs.tabTools); public static final Item platinumHoe = new ItemHoe(2003, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumhoe").setCreativeTab(CreativeTabs.tabTools); public static final Item platinumSpade = new ItemSpade(2004, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumshovel").setCreativeTab(CreativeTabs.tabTools); public static final Item platinumSword = new ItemSword(2005, EnumToolMaterial.PLATINUM).setUnlocalizedName("platinumsword").setCreativeTab(CreativeTabs.tabTools); public void load() { ModLoader.addName(platinumIngot, "Platinum Ingot"); ModLoader.addSmelting(mod_crdtrd1.platinumOre.blockID, new ItemStack(mod_crdtrd1.platinumIngot, 1), 1.0F); ModLoader.registerBlock(platinumOre); ModLoader.addName(platinumOre, "Platinum Ore"); } public void generateSurface(int chunkX, int chunkZ, World world, Random random) { for(int i = 0; i > 2; i++) //number of veins { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(9); //height limit int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(platinumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ); //size limit } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static final Block titaniumOre = new BlockTOre(201).getIndirectPowerOutput("titaniumore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock); public static final Item titaniumIngot = new ItemTIngot(3000).setUnlocalizedName("titaniumingot").setCreativeTab(CreativeTabs.tabMaterials); public static final Item titaniumPick = new ItemPickaxe(3001, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumpick").setCreativeTab(CreativeTabs.tabTools); public static final Item titaniumAxe = new ItemAxe(3002, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumaxe").setCreativeTab(CreativeTabs.tabTools); public static final Item titaniumHoe = new ItemHoe(3003, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumhoe").setCreativeTab(CreativeTabs.tabTools); public static final Item titaniumSpade = new ItemSpade(3004, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumshovel").setCreativeTab(CreativeTabs.tabTools); public static final Item titaniumSword = new ItemSword(3005, EnumToolMaterial.TITANIUM).setUnlocalizedName("titaniumsword").setCreativeTab(CreativeTabs.tabTools); { ModLoader.addName(titaniumIngot, "Titanium Ingot"); ModLoader.addSmelting(mod_crdtrd1.titaniumOre.blockID, new ItemStack(mod_crdtrd1.titaniumIngot, 1), 1.0F); ModLoader.registerBlock(titaniumOre); ModLoader.addName(titaniumOre, "Titanium Ore"); } public void generateSurface1(int chunkX, int chunkZ, World world, Random random) { for(int i = 0; i > 7; i++) //number of veins { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(21); //height limit int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(titaniumOre.blockID, 3)).generate(world, random, randPosX, randPosY, randPosZ); //size of veins } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static final Block rubyOre = new BlockROre(202).getIndirectPowerOutput("rubyore").setHardness(2F).setResistance(15F).setCreativeTab(CreativeTabs.tabBlock); public static final Item ruby = new ItemRuby(4000).setUnlocalizedName("ruby").setCreativeTab(CreativeTabs.tabMaterials); public static final Item rubyPick = new ItemPickaxe(4001, EnumToolMaterial.RUBY).setUnlocalizedName("rubypick").setCreativeTab(CreativeTabs.tabTools); public static final Item rubyAxe = new ItemAxe(4002, EnumToolMaterial.RUBY).setUnlocalizedName("rubyaxe").setCreativeTab(CreativeTabs.tabTools); public static final Item rubyHoe = new ItemHoe(4003, EnumToolMaterial.RUBY).setUnlocalizedName("rubyhoe").setCreativeTab(CreativeTabs.tabTools); public static final Item rubySpade = new ItemSpade(4004, EnumToolMaterial.RUBY).setUnlocalizedName("rubyshovel").setCreativeTab(CreativeTabs.tabTools); public static final Item rubySword = new ItemSword(4005, EnumToolMaterial.RUBY).setUnlocalizedName("rubysword").setCreativeTab(CreativeTabs.tabTools); { ModLoader.addName(ruby, "Ruby"); ModLoader.registerBlock(rubyOre); ModLoader.addName(rubyOre, "Ruby Ore"); } public void generateSurface2(int chunkX, int chunkZ, World world, Random random) { for(int i = 0; i > 2; i++) //number of veins { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(8); //height limit int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(rubyOre.blockID, 5)).generate(world, random, randPosX, randPosY, randPosZ); //size of veins } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static final Item emeraldPick = new ItemPickaxe(5001, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldpick").setCreativeTab(CreativeTabs.tabTools); public static final Item emeraldAxe = new ItemAxe(5002, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldaxe").setCreativeTab(CreativeTabs.tabTools); public static final Item emeraldHoe = new ItemHoe(5003, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldhoe").setCreativeTab(CreativeTabs.tabTools); public static final Item emeraldSpade = new ItemSpade(5004, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldshovel").setCreativeTab(CreativeTabs.tabTools); public static final Item emeraldSword = new ItemSword(5005, EnumToolMaterial.TRUEEMERALD).setUnlocalizedName("emeraldsword").setCreativeTab(CreativeTabs.tabTools); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static final Item dirtPick = new ItemPickaxe(6001, EnumToolMaterial.DIRT).setUnlocalizedName("dirtpick").setCreativeTab(CreativeTabs.tabTools); public static final Item dirtAxe = new ItemAxe(6002, EnumToolMaterial.DIRT).setUnlocalizedName("dirtaxe").setCreativeTab(CreativeTabs.tabTools); public static final Item dirtHoe = new ItemHoe(6003, EnumToolMaterial.DIRT).setUnlocalizedName("dirthoe").setCreativeTab(CreativeTabs.tabTools); public static final Item dirtSpade = new ItemSpade(6004, EnumToolMaterial.DIRT).setUnlocalizedName("dirtshovel").setCreativeTab(CreativeTabs.tabTools); public static final Item dirtSword = new ItemSword(6005, EnumToolMaterial.DIRT).setUnlocalizedName("dirtsword").setCreativeTab(CreativeTabs.tabTools); { [color=#ff0000]return "ßeta 1.5.1";[/color] } }Where are you skiing at? I live next to three resorts maybe you can come stop by my house and help me with modding xD
package net.minecraft.src; public class mod_myFirstBlock extends BaseMod { public static final Block test = new Block(160, Material.ground).setUnlocalizedName("myFirstBlock").setCreativeTab(CreativeTabs.tabBlock); public String getVersion() { return null; } public void load() { ModLoader.registerBlock(myFirstBlock); ModLoader.addName(myFirstBlock, "myFirstBlock"); } }I get errors on lines:
6 (The Method setUnlocalizedName is undefined for the type Block)
15 (myFirstBlock cannot be resolved to a variable)
16 (myFirstBlock cannot be resolved to a variable)
1: Use getIndirectPowerOutput instead of setUnlocalizedName
2: For both of the bottom errors, you named your block test in the public static final, so it has to be registerBlock(test) and addName(test, "myFirstBlock)
package net.minecraft.src; import java.util.Random; public class mod_myFirstRecipe extends BaseMod { public mod_myFirstRecipe() { ModLoader.addRecipe(new ItemStack(Block.myFirstBlock, 1), new Object []{ "XXX","XXX","XXX", Character.valueOf('X'), Item.myfirstItem }); } public String getVersion() { return "3.14159265"; } public void load() { } }It can't resolve Item.myFirstItem or Block.myFirstBlock
I have both of them already created.
Phantom, to solve your problem, when ever you use one of your own items or blocks in any type of recipe or smelting thing, you replace Block.(something) or Item.(something) with mod_(whatever your mods name is).
Hope this helps