[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
+15
yazan123
N1xx1
bardock10
urkkle
Zblade93
JoeySalsa
tanzkua
cloudstrife29461
guitarmen
Hollywood_Undead
zdmshadow
PlayerTim6
Zeperus
dittos
Slymask3
19 posters
Page 3 of 5
Page 3 of 5 • 1, 2, 3, 4, 5
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Thank you so much for the help <3
I will be putting link to this tutorial if I publish this mod
I will be putting link to this tutorial if I publish this mod
tanzkua- Posts : 5
Join date : 2011-08-21
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Alright, Post a link to your mod here, so I could add it to the "Mods Created by People that used my tutorials"
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Okay here's the link to the minecraftforum topic:
http://www.minecraftforum.net/topic/570054-173-lightblockmod-wip/
http://www.minecraftforum.net/topic/570054-173-lightblockmod-wip/
tanzkua- Posts : 5
Join date : 2011-08-21
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Awesome, I will add it !tanzkua wrote:Okay here's the link to the minecraftforum topic:
http://www.minecraftforum.net/topic/570054-173-lightblockmod-wip/
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
I need help, It works all great until I add the code for the texture for it. It renders out fine, but when I add the texture to the game shit happens. Can someone help me?
Edit:
Even if i take the Texture Code out, minecraft still crashes. The Client Version works fine when I test it out. But when I obfuscate it, it crashes the whole game. Can someone help?
Edit:
Even if i take the Texture Code out, minecraft still crashes. The Client Version works fine when I test it out. But when I obfuscate it, it crashes the whole game. Can someone help?
JoeySalsa- Minecraft : JoeySalsa
YouTube : GenericalyAwesome
Posts : 2
Join date : 2011-08-24
Age : 27
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
@JoeySalsa
Please post your .java files here, so I could try to find the problem.
Post them in code format inside a spoiler:
It will look like this:
Please post your .java files here, so I could try to find the problem.
Post them in code format inside a spoiler:
- Code:
[spoiler][code]BLAH BLAH BLAH[/code][/spoiler]
It will look like this:
- Spoiler:
- Code:
BLAH BLAH BLAH
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
- Spoiler:
- Code:
/*This is mod_hermit.java*/
package net.minecraft.src;
public class mod_Hermit extends BaseMod
{
public static final Block hermit = new BlockHermit(97, 0).setBlockName("hermit").setHardness(0F).setResistance(2000F).setLightValue(0.75F);
public String Version()
{
return "1.7.3";
}
public mod_Hermit ()
{
ModLoader.RegisterBlock(hermit);
ModLoader.AddName(hermit, "Hermit Block");
ModLoader.AddRecipe(new ItemStack(mod_Hermit.hermit, 5), new Object[] {"##", Character.valueOf('#'), Block.dirt});
ModLoader.AddSmelting(mod_Hermit.hermit.blockID, new ItemStack(mod_Hermit.hermitBar, 1));
ModLoader.AddName(hermitBar, "Hermit Bar");
ModLoader.AddRecipe(new ItemStack(mod_Hermit.hermitFood, 5), new Object[] {"#", Character.valueOf('#'), mod_Hermit.hermitBar});
ModLoader.AddName(hermitFood, "Hermit Food");
}
public static final Item hermitBar = new Item(3200).setItemName("hermitBar");
public static Item hermitFood = (new ItemhermitFood(3201, 10, false).setItemName("hermitFood"));
}
=====
/*This is the BlockHermit.java*/
package net.minecraft.src;
import java.util.Random;
public class BlockHermit extends Block
{
protected BlockHermit(int i, int j)
{
super(i, j, Material.iron);
}
public int quantityDropped(Random random)
{
return 1;
}
}
====
/*This is ItemHermitFood.java*/
package net.minecraft.src;
public class ItemhermitFood extends ItemFood
{
public ItemhermitFood(int i, int j, boolean flag)
{
super(i, j, flag);
maxStackSize = 64;
}
}
=====
/*This is ItemhermitBar.java*/
package net.minecraft.src;
public class ItemhermitBar extends ItemFood
{
public ItemhermitBar(int i, int j, boolean flag)
{
super(i, j, flag);
maxStackSize = 64;
}
}
All the codes
EDIT:
I got it to work now, I didnt have a "clean" enough copy of minecraft for this to work. What happened was some other folders in .minecraft where effecting it.
JoeySalsa- Minecraft : JoeySalsa
YouTube : GenericalyAwesome
Posts : 2
Join date : 2011-08-24
Age : 27
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Hi, I'm having an issue with the tutorial. I do everything as you have(the block and item) and it continues to give me an error saying that the "symbol ModLoader" cannot be found, and I'm wondering why. If you need me to provide you with the code I can. Also, I installed modloader as you said, and deleted META-INF so I'm not sure what's going on. Thanks in advance though.
Zblade93- Posts : 5
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
@Zblade93
Do not delete META-INF when you put ModLoader in the minecraft.jar.
Try to get a clean minecraft.jar, and just add the ModLoader files.
Do not delete META-INF when you put ModLoader in the minecraft.jar.
Try to get a clean minecraft.jar, and just add the ModLoader files.
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
AH I was wondering if that was the issue! Thanks a lot. I'll try that later and let you know if I'm still getting errors.
edit:
I'm still getting 9 errors saying that it can't find the "symbol ModLoader" I'll post my code to show.
Also, here's my actual item class
edit:
I'm still getting 9 errors saying that it can't find the "symbol ModLoader" I'll post my code to show.
- Spoiler:
- Code:
package net.minecraft.src;
public class mod_Purplecraft extends BaseMod
{
public static final Block purplestone = new Purplestone(100, 0).setBlockName("Purplestone").setHardness(1.5F).setResistance(10F);
public static final Item purplegem = new Item(8300).setItemName("Purplegem");
public String Version()
{
return "1.0";
}
public mod_Purplecraft ()
{
purplestone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Purplecraft/Purplestone.png");
purplegem.iconIndex = ModLoader.addOverride("/gui/items.png", "/Purplecraft/Purplegem.png");
ModLoader.RegisterBlock(Purplestone);
ModLoader.AddName(purplestone, "Purplestone");
ModLoader.AddName(purplegem, "Purple Gem");
}
}
Also, here's my actual item class
- Spoiler:
- Code:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
import java.util.Random;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class BlockPurplestone extends Block
{
protected BlockPurplestone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_Purplecraft.Purplegem.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Zblade93- Posts : 5
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Hmm.
Backup those .java files you made.
Run cleanup.bat, then decompile.bat.
Cause thats the only thing I could think of, it should find ModLoader. :O
Backup those .java files you made.
Run cleanup.bat, then decompile.bat.
Cause thats the only thing I could think of, it should find ModLoader. :O
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Well when I run cleanup, it says that permission is denied, any idea about that?
EDIT: It ran cleanup.bat fine, which is odd since I've been trying to do that for a week, now it says that there's an issue with my "purplestone", not sure why. Says it can't find symbol "purplestone". :\
EDIT(again): I fixed it! Apparently I had some things capitalized that didn't need to be, so that was the issue.
EDIT: It ran cleanup.bat fine, which is odd since I've been trying to do that for a week, now it says that there's an issue with my "purplestone", not sure why. Says it can't find symbol "purplestone". :\
EDIT(again): I fixed it! Apparently I had some things capitalized that didn't need to be, so that was the issue.
Zblade93- Posts : 5
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
How do you make tools? Is it roughly the same as Armor/Items? Or is it a totally different ball game?
urkkle- Posts : 1
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
EDIT: figured out my problem, thanks for everything, the tutorial, the help, everything!
Last edited by Zblade93 on Thu Aug 25, 2011 8:02 pm; edited 1 time in total
Zblade93- Posts : 5
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
@urkkle It's kinda different. I will be making the tutorial soon.
@Zblade93 You have to put your .class files and the textures in your minecraft.jar. Or if you put "/blahblah/texture1.png" as where your textures are, you have to put them inside the folder "blahblah" in the minecraft.jar. If you want me to explain it more, I will. I just don't have enough time atm.
@Zblade93 You have to put your .class files and the textures in your minecraft.jar. Or if you put "/blahblah/texture1.png" as where your textures are, you have to put them inside the folder "blahblah" in the minecraft.jar. If you want me to explain it more, I will. I just don't have enough time atm.
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Slymask3 wrote:@urkkle It's kinda different. I will be making the tutorial soon.
@Zblade93 You have to put your .class files and the textures in your minecraft.jar. Or if you put "/blahblah/texture1.png" as where your textures are, you have to put them inside the folder "blahblah" in the minecraft.jar. If you want me to explain it more, I will. I just don't have enough time atm.
Thanks, I feel so silly. Right after I asked you a lightbulb went off in my head, I was like put the folder in the jar... duh lol. Thanks though, a lot! And I'm not sure if this will be covered in later tutorials but how do I get my new block to spawn randomly throughout the world? If you can help that'd be great, but if not because of time I definitely understand.
Zblade93- Posts : 5
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
- Code:
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 2
== ERRORS FOUND ==
javac: invalid flag: src/minecraft\net\minecraft\src\BlockRubyOre.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 2.22 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
This is my code
- Code:
package net.minecraft.src;
public class mod_Ruby extends BaseMod
{
public static final block rubyore = new BlockRubyOre(ID 97) .setBlockName("rubyore") .setHardness(3F) .setResistance(1F);
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddShapelessRecipe(new ItemStack(Block.oreiron, 1), new Object[] {
new ItemStack(Item.redstone,1, 340,)};
}
}
and
- Code:
package net.minecraft.src;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, j, Material.rock);
}
}
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
i try ed to make a mod and it did not work
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
I cannot help you if you just say "it did not work".cloudstrife29461 wrote:i try ed to make a mod and it did not work
Please post your files here, and your error, so I could help.
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
I have a feeling that you didn't try.cloudstrife29461 wrote:no it is ok
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
bardock10 wrote:
- Code:
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 2
== ERRORS FOUND ==
javac: invalid flag: src/minecraft\net\minecraft\src\BlockRubyOre.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 2.22 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
This is my code
- Code:
package net.minecraft.src;
public class mod_Ruby extends BaseMod
{
public static final block rubyore = new BlockRubyOre(ID 97) .setBlockName("rubyore") .setHardness(3F) .setResistance(1F);
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddShapelessRecipe(new ItemStack(Block.oreiron, 1), new Object[] {
new ItemStack(Item.redstone,1, 340,)};
}
}
and
- Code:
package net.minecraft.src;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, j, Material.rock);
}
}
Uhm, did you make a mod running and working before this?
N1xx1- Posts : 11
Join date : 2011-08-26
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
N1xx1 wrote:bardock10 wrote:
- Code:
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 2
== ERRORS FOUND ==
javac: invalid flag: src/minecraft\net\minecraft\src\BlockRubyOre.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 2.22 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
This is my code
- Code:
package net.minecraft.src;
public class mod_Ruby extends BaseMod
{
public static final block rubyore = new BlockRubyOre(ID 97) .setBlockName("rubyore") .setHardness(3F) .setResistance(1F);
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddShapelessRecipe(new ItemStack(Block.oreiron, 1), new Object[] {
new ItemStack(Item.redstone,1, 340,)};
}
}
and
- Code:
package net.minecraft.src;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, j, Material.rock);
}
}
Uhm, did you make a mod running and working before this?
Yea but I only edited the hardness of obsidian
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
bardock10 wrote:N1xx1 wrote:bardock10 wrote:
- Code:
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai
led.
Return code : 2
== ERRORS FOUND ==
javac: invalid flag: src/minecraft\net\minecraft\src\BlockRubyOre.Java
Usage: javac <options> <source files>
use -help for a list of possible options
==================
> Done in 2.22 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
This is my code
- Code:
package net.minecraft.src;
public class mod_Ruby extends BaseMod
{
public static final block rubyore = new BlockRubyOre(ID 97) .setBlockName("rubyore") .setHardness(3F) .setResistance(1F);
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddShapelessRecipe(new ItemStack(Block.oreiron, 1), new Object[] {
new ItemStack(Item.redstone,1, 340,)};
}
}
and
- Code:
package net.minecraft.src;
public class BlockRubyOre extends Block
{
protected BlockRubyOre(int i, int j)
{
super(i, j, Material.rock);
}
}
Uhm, did you make a mod running and working before this?
Yea but I only edited the hardness of obsidian
Ok ok. Try to rename the file from BlockRubyOre.Java to BlockRubyOre.java
Actually the problem is in the java compiler.
N1xx1- Posts : 11
Join date : 2011-08-26
Page 3 of 5 • 1, 2, 3, 4, 5
Page 3 of 5
Permissions in this forum:
You cannot reply to topics in this forum
|
|