Umm I Don't Think I Need The Code To Ask This But..
In My Mod_ I Have 15 blocks and i have the BlockFiles. There Are No Errors in the code at all But When i play the game The Name For all the blocks is the same as the Last One I Have Made.
It's me again, with another error! So I created an Eskimo creature following your human NPC code. The game is able to launch and I can play fine. But when I create a new world I get this error repeatedly:
java.lang.NoSuchMethodException: net.minecraft.src.mod_eskimo.<init>(net.minecraft.src.World)
at java.lang.Class.getConstructor0(Class.java:2706)
at java.lang.Class.getConstructor(Class.java:1657)
at net.minecraft.src.SpawnerAnimals.performWorldGenSpawning(SpawnerAnimals.java:276)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:512)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1140)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:654)
at net.minecraft.src.World.getBlockId(World.java:547)
at net.minecraft.src.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:204)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:118)
at net.minecraft.src.World.tick(World.java:2850)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1903)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
The skin for my mob is just a normal minecraft skin, I hope thats alright. Oh, and I haven't seen any of my mobs yet, could you give me a clue as to what I should set the spawning variables to so they're extremely common.
I Have A Question. How Do Make It So That You Only Use 1 ID for more than 1 block like wool or planks that use the same id but with a .# after it
I honestly have no clue. If I figure it out I'll make a tutorial.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hey TechGuy, do you know how to make a custom armor renderer, so the armor has a custom model. not just like the usual vanilla ones. Well, I did post this in Mod Development and nobody is replying yet. Well, just wondering if you know how.
Hey TechGuy, do you know how to make a custom armor renderer, so the armor has a custom model. not just like the usual vanilla ones. Well, I did post this in Mod Development and nobody is replying yet. Well, just wondering if you know how.
No, I have no idea. Haven't worked with any armour whatsoever before.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Oh I deleted that class, I've kinda changed the base idea for my mod. Thanks anyway, can't wait for the bow tutorial as I'm having trouble with making mine
It might be a while before I make it because I just added the tools tutorial and I'm yet to explain all of it, and I have other things to work on too. If you don't want to wait, check out Stewie's tutorial on bows here. I followed it to make my bow(mainly just to see how to do the textures).
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
In the adding you block to creative, I get this error : "creativeInventory cannot be resolved to a variable" In eclipse. Help. I will add the code if you need
Mods loaded: 6
ModLoader 1.2.5
mod_Biome1 1.2.5
mod_carpet 1.2.5
mod_crazyblock 1.2.5
mod_hotdog 1.2.5
mod_HumanNPC 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2c9c724f --------
Generated 5/20/12 1:41 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2182, Intel
java.lang.Exception: No more empty terrain sprite indices left!
at net.minecraft.src.ModLoader.getUniqueTerrainSpriteIndex(ModLoader.java:694)
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:671)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:365)
at net.minecraft.src.mod_crazyblock.load(mod_crazyblock.java:9)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 816e0876 ----------
Mods loaded: 6
ModLoader 1.2.5
mod_Biome1 1.2.5
mod_carpet 1.2.5
mod_crazyblock 1.2.5
mod_hotdog 1.2.5
mod_HumanNPC 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2c9c724f --------
Generated 5/20/12 1:41 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics version 2.1.0 - Build 8.15.10.2182, Intel
java.lang.Exception: No more empty terrain sprite indices left!
at net.minecraft.src.ModLoader.getUniqueTerrainSpriteIndex(ModLoader.java:694)
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:671)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:365)
at net.minecraft.src.mod_crazyblock.load(mod_crazyblock.java:9)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 816e0876 ----------
I have a question. I am making a mod that adds orange brick. All the code is fine but when I do the crafting there is no orange dye or orange wool. So my question is how do you makke crafting recipes that don't have a class. The closest I could find was "dye powder"?
Edit: One more question: (answer the first one to) How do you make it so you can place a block anywhere in the crafting table to get the same thing? For example: Wood and dirt makes rotting wood. How would you put the dirt/wood in any crafting space?
I have a question. I am making a mod that adds orange brick. All the code is fine but when I do the crafting there is no orange dye or orange wool. So my question is how do you makke crafting recipes that don't have a class. The closest I could find was "dye powder"?
Edit: One more question: (answer the first one to) How do you make it so you can place a block anywhere in the crafting table to get the same thing? For example: Wood and dirt makes rotting wood. How would you put the dirt/wood in any crafting space?
I have a question. I am making a mod that adds orange brick. All the code is fine but when I do the crafting there is no orange dye or orange wool. So my question is how do you makke crafting recipes that don't have a class. The closest I could find was "dye powder"?
Edit: One more question: (answer the first one to) How do you make it so you can place a block anywhere in the crafting table to get the same thing? For example: Wood and dirt makes rotting wood. How would you put the dirt/wood in any crafting space?
ModLoader.addShapelessRecipe(new ItemStack(rottingWood), new Object[]
{Block.wood, Block.dirt});
So dyepowder <space> 13? How about wool
Edit: dyepowder 13 doesn't work dyepowder13 also doesn't work.
And please tell me how you use a block like wool in crafting
Other then these few errors everything else works great
So dyepowder <space> 13? How about wool
Edit: dyepowder 13 doesn't work dyepowder13 also doesn't work.
And please tell me how you use a block like wool in crafting
Other then these few errors everything else works great
The recipe tutorial shows you exactly how to do it.
Character.valueOf('#'), new ItemStack(Item.dyePowder, 1, 13)
For my Mod i made it so random structures spawn but how do i make it so they spawn on flat land as they kinda spawn in the air
Add an if statement to your generate method in your WorldGen class to check that it is grass and the block above is air. Then that same thing how ever many blocks away the end of the structure is.
public boolean generate(World world, Random rand, int i, int j, int k)
{
if(world.getBlockId(i, j - 1, k) == Block.grass.blockID && world.getBlockId(i, j, k) == 0 && world.getBlockId(i + 20, j - 1, k) == Block.grass.blockID && world.getBlockId(i + 20, j, k) == 0)
You can continue that on if you need to check the k(z) axis as well.
Use MinecraftForge. There are tutorials on the forums about how to use it. Forge also has its own forum which has all of its tutorials as well.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
package net.minecraft.src;
import java.util.Random;
public class BlockCrystal extends Block
{
public BlockCrystal(int i, int j)
{
super(i, j, Material.glass);
}
public int idDropped(int i, Random random)
{
return mod_project.Shard.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 3 + random.nextInt(3);
}
}
Here is an error - as drop is block, not item. And must be item.
package net.minecraft.src;
import java.util.Random;
public class BlockCrystal extends Block
{
public BlockCrystal(int i, int j)
{
super(i, j, Material.glass);
}
public int idDropped(int i, Random random)
{
return mod_project.Shard.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 3 + random.nextInt(3);
}
}
Here is an error - as drop is block, not item. And must be item.
If you look at the block class in my tutorial, you will see a little something called
int j
as an argument in a little method called
idDropped
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
In My Mod_ I Have 15 blocks and i have the BlockFiles. There Are No Errors in the code at all But When i play the game The Name For all the blocks is the same as the Last One I Have Made.
*Edit: Fixed It*
Post your code please. Even if it is the same.
I honestly have no clue. If I figure it out I'll make a tutorial.
together they are powerful beyond imagination."
No, I have no idea. Haven't worked with any armour whatsoever before.
together they are powerful beyond imagination."
It might be a while before I make it because I just added the tools tutorial and I'm yet to explain all of it, and I have other things to work on too. If you don't want to wait, check out Stewie's tutorial on bows here. I followed it to make my bow(mainly just to see how to do the textures).
together they are powerful beyond imagination."
electroPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/electroshovel.png");Does anything seem unusual here?
together they are powerful beyond imagination."
ModLoader 1.2.5
mod_Biome1 1.2.5
mod_carpet 1.2.5
mod_crazyblock 1.2.5
mod_hotdog 1.2.5
mod_HumanNPC 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2c9c724f --------
Generated 5/20/12 1:41 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2182, Intel
java.lang.Exception: No more empty terrain sprite indices left!
at net.minecraft.src.ModLoader.getUniqueTerrainSpriteIndex(ModLoader.java:694)
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:671)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:365)
at net.minecraft.src.mod_crazyblock.load(mod_crazyblock.java:9)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 816e0876 ----------
So How Do I Fix That?
Edit: One more question: (answer the first one to) How do you make it so you can place a block anywhere in the crafting table to get the same thing? For example: Wood and dirt makes rotting wood. How would you put the dirt/wood in any crafting space?
dyepowder 13 is orange
ModLoader.addShapelessRecipe(new ItemStack(rottingWood), new Object[] {Block.wood, Block.dirt});Edit: dyepowder 13 doesn't work dyepowder13 also doesn't work.
And please tell me how you use a block like wool in crafting
Other then these few errors everything else works great
The recipe tutorial shows you exactly how to do it.
Character.valueOf('#'), new ItemStack(Item.dyePowder, 1, 13)Add an if statement to your generate method in your WorldGen class to check that it is grass and the block above is air. Then that same thing how ever many blocks away the end of the structure is.
public boolean generate(World world, Random rand, int i, int j, int k) { if(world.getBlockId(i, j - 1, k) == Block.grass.blockID && world.getBlockId(i, j, k) == 0 && world.getBlockId(i + 20, j - 1, k) == Block.grass.blockID && world.getBlockId(i + 20, j, k) == 0)You can continue that on if you need to check the k(z) axis as well.
Use MinecraftForge. There are tutorials on the forums about how to use it. Forge also has its own forum which has all of its tutorials as well.
together they are powerful beyond imagination."
package net.minecraft.src; import java.util.Random; public class BlockCrystal extends Block { public BlockCrystal(int i, int j) { super(i, j, Material.glass); } public int idDropped(int i, Random random) { return mod_project.Shard.shiftedIndex; } public int quantityDropped(Random random) { return 3 + random.nextInt(3); } }Here is an error - as drop is block, not item. And must be item.
If you look at the block class in my tutorial, you will see a little something called
as an argument in a little method called
together they are powerful beyond imagination."