Not quite sure what happened to my other thread. It sort of just disapeared! That's annoying.
Anyways this is version 2. mrsal511's basic to advanced etc etc was a test run. This is the real deal.
**Note: These videos were filmed and rendered in HD. If you can't read the code I write click on the video and change the resolution to 720p.**
For sure the next tutorials I will make on the Weekend are Tools and Armor. Those will hopefully be up by March 1st. Or at least one of them will be up. I also hope to make a tutorial on spawning whole buildings and biomes in the world fairly soon. As well a few more MOB tutorials might be coming up.
The next tutorials I will make during the week. Fire, Flowers, Torchs.
This amount of tutorials should last until the first week of March. Thanks for Watching!
Tutorials we have covered already: Basic tutorials:
1. Set-up of MCO
2. Creating a Basic Mod File
3. Creating a Block
4. Creating a Smelting Recipe
5. Naturally Generating Ore/Mineral/Blocks
6. Creating a Crafting Recipe
7. Creating an Item
8. Getting Different Textures on Different Sides of a Block.
9. Make Your Mod Ready For Install
Intermediate tutorials:
1. Food
2. Potion Effect with Food
Advanced tutorials:
1. Creating and Customizing Mobs
Basic Tutorials:
Set-up of MCP:
**Note: Install Risugami's ModLoader on your minecraft.jar before decompiling for future use with my tutorials. Without ModLoader you will not be able to follow my tutorials. I forgot to mention this in the Set-Up Tutorial.**
Explanation:
1. Install ModLoader on your mincraft.jar.
2. Drag "bin" and "resources" into the jars folder after you have extracted MCP
3. Decompile the minecraft.jar using "decompile.bat" found in the home directory of MCP
Explanation:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it mod_####.java where #### = name of your mod.
3. Write in the code shown in the video and save your file.
Creating a Basic Block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it Block####.java where #### = name of your Block.
3.Write in the code shown in the video to both mod_#### and block_#### and save your file
4. In the next few basic tutorials i will show you how to obtain your block using smelting and crafting recipes as well as naturally generating your ore.
Creating a Smelting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now when you smelt planks as shown in the video you get TutorialBlock, but you can change the planks and/or TutorialBlock to anything you please.
Naturally Generating Ores/Minerals/Blocks:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now change the values. "l<##" that means how many veins of that ore will spawn in any chunk where ## = The amount.
5. Now your block should randomly generate throughout your world.
How to create a Crafting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have craftable recipe
How create an Item:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have an item that when you smelt #### block it turns into your item. Where #### = Your choice of block.
How to get different textures on each side of a block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
2.5 Also open Block#### where #### = the name of your block
3. Write in the code shown in the video to mod_#### and Block#### then save the file.
4. Now you should have a block that could contain at the max 6 different custom side textures.
**Note: 0 = Bottom, 1 = Top, 2,3,4,5 = Sides**
How to Make Your Mod Ready For Install:
1. Open up your MCP mod Directory
2. Run Recompile.bat
2.5 Run Reobfuscate.bat
3. Go into your Reobf folder.
4. Thoose are the files you must give to anyone to install your mod.
**Note: Make sure the person willing to install your mod also has Risugami's modloader installed or your mods will not work!**
Intermediate Tutorials:
Food:
How To Create a Food Item:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Potion Effects on Food:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Advanced Tutorials:
How to Create Friendly and Hostile Mobs:
**Note: Watch these tutorials in order**
How to use Techne to Design Your Mob:
1. Open up Techne
2. Open up Pixlr.com or your favorite image editor
3. Edit your mob and then export it as a texture map to edit the texture
4. Once your done editing the texture export your mob as JAVA.
How to Create a Hostile Mob Using Your Techne Design:
1. Open up Eclipse
2. Create 3 new files: Model####, Entity####, Render#### where #### is the name of your mob
2.5 Open mod_#### where #### is the name of your mod. Also open ####.java where #### = the name you named your JAVA file when you exported it out of TECHNE
3. Edit all 5 files like done in the video and save them.
4. Now you should have a hostile mob that acts like a zombie
How to Create a Friendly Mob Using Your Techne Design and Some of the Hostile Mob Code:
1. Open up Eclipse
2. Open mod_#### where #### is the name of your mod. Also open Model####, Entity####, Render#### where #### is the name of your mob.
3. Edit all 4 files like done in the video and save them.
4. Now you should have a friendly Mob that acts like a cross between a pig and cow.
In Depth: How to customize what your Mob drops when it is killed:
1. Open up Eclipse
2. Open Entity#### where #### is the name of your Mob
3. Edit the file as shown in the video and save it.
4. Now you should have a friendly Mob that you can customize what it drops when it is killed.
More Mob Tutorials Coming Soon, don't fret to leave a comment on what Mob tutorials you would like to see!
I'll try to reply to all of you ASAP if you have questions. I'm more likely to realize I have a reply if you comment on my videos because I'm on Youtube quite a bit, but if you can't do that feel free to reply to this post.
Plans:
I'm open to suggestions for more beginner tutorials.
The Intermediate tutorials I have planned are: Armor, Tools, and Redstone Input Function on Blocks.
The Advanced tutorials I have planned are custom biomes, custom trees, and more Mob Tutorials.
If you have any suggestions on tutorials or features you would like to add to your mod feel free to message me on Youtube or reply to this post. I'll use my limited knowledge of java to try and help you.
java.lang.Exception: net.minecraft.src.BlockSwaginite@e3f686 is missing name tag!
at net.minecraft.src.ModLoader.AddName(ModLoader.java:291)
at net.minecraft.src.mod_Swaginite.<init>(mod_Swaginite.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
at net.minecraft.src.ModLoader.init(ModLoader.java:708)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1977eb82 ----------
My error
package net.minecraft.src;
public class mod_Swaginite extends BaseMod
{
public static final Block BlockSwaginite;
static
{
BlockSwaginite = (new BlockSwaginite(123, ModLoader.addOverride("/terrain.png", "/Swaginite/Swag.png"))).setHardness(3f).setResistance(5f).setStepSound(Block.soundStoneFootstep);
}
public void load()
{
}
public mod_Swaginite()
{
ModLoader.RegisterBlock(BlockSwaginite);
ModLoader.AddName(BlockSwaginite, "Swaginite Ore");
ModLoader.AddSmelting(Block.planks.blockID, new ItemStack(BlockSwaginite, 1));
};
public String getVersion()
{
return "v0.01";
}
}
it still gives me the error saying missing name tag....
In that case I think it must be your BlockSwaginiteBlock.java file. You know the file we create specifically for the block. Could you post the code for that file?
In that case I think it must be your BlockSwaginiteBlock.java file. You know the file we create specifically for the block. Could you post the code for that file?
package net.minecraft.src;
import java.util.Random;
public class BlockSwaginite extends BlockStone
{
public BlockSwaginite(int i, int j)
{
super(i, j );
}
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random, int j)
{
return Item.coal.shiftedIndex;
}
}
it still gives me the error saying missing name tag....
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
it still gives me the error saying missing name tag....
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
Do you understand?
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
Do you understand?
OMG THANK YOU IT REALLY HELPED I RECOMMEND THIS GUY TO ALL U CODERS/BEGINNERS DIAMONDS FOR U
oh yeah forgot to put the other .png in my minecraft.jar :|its done that missing name thing and i added the .setItemName thing but idk what im doing wrong once again
Okay ive fixed it and that and it works but are u able to do a tut on how to make armour and tools with the block u just created/ingot i really want to know ty for helping me make my first ever mod/block
Okay ive fixed it and that and it works but are u able to do a tut on how to make armour and tools with the block u just created/ingot i really want to know ty for helping me make my first ever mod/block
Ya it's on the to-do list. It might be a little while though. I'm busy with personal stuff tommorow, and then I get back to school. They WILL be uploaded by next weekend. Probably before Wednesday.
Not quite sure what happened to my other thread. It sort of just disapeared! That's annoying.
Anyways this is version 2. mrsal511's basic to advanced etc etc was a test run. This is the real deal.
**Note: These videos were filmed and rendered in HD. If you can't read the code I write click on the video and change the resolution to 720p.**
For sure the next tutorials I will make on the Weekend are Tools and Armor. Those will hopefully be up by March 1st. Or at least one of them will be up. I also hope to make a tutorial on spawning whole buildings and biomes in the world fairly soon. As well a few more MOB tutorials might be coming up.
The next tutorials I will make during the week. Fire, Flowers, Torchs.
This amount of tutorials should last until the first week of March. Thanks for Watching!
Tutorials we have covered already:
Basic tutorials:
1. Set-up of MCO
2. Creating a Basic Mod File
3. Creating a Block
4. Creating a Smelting Recipe
5. Naturally Generating Ore/Mineral/Blocks
6. Creating a Crafting Recipe
7. Creating an Item
8. Getting Different Textures on Different Sides of a Block.
9. Make Your Mod Ready For Install
Intermediate tutorials:
1. Food
2. Potion Effect with Food
Advanced tutorials:
1. Creating and Customizing Mobs
Basic Tutorials:
Set-up of MCP:
**Note: Install Risugami's ModLoader on your minecraft.jar before decompiling for future use with my tutorials. Without ModLoader you will not be able to follow my tutorials. I forgot to mention this in the Set-Up Tutorial.**
Explanation:
1. Install ModLoader on your mincraft.jar.
2. Drag "bin" and "resources" into the jars folder after you have extracted MCP
3. Decompile the minecraft.jar using "decompile.bat" found in the home directory of MCP
Java:
http://www.oracle.co...oads/index.html
MCP:
http://mcp.ocean-lab...hp/MCP_Releases
Eclipse:
http://www.eclipse.org/downloads/
Creating a Basic Mod File:
Explanation:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it mod_####.java where #### = name of your mod.
3. Write in the code shown in the video and save your file.
Creating a Basic Block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it Block####.java where #### = name of your Block.
3.Write in the code shown in the video to both mod_#### and block_#### and save your file
4. In the next few basic tutorials i will show you how to obtain your block using smelting and crafting recipes as well as naturally generating your ore.
Creating a Smelting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now when you smelt planks as shown in the video you get TutorialBlock, but you can change the planks and/or TutorialBlock to anything you please.
Naturally Generating Ores/Minerals/Blocks:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now change the values. "l<##" that means how many veins of that ore will spawn in any chunk where ## = The amount.
5. Now your block should randomly generate throughout your world.
How to create a Crafting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have craftable recipe
How create an Item:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have an item that when you smelt #### block it turns into your item. Where #### = Your choice of block.
How to get different textures on each side of a block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
2.5 Also open Block#### where #### = the name of your block
3. Write in the code shown in the video to mod_#### and Block#### then save the file.
4. Now you should have a block that could contain at the max 6 different custom side textures.
**Note: 0 = Bottom, 1 = Top, 2,3,4,5 = Sides**
How to Make Your Mod Ready For Install:
1. Open up your MCP mod Directory
2. Run Recompile.bat
2.5 Run Reobfuscate.bat
3. Go into your Reobf folder.
4. Thoose are the files you must give to anyone to install your mod.
**Note: Make sure the person willing to install your mod also has Risugami's modloader installed or your mods will not work!**
Intermediate Tutorials:
Food:
How To Create a Food Item:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Potion Effects on Food:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Advanced Tutorials:
How to Create Friendly and Hostile Mobs:
**Note: Watch these tutorials in order**
How to use Techne to Design Your Mob:
1. Open up Techne
2. Open up Pixlr.com or your favorite image editor
3. Edit your mob and then export it as a texture map to edit the texture
4. Once your done editing the texture export your mob as JAVA.
Techne:
http://www.minecraft...oking-for-help/
How to Create a Hostile Mob Using Your Techne Design:
1. Open up Eclipse
2. Create 3 new files: Model####, Entity####, Render#### where #### is the name of your mob
2.5 Open mod_#### where #### is the name of your mod. Also open ####.java where #### = the name you named your JAVA file when you exported it out of TECHNE
3. Edit all 5 files like done in the video and save them.
4. Now you should have a hostile mob that acts like a zombie
How to Create a Friendly Mob Using Your Techne Design and Some of the Hostile Mob Code:
1. Open up Eclipse
2. Open mod_#### where #### is the name of your mod. Also open Model####, Entity####, Render#### where #### is the name of your mob.
3. Edit all 4 files like done in the video and save them.
4. Now you should have a friendly Mob that acts like a cross between a pig and cow.
In Depth: How to customize what your Mob drops when it is killed:
1. Open up Eclipse
2. Open Entity#### where #### is the name of your Mob
3. Edit the file as shown in the video and save it.
4. Now you should have a friendly Mob that you can customize what it drops when it is killed.
More Mob Tutorials Coming Soon, don't fret to leave a comment on what Mob tutorials you would like to see!
You can also follow me on twitter! @mrsal511
I'll try to reply to all of you ASAP if you have questions. I'm more likely to realize I have a reply if you comment on my videos because I'm on Youtube quite a bit, but if you can't do that feel free to reply to this post.
Plans:
I'm open to suggestions for more beginner tutorials.
The Intermediate tutorials I have planned are: Armor, Tools, and Redstone Input Function on Blocks.
The Advanced tutorials I have planned are custom biomes, custom trees, and more Mob Tutorials.
If you have any suggestions on tutorials or features you would like to add to your mod feel free to message me on Youtube or reply to this post. I'll use my limited knowledge of java to try and help you.
That guy that makes the wheels turn.. Y'know...
Thanks. I appreciate it.
That guy that makes the wheels turn.. Y'know...
My code
Okay seems to me after reading through your code several times that the semi colon after the "}" is not needed. Change it to:
See the difference? No semi colon after the end curly brace.
That guy that makes the wheels turn.. Y'know...
In that case I think it must be your BlockSwaginiteBlock.java file. You know the file we create specifically for the block. Could you post the code for that file?
That guy that makes the wheels turn.. Y'know...
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
Do you understand?
Aha. I found the error. In mod_swaginite under the static { } field. Where we write out all the attributes for our block. After the sound of the footstep ".setStepSound(Block.soundWoodFootstep)" Or whatever footstep sound you decideed to use. You forgot to add the ".setBlockName("SwaginiteBlock");" attribute. If you check the video it's the last part of that line. You set the name tag for the block.
Make sure you put the semi colon at the end of the .setBlockName thing.
Do you understand?
That guy that makes the wheels turn.. Y'know...
OMG THANK YOU IT REALLY HELPED I RECOMMEND THIS GUY TO ALL U CODERS/BEGINNERS DIAMONDS FOR U
Ahh Your very Welcome.
That guy that makes the wheels turn.. Y'know...
I don't even know Java and I've tried so many tutorials and this one has been the most successful yet
1. Are you sure your path directory is correct
2. Are you sure theres a slash at the beginning of your directory such as "/mods/IMAGE_HERE.png"
3. Are you sure you spelt the folder/file name right? Capitols matter.
4. Are you sure the image is in your jars>bin>minecraft.jar>mods as well as temp>bin>minecraft>mods It must be in both places.
Hopefully one of those suggestions will help
That guy that makes the wheels turn.. Y'know...
Code Please? Also show the error report. Thanks.
That guy that makes the wheels turn.. Y'know...
Ya it's on the to-do list. It might be a little while though. I'm busy with personal stuff tommorow, and then I get back to school. They WILL be uploaded by next weekend. Probably before Wednesday.
That will be next tutorial though.
That guy that makes the wheels turn.. Y'know...