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).
Post your iconIndex line of code please.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
@TechGuy543 you should make armour and tool tutorials too thats what alot of people are interested in also i tried making the block but it gave me a error message that was just like java render java mod_Block and idk what it means so il try it anyway later :biggrin.gif:
hemmm, when i'm on eclipse, how i add files like mod_test and blocktest? what i should create, a java project or a normal project?
EDIT: solved by copypasting an original file.
you should add to your tutorials a complete explaination of the variables (for example, what change from hardness 3 to hardness 2...
EDIT2: where do I put the texture for my block?
Have a look at the 'images' section on the main post. Also, you can just create a new Class, and then put your code into it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Help please, I followed adding a block exactly, and then when I made my block initialized I always get this message
Minecraft: Minecraft 1.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
... 5 more
--- END ERROR REPORT 503e4717 ----------
I am not a noob at java and such, and know that this is caused by graphics, but I do not know why...
Help please, I followed adding a block exactly, and then when I made my block initialized I always get this message
Minecraft: Minecraft 1.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot™ Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
... 5 more
--- END ERROR REPORT 503e4717 ----------
I am not a noob at java and such, and know that this is caused by graphics, but I do not know why...
Have a look at the section I made about images. It tells you where to put them.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Have a look at the section I made about images. It tells you where to put them.
I did but you weren't specific enough, but I fixed the problem by reading other comments, so thnx anyway, the rest of the tutorial is the best on the web
I did but you weren't specific enough, but I fixed the problem by reading other comments, so thnx anyway, the rest of the tutorial is the best on the web
Thanks!! :biggrin.gif: Please tell me how can I be more specific in the images section, I welcome constructive criticism :smile.gif:
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."
I was just saying to myself taht I was going to support you for the Amazing thing you've done by including the banner to my signature, but isn't the banner saying "Check out my MODDING TUTORIALS" ?
And could you add a tutorial about making a New Biome ? That would be great !
And you can be helped by that site: http://wiki.zidmc.info
And thanks for that by the way !
That's why I added the TechGuy's Modding Tutorials banner, its not very creative, but it a start I guess. Someone made me the "Check out my modding tutorials banner" for me to use. I could get him to make another creative one for everyone else though.
Can somebody please explain why my mod crashes when i try to craft whiteblock
The code doesn't have errors according to eclipse
And i don't think it has an error report because it crashes on creation of the block and not when i load up minecraft
the block also doesn't appear in too many items(if this helps)
mod_
package net.minecraft.src;
import java.util.Map;
public class mod_whitender extends BaseMod
{
public static final Item whitepearl = (new Item(1451)).setItemName("whitepearl");
//ModLoader.AddArmor("pearl")
public static final Item pearlhelm = (new ItemArmor(1450, EnumArmorMaterial.DIAMOND, 4, 0)).setItemName("pearlhelm");
public static final Block blockWhite = (new BlockWhite(237, 0)).setHardness(-1F).setResistance(-1F).setBlockName("blockWhite");
public void addRenderer(Map map){
map.put(EntityWhitender.class, new RenderEnderman()); }
public void load()
{
ModLoader.RegisterEntityID(EntityWhitender.class, "White Enderman", ModLoader.getUniqueEntityId());
// ModLoader.AddSpawn(EntityWhitender.class, 100, 1, 3, EnumCreatureType.creature);
blockWhite.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/kjom/blocks/whiteblock.png");
whitepearl.iconIndex = ModLoader.addOverride("/gui/items.png", "/kjom/items/whitepearl.png");
pearlhelm.iconIndex = ModLoader.addOverride("/gui/items.png", "/kjom/armour/pearlhelm2.png");
ModLoader.AddName(whitepearl, "White Pearl");
ModLoader.AddName(blockWhite, "White Block");
ModLoader.AddName(pearlhelm, "Pearl Crown");
ModLoader.AddRecipe(new ItemStack(blockWhite, 1), new Object[] {
"XXX", "X|X", "XXX", Character.valueOf('X'), Item.ingotGold, Character.valueOf('|'),Item.enderPearl});
ModLoader.AddRecipe(new ItemStack(pearlhelm, 1), new Object[] {
" | ", "XXX", "X X", Character.valueOf('X'), Item.ingotGold, Character.valueOf('|'),whitepearl});
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return "1.0.0";
}
}
BlockWhite
package net.minecraft.src;
public class BlockWhite extends Block
{
private boolean blockType;
protected BlockWhite(int i, int j)
{
super(i, Material.rock);
setTickOnLoad(true);
}
public void onBlockAdded(World world, int i, int j, int k)
{
super.onBlockAdded(world, i, j, k);
if(world.getBlockId(i - 1, j, k) == Block.glowStone.blockID && world.getBlockId(i + 1, j, k) == Block.glowStone.blockID && world.getBlockId(i, j, k + 1) == Block.glowStone.blockID && world.getBlockId(i, j, k - 1) == Block.glowStone.blockID)
{
if(!world.multiplayerWorld)
{
world.setBlockWithNotify(i, j, k, 0);
world.setBlockWithNotify(i - 1, j, k, 0);
world.setBlockWithNotify(i + 1, j, k, 0);
world.setBlockWithNotify(i, j, k - 1, 0);
world.setBlockWithNotify(i, j, k + 1, 0);
EntityWhitender entitywhitender = new EntityWhitender(world);
entitywhitender.setLocationAndAngles((double)i + 0.5D, (double)j - 1.95D, (double)k + 0.5D, 0.0F, 0.0F);
world.entityJoinedWorld(entitywhitender);
}
for(int l = 0; l < 120; l++)
{
world.spawnParticle("snowshovel", (double)i + world.rand.nextDouble(), (double)(j + 1) + world.rand.nextDouble() * 2.5D, (double)k + world.rand.nextDouble(), 0.0D, 0.0D, 0.0D);
}
}
}
public boolean canPlaceBlockAt(World world, int i, int j, int k)
{
int l = world.getBlockId(i, j, k);
return (l == 0 || Block.blocksList[l].blockMaterial.getIsGroundCover()) && world.isBlockNormalCube(i, j - 1, k);
}
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
{
int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 2.5D) & 3;
world.setBlockMetadataWithNotify(i, j, k, l);
}
}
EntityWhitender is an (almost) exact copy of EntityEnderman (i only changed texture and the
canCarryBlocks
bit) so i didnt think i needed to post that
thanks in advance
p.s. i forgot how to make spoilers sorry
p.p.s sorry that this has not much relevance to your tutorials, but i'm stuck until i can get this to work
p.p.p.s yes this was coded in and for 1.0 but if you could correct it for 1.1 i would be grateful (meanwhile i will get to updating the rest of my mods.
As a mod maker how do you go about updating mods when i tried to update from 1.7 to 1.0 i just put my 1.7 mods into the 1.0 .jar and started the whole mcp process all over again (which caused a lot of errors where it would replace bits of code with other bits e.g. changing .shiftedIndex to .BiomeDecorator and things like that throughout my code so i know there must be an easier way
thanks if you can help.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
how can i make a block that burns forever like netherrack? (without modifying the base class of the fire)
how can i generate the ores in the nether?
I'm am still figuring out the never ending fire on certain blocks but for the nether ore generation, you simply change
public void GenerateSurface(World world, Random random, int i, int j)
to this
public void GenerateNether(World world, Random random, int i, int j)
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 can you do andanced weapons and tools! I know how to make a tool set if you want to know but you should also make a advanced tools like explosive tools and extra resistant tools.
Could you show where the recipes go in the template that would be wonderful
Recipes go in the
public void load()
method, in between the two { }
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hi,
I'm just starting with modding. I went through some various tutorials and I have some questions. First, what to do with Modloader mod to be able to run it from mods folder (i.e. not placing files directly to minecraft.jar)? I haven't found it anywhere. Second, will you make tutorials about building generation (for example more houses in villages, wells in deserts etc.)? Thanks in advance :smile.gif:
Post your iconIndex line of code please.
together they are powerful beyond imagination."
I'm not sure, I'll test it and get back to you.
Have a look at the 'images' section on the main post. Also, you can just create a new Class, and then put your code into it.
together they are powerful beyond imagination."
Minecraft: Minecraft 1.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8794, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: /gfx/lib.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
... 5 more
--- END ERROR REPORT 503e4717 ----------
I am not a noob at java and such, and know that this is caused by graphics, but I do not know why...
Have a look at the section I made about images. It tells you where to put them.
together they are powerful beyond imagination."
I did but you weren't specific enough, but I fixed the problem by reading other comments, so thnx anyway, the rest of the tutorial is the best on the web
Thanks!! :biggrin.gif: Please tell me how can I be more specific in the images section, I welcome constructive criticism :smile.gif:
together they are powerful beyond imagination."
No problem. Glad I could help. :smile.gif:
together they are powerful beyond imagination."
That's why I added the TechGuy's Modding Tutorials banner, its not very creative, but it a start I guess. Someone made me the "Check out my modding tutorials banner" for me to use. I could get him to make another creative one for everyone else though.
Can you post the error report please.
together they are powerful beyond imagination."
I'm am still figuring out the never ending fire on certain blocks but for the nether ore generation, you simply change
to this
together they are powerful beyond imagination."
Recipes go in the
method, in between the two { }
together they are powerful beyond imagination."
I'm just starting with modding. I went through some various tutorials and I have some questions. First, what to do with Modloader mod to be able to run it from mods folder (i.e. not placing files directly to minecraft.jar)? I haven't found it anywhere. Second, will you make tutorials about building generation (for example more houses in villages, wells in deserts etc.)? Thanks in advance :smile.gif:
Btw. great tutorials! :smile.gif:
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/