You are viewing our Forum Archives. To view or take place in current topics click here.

Are these good tutorials? Sticky?

Yes deserves a sticky!
66.34% (67 votes)
There good but not sticky worthy
13.86% (14 votes)
There not good
19.80% (20 votes)

Total Votes: 101

#11. Posted:
Odin
  • TTG Addict
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Nicomang wrote
I tried to create a new block called a crate, just to try out a tutorial of yours. It got an error that I don't understand:
...mod_newCrates is not abstract and does not override abstract method load() in BaseMod public class mod_newCrates extends BaseMod.
The code for the .java file in src called mod_newCrates:

package net.minecraft.src;

public class mod_newCrates extends BaseMod
{
public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

public String Version()
{
return "1.0";
}

public mod_newCrates()
{
ModLoader.RegisterBlock(Crate);
Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
ModLoader.AddName(Crate, "Crate");
ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
"##", "##", Character.valueOf('#'), Block.wood
});
}
}

The code for the BlockCrate .java file:
package net.minecraft.src;

import java.util.Random;

public class BlockCrate extends Block
{

public BlockCrate(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random)
{
return mod_newCrates.Crate.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}

I was hoping maybe you could help me with this error. These tutorials look awesome, and I can't wait to get some to work. I haven't found any up to date 1.0 tutorials that are decent besides these; if I get this to work. The other tutorials I've found aren't as up-to-date. I hope you can help, and keep making tutorials. If you do, I'll show a few of my friends this so we can make some cool mods. I really do hope you keep creating them, I just think people haven't seen this post. Try putting this on Minecraft forums or planet Minecraft? Also, I am wondering if you could make a mob tutorial, or maybe something for the nether? Maybe even another dimension? I have trouble with Java, because I am pretty new, so I can't really create my own mods. I hope you take one of these things into consideration!

-Thanks
Thanks for the reply, im setting up my MCP so i can try and help you check back in a few ill update with a fix


Edit** So i fixed the abstract error here is the fixed mod_newCrates

package net.minecraft.src;

public abstract class mod_newCrates extends BaseMod {
   
   public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

   public String Version() {
      return "1.0";
   }

   public mod_newCrates() {
      ModLoader.RegisterBlock(Crate);
      Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
      ModLoader.AddName(Crate, "Crate");
      ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
         "##", "##", Character.valueOf('#'), Block.wood
      });
   }
}
#12. Posted:
Nicomang
  • New Member
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
sackorice wrote
Nicomang wrote
I tried to create a new block called a crate, just to try out a tutorial of yours. It got an error that I don't understand:
...mod_newCrates is not abstract and does not override abstract method load() in BaseMod public class mod_newCrates extends BaseMod.
The code for the .java file in src called mod_newCrates:

package net.minecraft.src;

public class mod_newCrates extends BaseMod
{
public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

public String Version()
{
return "1.0";
}

public mod_newCrates()
{
ModLoader.RegisterBlock(Crate);
Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
ModLoader.AddName(Crate, "Crate");
ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
"##", "##", Character.valueOf('#'), Block.wood
});
}
}

The code for the BlockCrate .java file:
package net.minecraft.src;

import java.util.Random;

public class BlockCrate extends Block
{

public BlockCrate(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random)
{
return mod_newCrates.Crate.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}

I was hoping maybe you could help me with this error. These tutorials look awesome, and I can't wait to get some to work. I haven't found any up to date 1.0 tutorials that are decent besides these; if I get this to work. The other tutorials I've found aren't as up-to-date. I hope you can help, and keep making tutorials. If you do, I'll show a few of my friends this so we can make some cool mods. I really do hope you keep creating them, I just think people haven't seen this post. Try putting this on Minecraft forums or planet Minecraft? Also, I am wondering if you could make a mob tutorial, or maybe something for the nether? Maybe even another dimension? I have trouble with Java, because I am pretty new, so I can't really create my own mods. I hope you take one of these things into consideration!

-Thanks
Thanks for the reply, im setting up my MCP so i can try and help you check back in a few ill update with a fix


Edit** So i fixed the abstract error here is the fixed mod_newCrates

package net.minecraft.src;

public abstract class mod_newCrates extends BaseMod {
   
   public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

   public String Version() {
      return "1.0";
   }

   public mod_newCrates() {
      ModLoader.RegisterBlock(Crate);
      Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
      ModLoader.AddName(Crate, "Crate");
      ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
         "##", "##", Character.valueOf('#'), Block.wood
      });
   }
}


Hey thanks, I get no code errors, but I get a black screen when opening Minecraft? Actually, it is an error message, then crashes almost right away. Maybe there is another problem with the code? Maybe the crate.png isn't supposed to be in the main Minecraft jar?
-Thanks
#13. Posted:
Odin
  • TTG Addict
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Nicomang wrote

Hey thanks, I get no code errors, but I get a black screen when opening Minecraft? Actually, it is an error message, then crashes almost right away. Maybe there is another problem with the code? Maybe the crate.png isn't supposed to be in the main Minecraft jar?
-Thanks

Well i found the error it was the extends BaseMod at the beginning of mod_newCrates

finished code
package net.minecraft.src;

public abstract class mod_newCrates {
   
   public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

   public String Version() {
      return "1.0";
   }

   public mod_newCrates() {
      ModLoader.RegisterBlock(Crate);
      Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
      ModLoader.AddName(Crate, "Crate");
      ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
         "##", "##", Character.valueOf('#'), Block.wood
      });
   }
}

could thank the original post would help alot and vote non the poll
#14. Posted:
Nicomang
  • New Member
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
sackorice wrote
Well i found the error it was the extends BaseMod at the beginning of mod_newCrates

finished code
package net.minecraft.src;

public abstract class mod_newCrates {
   
   public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

   public String Version() {
      return "1.0";
   }

   public mod_newCrates() {
      ModLoader.RegisterBlock(Crate);
      Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
      ModLoader.AddName(Crate, "Crate");
      ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
         "##", "##", Character.valueOf('#'), Block.wood
      });
   }
}

could thank the original post would help alot and vote non the poll


Ok it works now..... except I can't craft the block. Also I got toomanyitems, and I couldn't find the block in that, nor in creative? Thanks for helpin me through this. I Thanked this topic, and Have the highest rating in the poll. If you can fix some of the errors in your codes, this'll be beast! I'm still having trouble though with the crate. the code you gave me doesn't give a black screen, nor code errors, although the block isn't in the game. Thanks again for helpin me through this code! Also, I changed in the code the crafting recipe to XXX, XXX, XXX to see if that was the problem with the crafting recipe, since XX, XX was took from work-bench.
-Thanks
#15. Posted:
Odin
  • Christmas!
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Nicomang wrote
sackorice wrote
Well i found the error it was the extends BaseMod at the beginning of mod_newCrates

finished code
package net.minecraft.src;

public abstract class mod_newCrates {
   
   public static Block Crate = new BlockCrate(7254, 0).setHardness(1.0F).setResistance(9.0F).setLightValue(0.0F).setBlockName("Crate");

   public String Version() {
      return "1.0";
   }

   public mod_newCrates() {
      ModLoader.RegisterBlock(Crate);
      Crate.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crate.png");
      ModLoader.AddName(Crate, "Crate");
      ModLoader.AddRecipe(new ItemStack(Crate, 1), new Object[] {
         "##", "##", Character.valueOf('#'), Block.wood
      });
   }
}

could thank the original post would help alot and vote non the poll


Ok it works now..... except I can't craft the block. Also I got toomanyitems, and I couldn't find the block in that, nor in creative? Thanks for helpin me through this. I Thanked this topic, and Have the highest rating in the poll. If you can fix some of the errors in your codes, this'll be beast! I'm still having trouble though with the crate. the code you gave me doesn't give a black screen, nor code errors, although the block isn't in the game. Thanks again for helpin me through this code! Also, I changed in the code the crafting recipe to XXX, XXX, XXX to see if that was the problem with the crafting recipe, since XX, XX was took from work-bench.
-Thanks

you made the Block ID way to high XD what a simple fix try using 210

EDIT* give me some time because its still not showing up
#16. Posted:
Nicomang
  • New Member
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Hey, I understand if you can't figure it out, although do you know of any other of your tutorials that for-sure work?
-Thanks
#17. Posted:
Odin
  • TTG Addict
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Nicomang wrote Hey, I understand if you can't figure it out, although do you know of any other of your tutorials that for-sure work?
-Thanks

If i find one ill tell you
#18. Posted:
Nicomang
  • New Member
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Status: Offline
Joined: Dec 02, 201112Year Member
Posts: 5
Reputation Power: 0
Just email me at krazychimps @ gmail.com.
#19. Posted:
Odin
  • TTG Addict
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
Status: Offline
Joined: Dec 23, 201013Year Member
Posts: 2,446
Reputation Power: 80
all the mods have been updated to 1.0.0
#20. Posted:
Skierz
  • New Member
Status: Offline
Joined: Dec 18, 201112Year Member
Posts: 1
Reputation Power: 0
Status: Offline
Joined: Dec 18, 201112Year Member
Posts: 1
Reputation Power: 0
i get the error 'The constructor ItemArmor(int, int, int, int) is undefined' on each line29-32 when copying the armour mod
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.