[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 4 of 5
Page 4 of 5 • 1, 2, 3, 4, 5
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
N1xx1 wrote: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.
ok It worked but i get this error
- 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 : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Ruby.java:19: error: '}' expected
ModLoader.AddRecipe(new ItemStack(Block.mod_Ruby.rubyore, 5), new Object[] {"XYX
", "XCX", "XXX", Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y
'), Item.redstone, Character.valueOf('C'), Block.oreIron)};
^
src\minecraft\net\minecraft\src\mod_Ruby.java:19: error: ';' expected
ModLoader.AddRecipe(new ItemStack(Block.mod_Ruby.rubyore, 5), new Object[] {"XYX
", "XCX", "XXX", Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y
'), Item.redstone, Character.valueOf('C'), Block.oreIron)};
^
src\minecraft\net\minecraft\src\mod_Ruby.java:24: error: class, interface, or en
um expected
}
^
3 errors
==================
> Done in 7.78 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I did change my code a little
- 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.AddRecipe(new ItemStack(Block.mod_Ruby.rubyore, 5), new Object[] {"XYX", "XCX", "XXX", Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y'), Item.redstone, Character.valueOf('C'), Block.oreIron)};
}
}
I can't figure out whats wrong
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
You end the AddRecipe thing with ')};', you should end with '});'. First close the Object and then the function.
N1xx1- Posts : 11
Join date : 2011-08-26
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Thank you it worked
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
bardock10 wrote:Thank you it worked
- Code:
Mods loaded: 2
ModLoader Beta 1.7.3
net.minecraft.src.mod_Ruby 0.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT e596cba4 --------
Generated 28/08/11 11:38 AM
Minecraft: Minecraft Beta 1.7.3
OS: Windows Vista (x86) version 6.0
Java: 1.7.0, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel 965/963 Graphics Media Accelerator version 1.5.0 - Build 7.14.10.1437, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: /Jake/RubyOre.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1161)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:882)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:514)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /Jake/RubyOre.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:846)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1153)
... 4 more
--- END ERROR REPORT 78aba044 ----------
help please
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Did you add a Folder named Jake with the RubyOre.png in your minecraft.jar ?
Zeperus- Minecraft : Zeperus
YouTube : Zeperus05
Posts : 96
Join date : 2011-07-26
Age : 28
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Zeperus wrote:Did you add a Folder named Jake with the RubyOre.png in your minecraft.jar ?
ya I figured that out after I posted thanks
bardock10- Posts : 9
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 : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Ruby.java:7: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item helmatRuby = (new ItemArmor(401, 2.5, ModLoader.AddArmo
r("ruby"), 0).setItemName("helmatRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:8: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item chestRuby = (new ItemArmor(402, 2.5, ModLoader.AddArmor
("ruby"), 1).setItemName("chestRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:9: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item legRuby = (new ItemArmor(403, 2.5, ModLoader.AddArmor("
ruby"), 2).setItemName("legRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:10: error: constructor ItemArmor i
n class ItemArmor cannot be applied to given types;
public static final Item bootsRuby =(new ItemArmor(404, 2.5, ModLoader.AddArmor(
"ruby"), 3).setItemName("bootsRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
4 errors
==================
> Done in 10.33 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I've been able to fix the other 6 errors but I don't know what these mean
this is my code
- Code:
chestRuby = (new ItemArmor(402, 2.5, ModLoader.AddArmor("ruby"), 1).setItemName("chestRuby"));
public static final Item legRuby = (new ItemArmor(403, 2.5, ModLoader.AddArmor("ruby"), 2).setItemName("legRuby"));
public static final Item bootsRuby =(new ItemArmor(404, 2.5, ModLoader.AddArmor("ruby"), 3).setItemName("bootsRuby"));
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
rubygem.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/RubyGem.png");
helmatRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyhelm.png");
chestRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubychest.png");
legRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyleg.png");
bootsRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyboots.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddName(rubygem, "RubyGem");
ModLoader.AddName(helmatRuby, "RubyHelmet");
ModLoader.AddName(chestRuby, "RubyChestPlate");
ModLoader.AddName(legRuby, "RubyLegging");
ModLoader.AddName(bootsRuby, "RubyBoots");
ModLoader.AddRecipe(new ItemStack(mod_Ruby.rubyore, 5), new Object[] {"XYX", "XCX", "XXX", Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y'), Item.redstone, Character.valueOf('C'), Block.oreIron});
ModLoader.AddSmelting(mod_Ruby.rubyore.blockID, new ItemStack(mod_Ruby.rubygem, 1));
ModLoader.AddRecipe(new ItemStack(mod_Ruby.helmatRuby, 1), new Object[] {"XXX", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.chestRuby, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.legRuby, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.bootsRuby, 1), new Object[] {"X X", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
}
}
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Im sorry but i dont understand, first i finished everything for the block then how can i make its texture? do i have to make a file in the src folder?
yazan123- Posts : 1
Join date : 2011-09-17
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 : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Ruby.java:7: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item helmatRuby = (new ItemArmor(401, 2.5, ModLoader.AddArmo
r("ruby"), 0).setItemName("helmatRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:8: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item chestRuby = (new ItemArmor(402, 2.5, ModLoader.AddArmor
("ruby"), 1).setItemName("chestRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:9: error: constructor ItemArmor in
class ItemArmor cannot be applied to given types;
public static final Item legRuby = (new ItemArmor(403, 2.5, ModLoader.AddArmor("
ruby"), 2).setItemName("legRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
src\minecraft\net\minecraft\src\mod_Ruby.java:10: error: constructor ItemArmor i
n class ItemArmor cannot be applied to given types;
public static final Item bootsRuby =(new ItemArmor(404, 2.5, ModLoader.AddArmor(
"ruby"), 3).setItemName("bootsRuby"));
^
required: int,int,int,int
found: int,double,int,int
reason: actual argument double cannot be converted to int by method invocation c
onversion
4 errors
==================
> Done in 10.33 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I've been able to fix the other 6 errors but I don't know what these mean
this is my code
- Code:
chestRuby = (new ItemArmor(402, 2.5, ModLoader.AddArmor("ruby"), 1).setItemName("chestRuby"));
public static final Item legRuby = (new ItemArmor(403, 2.5, ModLoader.AddArmor("ruby"), 2).setItemName("legRuby"));
public static final Item bootsRuby =(new ItemArmor(404, 2.5, ModLoader.AddArmor("ruby"), 3).setItemName("bootsRuby"));
public String Version()
{
return "0.1";
}
public mod_Ruby ()
{
rubyore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Jake/RubyOre.png");
rubygem.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/RubyGem.png");
helmatRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyhelm.png");
chestRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubychest.png");
legRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyleg.png");
bootsRuby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Jake/Rubyboots.png");
ModLoader.RegisterBlock(rubyore);
ModLoader.AddName(rubyore, "RubyOre");
ModLoader.AddName(rubygem, "RubyGem");
ModLoader.AddName(helmatRuby, "RubyHelmet");
ModLoader.AddName(chestRuby, "RubyChestPlate");
ModLoader.AddName(legRuby, "RubyLegging");
ModLoader.AddName(bootsRuby, "RubyBoots");
ModLoader.AddRecipe(new ItemStack(mod_Ruby.rubyore, 5), new Object[] {"XYX", "XCX", "XXX", Character.valueOf('X'), Block.cobblestone, Character.valueOf('Y'), Item.redstone, Character.valueOf('C'), Block.oreIron});
ModLoader.AddSmelting(mod_Ruby.rubyore.blockID, new ItemStack(mod_Ruby.rubygem, 1));
ModLoader.AddRecipe(new ItemStack(mod_Ruby.helmatRuby, 1), new Object[] {"XXX", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.chestRuby, 1), new Object[] {"X X", "XXX", "XXX", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.legRuby, 1), new Object[] {"XXX", "X X", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
ModLoader.AddRecipe(new ItemStack(mod_Ruby.bootsRuby, 1), new Object[] {"X X", "X X", Character.valueOf('X'), mod_Ruby.rubygem});
}
}
Idk... In every armour part change 2.5 to 3.
Example:
public static final Item legRuby = (new ItemArmor(403, 2.5, ModLoader.AddArmor("ruby"), 2).setItemName("legRuby"));
to
public static final Item legRuby = (new ItemArmor(403, 3, ModLoader.AddArmor("ruby"), 2).setItemName("legRuby"));
Bye
N1xx1- Posts : 11
Join date : 2011-08-26
wow
WOW
thank you so much..best tutorial out there...and the only one that works for me (1.8.1)
Can you please make tools next?
I want my Sapphire tools
but i don't know how
Keep up the good work
thank you so much..best tutorial out there...and the only one that works for me (1.8.1)
Can you please make tools next?
I want my Sapphire tools
but i don't know how
Keep up the good work
ltolt2- Posts : 1
Join date : 2011-09-21
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
ltolt2 wrote:WOW
thank you so much..best tutorial out there...and the only one that works for me (1.8.1)
Can you please make tools next?
I want my Sapphire tools
but i don't know how
Keep up the good work
Pretty much the same as every thing else But you have to this
- Code:
public static final Item ____ = new ItemPickaxe(405, EnumToolMaterial.____).setItemName("____");
- Code:
EnumToolMaterial.____
You can use stuff like wood stone ect or you can make you're own like so
Go to EnumToolMaterial
Find this line of code
- Code:
WOOD("WOOD", 0, 0, 59, 2.0F, 0),
STONE("STONE", 1, 1, 131, 4F, 1),
IRON("IRON", 2, 2, 250, 6F, 2),
EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
GOLD("GOLD", 4, 0, 32, 12F, 0);
Add it like this
- Code:
WOOD("WOOD", 0, 0, 59, 2.0F, 0),
STONE("STONE", 1, 1, 131, 4F, 1),
IRON("IRON", 2, 2, 250, 6F, 2),
EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
GOLD("GOLD", 4, 0, 32, 12F, 0),
_____("____", 1,2,3,4F,5);
"the first is the material number, similar to the item number, and should be unique to the others. The second is the harvest level, meaning what it can actually mine. The third number is the amount of uses it can do before it breaks, The fourth is efficiency on the material it's used for, and the fifth is the damage it does to entities"
Hope this helped
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
bardock10 wrote:
Pretty much the same as every thing else But you have to this
- Code:
public static final Item ____ = new ItemPickaxe(405, EnumToolMaterial.____).setItemName("____");
- Code:
EnumToolMaterial.____
You can use stuff like wood stone ect or you can make you're own like so
Go to EnumToolMaterial
Find this line of code
- Code:
WOOD("WOOD", 0, 0, 59, 2.0F, 0),
STONE("STONE", 1, 1, 131, 4F, 1),
IRON("IRON", 2, 2, 250, 6F, 2),
EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
GOLD("GOLD", 4, 0, 32, 12F, 0);
Add it like this
- Code:
WOOD("WOOD", 0, 0, 59, 2.0F, 0),
STONE("STONE", 1, 1, 131, 4F, 1),
IRON("IRON", 2, 2, 250, 6F, 2),
EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
GOLD("GOLD", 4, 0, 32, 12F, 0),
_____("____", 1,2,3,4F,5);
"the first is the material number, similar to the item number, and should be unique to the others. The second is the harvest level, meaning what it can actually mine. The third number is the amount of uses it can do before it breaks, The fourth is efficiency on the material it's used for, and the fifth is the damage it does to entities"
Hope this helped
I'm not sure, but I think that you can use, reather than editing the enumtools thing just:
public static final Item ____ = new ItemPickaxe(405, ("____", 1,2,3,4F,5)).setItemName("____");
Again, I'm not sure. I have to test it, but I think that will work.
N1xx1- Posts : 11
Join date : 2011-08-26
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
I'm not sure, but I think that you can use, reather than editing the enumtools thing just:
public static final Item ____ = new ItemPickaxe(405, ("____", 1,2,3,4F,5)).setItemName("____");
Again, I'm not sure. I have to test it, but I think that will work.
[/quote]
Make's sense
Thanks
bardock10- Posts : 9
Join date : 2011-08-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
i know u might so no to this,but i would love it if u help me make my mod.i can send a whole list of ideas i have,im young so i cant mod that easily,i already have a friend to test it to make sure its even.thanks and please help me out,im going to make a thread after u reply to this on the minecraft forums.i hope u help me out and thanks for making this i always wanted to make a mod.
I got this:
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:3: '{' expecte
d
public class mod_Obsidian+ extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: <identifie
r> expected
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: illegal st
art of type
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: <identifie
r> expected
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: ';' expect
ed
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:13: <identifie
r> expected
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Ob
sidian+/RedstoneObsidian.png");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:14: <identifie
r> expected
ModLoader.RegisterBlock(RedstoneObsidian);
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:14: <identifie
r> expected
ModLoader.RegisterBlock(RedstoneObsidian);
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: <identifie
r> expected
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: <identifie
r> expected
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: illegal st
art of type
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:17: class, int
erface, or enum expected
} →
^
12 errors
==================
> Done in 2.05 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
The codes were :
for mod_Infinity and BeyondCraft.java :
package net.minecraft.src;
public class mod_Infinity And BeyondCraft extends BaseMod
{
public static final Block RedstoneObsidian = new BlockRedstoneObsidian(150,0).setBlockName("RedstoneObsidian").setHardness(10F).setResistance(2000F);
public String Version()
{
return "0.1";
}
public mod_Obsidian+ ()
{
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
ModLoader.RegisterBlock(RedstoneObsidian);
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
}
}
And for BlockRedstoneObsidian.java :
package net.minecraft.src;
public class BlockRedstoneObsidian extends Block
{
peotected BlockRedstoneObsidian(int i, int j)
{
super(i, j,Material,rock);
}
}
Help please
I got this:
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:3: '{' expecte
d
public class mod_Obsidian+ extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: <identifie
r> expected
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: illegal st
art of type
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: <identifie
r> expected
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:11: ';' expect
ed
public mod_Obsidian+ ()
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:13: <identifie
r> expected
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Ob
sidian+/RedstoneObsidian.png");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:14: <identifie
r> expected
ModLoader.RegisterBlock(RedstoneObsidian);
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:14: <identifie
r> expected
ModLoader.RegisterBlock(RedstoneObsidian);
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: <identifie
r> expected
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: <identifie
r> expected
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:15: illegal st
art of type
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
^
src\minecraft\net\minecraft\src\mod_Infinity and BeyondCraft.java:17: class, int
erface, or enum expected
} →
^
12 errors
==================
> Done in 2.05 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
The codes were :
for mod_Infinity and BeyondCraft.java :
package net.minecraft.src;
public class mod_Infinity And BeyondCraft extends BaseMod
{
public static final Block RedstoneObsidian = new BlockRedstoneObsidian(150,0).setBlockName("RedstoneObsidian").setHardness(10F).setResistance(2000F);
public String Version()
{
return "0.1";
}
public mod_Obsidian+ ()
{
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
ModLoader.RegisterBlock(RedstoneObsidian);
ModLoader.AddName(RedstoneObsidian, "Red Coated Obsidian");
}
}
And for BlockRedstoneObsidian.java :
package net.minecraft.src;
public class BlockRedstoneObsidian extends Block
{
peotected BlockRedstoneObsidian(int i, int j)
{
super(i, j,Material,rock);
}
}
Help please
flaming910- Posts : 5
Join date : 2011-09-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Well, there are SO MANY errors...
1st one: Never use space in .java files and class definition!
So just put mod_Infinity.java.
2nd : mod_Obsidian+ () is wrong.
You MUST put mod_Infinity ()
3rd : There are some grammatical errors...
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is wrong.
RedstoneObsidian.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is right.
Other things seems to be Ok.
1st one: Never use space in .java files and class definition!
So just put mod_Infinity.java.
2nd : mod_Obsidian+ () is wrong.
You MUST put mod_Infinity ()
3rd : There are some grammatical errors...
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is wrong.
RedstoneObsidian.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is right.
Other things seems to be Ok.
N1xx1- Posts : 11
Join date : 2011-08-26
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
N1xx1 wrote:Well, there are SO MANY errors...
1st one: Never use space in .java files and class definition!
So just put mod_Infinity.java.
2nd : mod_Obsidian+ () is wrong.
You MUST put mod_Infinity ()
3rd : There are some grammatical errors...
RedstoneObsidian.blickIndexInTexture = Modloader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is wrong.
RedstoneObsidian.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/Obsidian+/RedstoneObsidian.png");
^ Is right.
Other things seems to be Ok.
Oh fail, thanks man didnt notice,if anyone would like make this mod pm me and i might accept,im going to make a modding account for skype and an email.i wont use my personal ones to contact my partners
ill fix it in a minute and ill see if it works
Edit:
Omg...100 errors,can someone re-write the code for me so i can have it working?and where do i put the textures?
the error log i got was
- Code:
i = chunkproviderclient.aU + (chunkproviderclient.aS - chunkproviderclient.aU) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:109: incompatible types
found : <nulltype>
required: float
i = chunkproviderclient.aU + (chunkproviderclient.aS - chunkproviderclient.aU) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:110: cannot find symbol
symbol : variable aV
location: class net.minecraft.src.ChunkProviderClient
j = chunkproviderclient.aV + (chunkproviderclient.aT - chunkproviderclient.aV) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:110: cannot find symbol
symbol : variable aT
location: class net.minecraft.src.ChunkProviderClient
j = chunkproviderclient.aV + (chunkproviderclient.aT - chunkproviderclient.aV) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:110: cannot find symbol
symbol : variable aV
location: class net.minecraft.src.ChunkProviderClient
j = chunkproviderclient.aV + (chunkproviderclient.aT - chunkproviderclient.aV) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:110: incompatible types
found : <nulltype>
required: float
j = chunkproviderclient.aV + (chunkproviderclient.aT - chunkproviderclient.aV) *
f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:112: cannot find symbol
symbol : variable bl
location: class net.minecraft.src.ChunkProviderClient
l = chunkproviderclient.bl + (chunkproviderclient.aM - chunkproviderclient.bl) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:112: cannot find symbol
symbol : variable aM
location: class net.minecraft.src.ChunkProviderClient
l = chunkproviderclient.bl + (chunkproviderclient.aM - chunkproviderclient.bl) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:112: cannot find symbol
symbol : variable bl
location: class net.minecraft.src.ChunkProviderClient
l = chunkproviderclient.bl + (chunkproviderclient.aM - chunkproviderclient.bl) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:112: incompatible types
found : <nulltype>
required: double
l = chunkproviderclient.bl + (chunkproviderclient.aM - chunkproviderclient.bl) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:113: cannot find symbol
symbol : variable bm
location: class net.minecraft.src.ChunkProviderClient
m = chunkproviderclient.bm + (chunkproviderclient.aN - chunkproviderclient.bm) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:113: cannot find symbol
symbol : variable aN
location: class net.minecraft.src.ChunkProviderClient
m = chunkproviderclient.bm + (chunkproviderclient.aN - chunkproviderclient.bm) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:113: cannot find symbol
symbol : variable bm
location: class net.minecraft.src.ChunkProviderClient
m = chunkproviderclient.bm + (chunkproviderclient.aN - chunkproviderclient.bm) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:113: incompatible types
found : <nulltype>
required: double
m = chunkproviderclient.bm + (chunkproviderclient.aN - chunkproviderclient.bm) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:114: cannot find symbol
symbol : variable bn
location: class net.minecraft.src.ChunkProviderClient
n = chunkproviderclient.bn + (chunkproviderclient.aO - chunkproviderclient.bn) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:114: cannot find symbol
symbol : variable aO
location: class net.minecraft.src.ChunkProviderClient
n = chunkproviderclient.bn + (chunkproviderclient.aO - chunkproviderclient.bn) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:114: cannot find symbol
symbol : variable bn
location: class net.minecraft.src.ChunkProviderClient
n = chunkproviderclient.bn + (chunkproviderclient.aO - chunkproviderclient.bn) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:114: incompatible types
found : <nulltype>
required: double
n = chunkproviderclient.bn + (chunkproviderclient.aO - chunkproviderclient.bn) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:119: cannot find symbol
symbol : variable aM
location: class net.minecraft.src.EntityCreeper
double d1 = entitycreeper.field_9359_x + (entitycreeper.aM - entitycreeper.field
_9359_x) * (double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:120: cannot find symbol
symbol : variable aN
location: class net.minecraft.src.EntityCreeper
double d2 = entitycreeper.field_9358_y + (entitycreeper.aN - entitycreeper.field
_9358_y) * (double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:120: operator + cannot be
applied to boolean,double
double d2 = entitycreeper.field_9358_y + (entitycreeper.aN - entitycreeper.field
_9358_y) * (double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:121: cannot find symbol
symbol : variable aO
location: class net.minecraft.src.EntityCreeper
double d3 = entitycreeper.texture + (entitycreeper.aO - entitycreeper.texture) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:121: incompatible types
found : java.lang.String
required: double
double d3 = entitycreeper.texture + (entitycreeper.aO - entitycreeper.texture) *
(double)f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:122: cannot find symbol
symbol : variable aU
location: class net.minecraft.src.EntityCreeper
float f2 = entitycreeper.aU + (entitycreeper.aS - entitycreeper.aU) * f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:122: cannot find symbol
symbol : variable aS
location: class net.minecraft.src.EntityCreeper
float f2 = entitycreeper.aU + (entitycreeper.aS - entitycreeper.aU) * f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:122: cannot find symbol
symbol : variable aU
location: class net.minecraft.src.EntityCreeper
float f2 = entitycreeper.aU + (entitycreeper.aS - entitycreeper.aU) * f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:122: incompatible types
found : <nulltype>
required: float
float f2 = entitycreeper.aU + (entitycreeper.aS - entitycreeper.aU) * f1;
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:123: cannot find symbol
symbol : method a(float)
location: class net.minecraft.src.EntityCreeper
float f3 = entitycreeper.a(f1);
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:134: cannot find symbol
symbol : method a(net.minecraft.src.EntityCreeper,double,double,double,float,fl
oat)
location: class net.minecraft.src.ItemSnowball
itemsnowball.a(entitycreeper, d1, d2, d3, f1, f2);
^
src\minecraft\net\minecraft\src\Packet4UpdateTime.java:135: cannot find symbol
symbol : method b(net.minecraft.src.EntityCreeper,double,double,double,float,fl
oat)
location: class net.minecraft.src.ItemSnowball
itemsnowball.b(entitycreeper, d1, d2, d3, f1, f2);
^
src\minecraft\net\minecraft\src\WorldRenderer.java:95: cannot find symbol
symbol : constructor ChunkCache(net.minecraft.src.World,int,int,int,int,int,int
)
location: class net.minecraft.src.ChunkCache
ChunkCache chunkcache = new ChunkCache(worldObj, i - l1, j - l1, k - l1, l + l1,
i1 + l1, j1 + l1);
^
src\minecraft\net\minecraft\src\WorldRenderer.java:96: cannot find symbol
symbol : constructor RenderBlocks(net.minecraft.src.ChunkCache)
location: class net.minecraft.src.RenderBlocks
RenderBlocks renderblocks = new RenderBlocks(chunkcache);
^
src\minecraft\net\minecraft\src\WorldRenderer.java:113: cannot find symbol
symbol : method getBlockId(int,int,int)
location: class net.minecraft.src.ChunkCache
int i3 = chunkcache.getBlockId(l2, j2, k2);
^
src\minecraft\net\minecraft\src\WorldRenderer.java:133: cannot find symbol
symbol : method getBlockTileEntity(int,int,int)
location: class net.minecraft.src.ChunkCache
TileEntity tileentity = chunkcache.getBlockTileEntity(l2, j2, k2);
^
src\minecraft\net\minecraft\src\GenLayer.java:33: cannot find symbol
symbol : constructor GenLayerRiverInit(long,net.minecraft.src.GenLayer)
location: class net.minecraft.src.GenLayerRiverInit
obj1 = new GenLayerRiverInit(100L, ((GenLayer) (obj1)));
^
src\minecraft\net\minecraft\src\BlockLadder.java:32: cannot find symbol
symbol : method printStackTrace(java.io.PrintWriter)
location: class net.minecraft.src.J_JsonConstants
j_jsonconstants.TRUE.printStackTrace(new PrintWriter(stringwriter));
^
src\minecraft\net\minecraft\src\BlockLadder.java:103: cannot find symbol
symbol : constructor RecipeSorter()
location: class net.minecraft.src.RecipeSorter
add(new RecipeSorter(), "North");
^
src\minecraft\net\minecraft\src\BlockLadder.java:104: cannot find symbol
symbol : constructor StringTranslate(int)
location: class net.minecraft.src.StringTranslate
add(new StringTranslate(80), "East");
^
src\minecraft\net\minecraft\src\BlockLadder.java:105: cannot find symbol
symbol : constructor StringTranslate(int)
location: class net.minecraft.src.StringTranslate
add(new StringTranslate(80), "West");
^
src\minecraft\net\minecraft\src\BlockLadder.java:106: cannot find symbol
symbol : constructor StringTranslate(int)
location: class net.minecraft.src.StringTranslate
add(new StringTranslate(100), "South");
^
src\minecraft\net\minecraft\src\BlockRedstoneObsidian.java:3: cannot find symbol
symbol : constructor Block()
location: class net.minecraft.src.Block
public class BlockRedstoneObsidian extends Block
^
src\minecraft\net\minecraft\src\BlockRedstoneObsidian.java:8: call to super must
be first statement in constructor
super(i, j,Material,rock);
^
src\minecraft\net\minecraft\src\ChunkCache.java:121: cannot find symbol
symbol : method b()
location: class net.minecraft.src.EnumOS1
int l1 = enumos1.b();
^
src\minecraft\net\minecraft\src\ChunkCache.java:122: cannot find symbol
symbol : method a(net.minecraft.src.RenderTNTPrimed,int,int,int)
location: class net.minecraft.src.EnumOS1
enumos1.a(chunkArray, i1, j1, k1);
^
src\minecraft\net\minecraft\src\ChunkCache.java:165: inconvertible types
found : net.minecraft.src.EnumOS1
required: net.minecraft.src.WorldGenTallGrass
return a((WorldGenTallGrass)enumos1, i1, j1, k1);
^
100 errors
==================
> Done in 16.88 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
i called the mod_****.java file mod_InifinityandBeyondCraft.java
Last edited by flaming910 on Mon Sep 26, 2011 10:46 am; edited 3 times in total (Reason for editing : placing results)
flaming910- Posts : 5
Join date : 2011-09-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Sly, can you add how to make weapons and mobs?
thanks for the other info, you made making mods easy (i learned everything in 30 minutes at 4:00 in the morning)
thanks for the other info, you made making mods easy (i learned everything in 30 minutes at 4:00 in the morning)
Frostysniper- Minecraft : Kirbymar
YouTube : Kirbymar96
Posts : 3
Join date : 2011-09-24
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Frostysniper if u want we can make a mod together
flaming910- Posts : 5
Join date : 2011-09-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
flaming910 wrote:Frostysniper if u want we can make a mod together
na, i already have 2 other people.
Frostysniper- Minecraft : Kirbymar
YouTube : Kirbymar96
Posts : 3
Join date : 2011-09-24
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
dang it i need someone to help me make a mod
flaming910- Posts : 5
Join date : 2011-09-25
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
flaming910 wrote:dang it i need someone to help me make a mod
what type of mod? i might help you a bit if i can.
Frostysniper- Minecraft : Kirbymar
YouTube : Kirbymar96
Posts : 3
Join date : 2011-09-24
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Thanks. But the tutorial is kinda outdated can you please update the tutorial its just im starting a mod Glowing blocks and if you update the tutorial it would really help me Thanks.
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
And please try to make it quickly Thanks!
Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials
Lol, it won't be quickly done. But I'll try my best.
Page 4 of 5 • 1, 2, 3, 4, 5
Page 4 of 5
Permissions in this forum:
You cannot reply to topics in this forum
|
|