My friend and I are working on our first mod and we have been using so mush of the code you have released. Thanks!
Also If you wanna go see a preview head on over to gristlyisme and check out DragonFalls. It's going to be a major dimension mod. Anyway, thanks again! (p.s. will you be making an armour tutorial?)
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
The tutorial shows a pretty good example I believe.
package net.minecraft.src;
public class mod_Block extends BaseMod
{
public static final Block nameHere = new BlockNameHere(160, 0).setBlockName("anynamehere").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public void load()
{
nameHere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/image.png");
ModLoader.registerBlock(nameHere);
ModLoader.addName(nameHere, "In-Game Name Here");
ModLoader.addRecipe(new ItemStack(nameHere, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.3.2";
}
}
Specifically the first few lines here:
public static final Block nameHere = new BlockNameHere(160, 0).setBlockName("anynamehere").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
The bottom half of my Grass block isn't working, it's just purple, I changed the texture, but it's still purple.
Can we get a screen cap? If you are trying to use a texture sheet, they do not work in modloader. Also, make sure the texture is 16 pixels by 16 pixels.
Can we get a screen cap? If you are trying to use a texture sheet, they do not work in modloader. Also, make sure the texture is 16 pixels by 16 pixels.
The underside of my grass block is 16 by 16, I also used different textures for the bottom of my grass block, but none worked.
I mean to put the public static final line of the block before the public static final line of the biome.
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 @TechGuy543, my mod is being a Âb**ch, no joke. I could say im pretty expeirienced now at ModLoader modding, but for some reason, the OverRide isnt working. I have checked and everythingis being linked to else etc etc.
But for some reason, VolcaniteBlock.png doesnt want to load. And i have checked i have put it in the right directory, and it still says it cant find it. Please help:
ModLoader Error Code
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader init
FINE: ModLoader 1.2.5 Initializing...
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader readFromClassPath
FINER: Adding mods from C:\Users\Theo\Desktop\mcp1.2.5\src\minecraft
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader readFromClassPath
FINER: Directory found.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteHelm.png,38). 84 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteChest.png,102). 83 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolacniteLegs.png,118). 82 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteBoots.png,119). 81 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcaniteGem.png,120). 80 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/DiamondRod.png,134). 79 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcaniteRock.png,144). 78 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcanitePlate.png,145). 77 left.
Oct 13, 2012 10:16:21 PM net.minecraft.src.ModLoader addMod
FINE: Mod Initialized: "mod_Volcanite Volcanite Mod v0.1" from mod_Volcanite.class
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/terrain.png,/VolcaniteMod/Blocks/VolcaniteOre.png,168). 31 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/terrain.png,/VolcaniteMod/Blocks/VolcaniteBlock.png,169). 30 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcanitePick.png,146). 76 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteSword.png,147). 75 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteAxe.png,148). 74 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteShovel.png,149). 73 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteHoe.png,150). 72 left.
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader init
FINE: Mod Loaded: "mod_Volcanite Volcanite Mod v0.1"
Oct 13, 2012 10:16:22 PM net.minecraft.src.ModLoader addAllRenderers
FINE: Initialized
Oct 13, 2012 10:16:23 PM ModLoader RegisterAllTextureOverrides
FINER: THROW
java.lang.Exception: Image not found: /VolcaniteMod/Blocks/VolcaniteBlock.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:722)
Please help, it even says in the actual ModLoader.txt that it has loaded it -_______- confused much.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
How would I disable a default biome? Also, how would I make it snow in a biome? Finally, how could I make it constantly snow in a biome? Thanks a bunch!
I have a weird problem, When I add 2 FireRuby's to the Crafting Table, It creates 1 FireRuby, The recipe isn't in the base Mod for my FireRuby's or in Crafting Manager. I've tried making a new shapeless recipe that requires two fire ruby's, but it didn't work, I'v also looked through ALL the files I created, but the recipe, "doesn't" exist. There was a Shapeless recipe that required two FireRuby's, But I deleted it and its host mod along time ago, Help?
I am having a rather frustrating problem with my mod where the textures aren't showing up for my blocks, and they are being overriden with random Minecraft ones. I checked the path, and there is no problem there. There is also no errors.
Here's my code for the block:
public static final Block fireOre = new blockFireOre(151,0).setHardness(0.5F).setResistance(5.0F).setBlockName("sapb");
package net.minecraft.src;
import java.util.Random;
public class blockFireOre extends Block
{
public blockFireOre(int par1, int par2)
{
super(par1, par2, Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
}
public int quantityDropped(int par1)
{
return (1);
}
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_bettertoolz.fireStone.shiftedIndex;
}
public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int meta)
{
this.dropXpOnBlockBreak(world, x, y, z, 10);
}
}
I have a weird problem, When I add 2 FireRuby's to the Crafting Table, It creates 1 FireRuby, The recipe isn't in the base Mod for my FireRuby's or in Crafting Manager. I've tried making a new shapeless recipe that requires two fire ruby's, but it didn't work, I'v also looked through ALL the files I created, but the recipe, "doesn't" exist. There was a Shapeless recipe that required two FireRuby's, But I deleted it and its host mod along time ago, Help?
I've done food just like you show in the tutorial, but it keeps filling the health bar instead of the hunger bar, and there's no eating animation too... a little help?
I've created food just like you show us in the tutorials, but it keeps filling the health bar instead of the hunger bar, and there's no eating animation too... a little help?
You'll have to post your code, otherwise nobody will be able to help you.
//Declare energyBar
public static final Item m_energyBar = new ItemFood(411, 8, 1F, false).setItemName("m_energyBar").setTabToDisplayOn(CreativeTabs.tabFood);
Done.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Also If you wanna go see a preview head on over to gristlyisme and check out DragonFalls. It's going to be a major dimension mod. Anyway, thanks again! (p.s. will you be making an armour tutorial?) You have to make the ID more than 200. You have to make the ID more than 200.
How do you declare a Block in this Java file?
-
View User Profile
-
View Posts
-
Send Message
Retired Staffpublic static Block yourBlock = new Block(id);
I'll need an example,
The tutorial shows a pretty good example I believe.
package net.minecraft.src; public class mod_Block extends BaseMod { public static final Block nameHere = new BlockNameHere(160, 0).setBlockName("anynamehere").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep); public void load() { nameHere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/image.png"); ModLoader.registerBlock(nameHere); ModLoader.addName(nameHere, "In-Game Name Here"); ModLoader.addRecipe(new ItemStack(nameHere, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); } public String getVersion() { return "1.3.2"; } }Specifically the first few lines here:
public static final Block nameHere = new BlockNameHere(160, 0).setBlockName("anynamehere").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);remove
if you do not want your block to emit light.
Can we get a screen cap? If you are trying to use a texture sheet, they do not work in modloader. Also, make sure the texture is 16 pixels by 16 pixels.
The underside of my grass block is 16 by 16, I also used different textures for the bottom of my grass block, but none worked.
I mean to put the public static final line of the block before the public static final line of the biome.
together they are powerful beyond imagination."
Code for image overrides or no help.
together they are powerful beyond imagination."
Because I want to have something like this
if (block metadata == 1) { ...I am having a rather frustrating problem with my mod where the textures aren't showing up for my blocks, and they are being overriden with random Minecraft ones. I checked the path, and there is no problem there. There is also no errors.
Here's my code for the block:
public static final Block fireOre = new blockFireOre(151,0).setHardness(0.5F).setResistance(5.0F).setBlockName("sapb");Here's my texture override:
fireOre.blockIndexInTexture = ModLoader.addOverride("/gui/items.png","/Itemss/fo.png"); ModLoader.registerBlock(fireOre); ModLoader.addName(fireOre, "Firestone Ore");and here's my blockFireOre.java file:
package net.minecraft.src; import java.util.Random; public class blockFireOre extends Block { public blockFireOre(int par1, int par2) { super(par1, par2, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); } public int quantityDropped(int par1) { return (1); } public int idDropped(int par1, Random par2Random, int par3) { return mod_bettertoolz.fireStone.shiftedIndex; } public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int meta) { this.dropXpOnBlockBreak(world, x, y, z, 10); } }please help! this is very annoying!
Never mind, found the Problem.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI've created food just like you show us in the tutorials, but it keeps filling the health bar instead of the hunger bar, and there's no eating animation too... a little help?
-
View User Profile
-
View Posts
-
Send Message
Curse Premium//Declare energyBar public static final Item m_energyBar = new ItemFood(411, 8, 1F, false).setItemName("m_energyBar").setTabToDisplayOn(CreativeTabs.tabFood);Done.