Also ignore the person who asks for a dimension. Trust me it will happen xD
haha. I kind of know how to make a dimension, but I wont make a tutorial just yet if anyone asks. Thanks for the suggestion, I'll get started on it tomorrow.
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."
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol
symbol : class BlockName
location: class net.minecraft.src.mod_Creeper
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
^
1 error
==================
This is my code.
package net.minecraft.src;
public class mod_Creeper extends BaseMod
{
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
public void load()
{
Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png");
ModLoader.RegisterBlock(Creeper);
ModLoader.AddName(Creeper, "Creeper Block");
ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder});
}
public String getVersion()
{
return "1.1";
}
}
Your tutorials look cool. I really want a human mob tutorial. Hope you respond soon. no one else has...
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol
symbol : class BlockName
location: class net.minecraft.src.mod_Creeper
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
^
1 error
==================
This is my code.
package net.minecraft.src;
public class mod_Creeper extends BaseMod
{
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
public void load()
{
Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png");
ModLoader.RegisterBlock(Creeper);
ModLoader.AddName(Creeper, "Creeper Block");
ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder});
}
public String getVersion()
{
return "1.1";
}
}
Your tutorials look cool. I really want a human mob tutorial. Hope you respond soon. no one else has...
You need a class BlockName. Then just add the template from Jotamota's tutorial.
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol
symbol : class BlockName
location: class net.minecraft.src.mod_Creeper
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
^
1 error
==================
This is my code.
package net.minecraft.src;
public class mod_Creeper extends BaseMod
{
public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
public void load()
{
Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png");
ModLoader.RegisterBlock(Creeper);
ModLoader.AddName(Creeper, "Creeper Block");
ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder});
}
public String getVersion()
{
return "1.1";
}
}
Your tutorials look cool. I really want a human mob tutorial. Hope you respond soon. no one else has...
You need another class called BlockName. Then add into it what I wrote in the block spoiler.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Can you add a tutorial on how to merge your mods? I mean if you want one mod adding 103242 items and not 103242 mods.
You simply just put all of your blocks/items code into one file. Like so:
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block GreenBlock = new BlockGreen(160, 0).setBlockName("green").setHardness(3F).setResistance(4F).setLightValue(1F);
public static final Block BlueBlock = new BlockBlue(161, 0).setBlockName("blue").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
GreenBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/pathtoyourfile/image.png");
ModLoader.RegisterBlock(GreenBlock);
ModLoader.AddName(GreenBlock, "In-Game Name Here");
ModLoader.AddRecipe(new ItemStack(GreenBlock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
BlueBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/pathtoyourfile/image2.png");
ModLoader.RegisterBlock(BlueBlock);
ModLoader.AddName(BlueBlock, "In-Game Name Here");
ModLoader.AddRecipe(new ItemStack(BlueBlock, 1), new Object [] {"##", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.1";
}
}
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol
symbol : method setBlockCreeper(java.lang.String)
location: class net.minecraft.src.BlockCreeper
public static final Block Creeper = new BlockCreeper(160, 0).setBlockCreeper("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
^
1 error
==================
This is the mod_Creeper
package net.minecraft.src;
public class mod_Creeper extends BaseMod
{
public static final Block Creeper = new BlockCreeper(160, 0).setBlockCreeper("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F);
public void load()
{
Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png");
ModLoader.RegisterBlock(Creeper);
ModLoader.AddName(Creeper, "Creeper Block");
ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder});
}
public String getVersion()
{
return "1.1";
}
This is my BlockCreeper file if you want to know. I don't think it involves this class but whatever.
package net.minecraft.src;
public class BlockCreeper extends Block
{
public BlockCreeper(int i, int j)
{
super(i, j, Material.wood);
}
}
Thanks for your help. I'm making random mods for my enjoyment. This will make creeper blocks.
That can't be changed, only what is in the " " can be changed
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 I fixed my block creeper mod and it compiled right but I got a picture error in my mcp
[17:03:30] java.lang.RuntimeException: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
[17:03:30] at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
[17:03:30] at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
[17:03:30] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
[17:03:30] at net.minecraft.client.Minecraft.run(Minecraft.java:634)
[17:03:30] at java.lang.Thread.run(Thread.java:680)
[17:03:30] Caused by: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
SUGGESTION : World generations.
Yes, I know this would be tough. But I also want to know how to generate things like flowers, I know someone asked for ores, and you still need to make the flower, but I wanted to know how to generate CUSTOM flowers.
hey I fixed my block creeper mod and it compiled right but I got a picture error in my mcp
[17:03:30] java.lang.RuntimeException: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
[17:03:30] at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
[17:03:30] at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
[17:03:30] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
[17:03:30] at net.minecraft.client.Minecraft.run(Minecraft.java:634)
[17:03:30] at java.lang.Thread.run(Thread.java:680)
[17:03:30] Caused by: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
I really want this to work...
... you realise you need to put the file in wherever you assigned it to right?
Say I assign all my mod textures to "mods/(imagehere)", I made a file called mods inside my minecraft.jar and then put the image in there. There you go.
hey I fixed my block creeper mod and it compiled right but I got a picture error in my mcp
[17:03:30] java.lang.RuntimeException: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
[17:03:30] at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
[17:03:30] at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
[17:03:30] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
[17:03:30] at net.minecraft.client.Minecraft.run(Minecraft.java:634)
[17:03:30] at java.lang.Thread.run(Thread.java:680)
[17:03:30] Caused by: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
I really want this to work...
Just like Conaneve said, you should make a folder called mods or something like that, then put it in the minecraft.jar with your image in it. Then your index would look like this:
hey I fixed my block creeper mod and it compiled right but I got a picture error in my mcp
[17:03:30] java.lang.RuntimeException: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
[17:03:30] at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
[17:03:30] at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
[17:03:30] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
[17:03:30] at net.minecraft.client.Minecraft.run(Minecraft.java:634)
[17:03:30] at java.lang.Thread.run(Thread.java:680)
[17:03:30] Caused by: java.lang.Exception: Image not found: Creeper.png
[17:03:30] at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
[17:03:30] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
I really want this to work...
Just like Conaneve said, you should make a folder called mods or something like that, then put it in the minecraft.jar with your image in it. Then your index would look like this:
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Added a human npc tutorial. Advanced blocks, and plant/flower are next.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
EDIT: I will use your banner until I make one for my own mod!
Thanks :smile.gif: Glad I could help.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I was using your food tutorial but I keep running into the error about my food image not being found. Where do I put it if I'm running the code through MCP?(I tried putting it into MCP>bin>minecraft).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Also ignore the person who asks for a dimension. Trust me it will happen xD
haha. I kind of know how to make a dimension, but I wont make a tutorial just yet if anyone asks. Thanks for the suggestion, I'll get started on it tomorrow.
together they are powerful beyond imagination."
I'll put a few things like that in an Advanced Block section. Any other advanced block ideas? Thanks for your suggestions :smile.gif:
together they are powerful beyond imagination."
Blocks that preform a function (like lighting) when they are powered by redstone!
== ERRORS FOUND == src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol symbol : class BlockName location: class net.minecraft.src.mod_Creeper public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F); ^ 1 error ==================This is my code.
package net.minecraft.src; public class mod_Creeper extends BaseMod { public static final Block Creeper = new BlockName(160, 0).setBlockName("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F); public void load() { Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png"); ModLoader.RegisterBlock(Creeper); ModLoader.AddName(Creeper, "Creeper Block"); ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder}); } public String getVersion() { return "1.1"; } }Your tutorials look cool. I really want a human mob tutorial. Hope you respond soon. no one else has...
cause im trying to make a lemon and tomato bush thing
You need a class BlockName. Then just add the template from Jotamota's tutorial.
I'll get onto that straight away :smile.gif:
Epic! That sounds like a sweet idea.
You need another class called BlockName. Then add into it what I wrote in the block spoiler.
I'll add it to the list.
I'll add this to the list as well :biggrin.gif: Thanks for the suggestion
together they are powerful beyond imagination."
You simply just put all of your blocks/items code into one file. Like so:
package net.minecraft.src; public class mod_Block extends BaseMod { public static final Block GreenBlock = new BlockGreen(160, 0).setBlockName("green").setHardness(3F).setResistance(4F).setLightValue(1F); public static final Block BlueBlock = new BlockBlue(161, 0).setBlockName("blue").setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { GreenBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/pathtoyourfile/image.png"); ModLoader.RegisterBlock(GreenBlock); ModLoader.AddName(GreenBlock, "In-Game Name Here"); ModLoader.AddRecipe(new ItemStack(GreenBlock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); BlueBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/pathtoyourfile/image2.png"); ModLoader.RegisterBlock(BlueBlock); ModLoader.AddName(BlueBlock, "In-Game Name Here"); ModLoader.AddRecipe(new ItemStack(BlueBlock, 1), new Object [] {"##", Character.valueOf('#'), Block.dirt}); } public String getVersion() { return "1.1"; } }together they are powerful beyond imagination."
== ERRORS FOUND == src/minecraft/net/minecraft/src/mod_Creeper.java:5: cannot find symbol symbol : method setBlockCreeper(java.lang.String) location: class net.minecraft.src.BlockCreeper public static final Block Creeper = new BlockCreeper(160, 0).setBlockCreeper("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F); ^ 1 error ==================This is the mod_Creeper
package net.minecraft.src; public class mod_Creeper extends BaseMod { public static final Block Creeper = new BlockCreeper(160, 0).setBlockCreeper("Hikoyu").setHardness(1F).setResistance(4F).setLightValue(0F); public void load() { Creeper.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Creeper.png"); ModLoader.RegisterBlock(Creeper); ModLoader.AddName(Creeper, "Creeper Block"); ModLoader.AddRecipe(new ItemStack(Creeper, 1), new Object [] {"#", Character.valueOf('#'), Item.gunpowder}); } public String getVersion() { return "1.1"; }This is my BlockCreeper file if you want to know. I don't think it involves this class but whatever.
package net.minecraft.src; public class BlockCreeper extends Block { public BlockCreeper(int i, int j) { super(i, j, Material.wood); } }Thanks for your help. I'm making random mods for my enjoyment. This will make creeper blocks.
.setBlockName("name")That can't be changed, only what is in the " " can be changed
together they are powerful beyond imagination."
I really want this to work...
Yes, I know this would be tough. But I also want to know how to generate things like flowers, I know someone asked for ores, and you still need to make the flower, but I wanted to know how to generate CUSTOM flowers.
... you realise you need to put the file in wherever you assigned it to right?
Say I assign all my mod textures to "mods/(imagehere)", I made a file called mods inside my minecraft.jar and then put the image in there. There you go.
Just like Conaneve said, you should make a folder called mods or something like that, then put it in the minecraft.jar with your image in it. Then your index would look like this:
blockNamehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/imagename.png");Just like Conaneve said, you should make a folder called mods or something like that, then put it in the minecraft.jar with your image in it. Then your index would look like this:
blockNamehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/imagename.png");together they are powerful beyond imagination."
together they are powerful beyond imagination."
EDIT: I will use your banner until I make one for my own mod!
Thanks :smile.gif: Glad I could help.
together they are powerful beyond imagination."