Could you also make a tutorial on adding durability and enchantability to weapons? I have created the weapon but cannot figure out how to add durrability and enchantments.
EDIT: I also do not know how to make my weapon look as if I were holding it as a sword. Thank you for these helpful tutorials and I hope you can help me! :biggrin.gif:
Hi,
I'm just starting with modding. I went through some various tutorials and I have some questions. First, what to do with Modloader mod to be able to run it from mods folder (i.e. not placing files directly to minecraft.jar)? I haven't found it anywhere. Second, will you make tutorials about building generation (for example more houses in villages, wells in deserts etc.)? Thanks in advance :smile.gif:
Btw. great tutorials! :smile.gif:
I'm going to do a world generation tutorial so people can generate their own custom designs.
Could you also make a tutorial on adding durability and enchantability to weapons? I have created the weapon but cannot figure out how to add durrability and enchantments.
EDIT: I also do not know how to make my weapon look as if I were holding it as a sword. Thank you for these helpful tutorials and I hope you can help me! :biggrin.gif:
I'm going to put up a tool set tutorial(sword included), and show you add your own durability and stuff.
I'd like to thank all the people who gave me a +! The post now has a popular star! This really motivates me to do more tutorials! :biggrin.gif: :biggrin.gif:
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
And what about my first question(placing mod in mods folder)?
Once ModLoader is installed in the jar, and the game is run once, it should create the mods folder in .minecraft. Once you have finished your mod, and reobfuscated, you need to put all the classes into a ZIP(CAN NOT be a RAR), then put it in the mods folder. If ModLoader didn't make one, then just make one yourself and make sure it is called 'mods'.
Note: You cannot use the method of the mods folder if your mod edits base classes. If it does, it must go directly into the jar (just classes, no zip).
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I just started yesterday learning to making Mods at Minecraft, today i found your Tutorial(by the way, very well done!) here and i decided to start moding using ModLoader, but, after a long while, i cant make a single Block, it always give me the same error, can you help me please?
Here it's the error log :
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> Recompiling client...
'"C:\Archivos de programa\Java\jdk1.7.0_02\bin\javac.exe" -g -source 1.6 -target
1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\l
wjgl.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src
\minecraft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java s
rc\minecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.ja
va' failed : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Test.java:3: error: '{' expected
public class mod_Test.java extends BaseMod
^
1 error
1 warning
==================
FATAL ERROR
Traceback (most recent call last):
File "runtime\recompile.py", line 31, in recompile
commands.recompile(CLIENT)
File "C:\Documents and Settings\Ivßn\Escritorio\Todo Minecraft\Minecraft Coder
Pack\runtime\commands.py", line 736, in recompile
self.runcmd(forkcmd)
File "C:\Documents and Settings\Ivßn\Escritorio\Todo Minecraft\Minecraft Coder
Pack\runtime\commands.py", line 779, in runcmd
raise CalledProcessError(returncode, forkcmd, output)
CalledProcessError: Command '"C:\Archivos de programa\Java\jdk1.7.0_02\bin\javac
.exe" -g -source 1.6 -target 1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;ja
rs\bin\jinput.jar;jars\bin\lwjgl.jar;jars\bin\lwjgl_util.jar" -sourcepath src\mi
necraft -d bin\minecraft src\minecraft\net\minecraft\client\*.java src\minecraft
\net\minecraft\isom\*.java src\minecraft\net\minecraft\src\*.java conf\patches\g
a.java conf\patches\Start.java' returned non-zero exit status 1
Press any key to continue . . .
It's just a normal block using your model at your "Block" tutorial with a custom texture, withouth changes.
If you need any more info tell me and i will post it.
I think you missed a { under the public class line. If you can't figure it out post your code please.
What is the difference between the code in 1.0.0 and 1.1.0?
Is it the return value? "1.0" instead of "1.1"?
There are no differences with basic mods. The only thing the string in getVersion is used for is in ModLoader.txt. There are some differences with entity spawning and such. Like world.entityJoinedWorld is now world.spawnEntityInWorld
and just do a / in front of your image name, which happens to be easier, make sure your image is in the location of: yourmpcfoldername/jars/bin/minecraft.jar. Simply open up your minecraft.jar with WinRAR or the like and place your image in there.
TechGuy I'd be happy if you put the above in idk a new FAQ spoiler, because I've had a problem before, where no matter what folder I put the image in and did the right location, Eclipse wouldn't find my image. But putting it in your jar folder lets Eclipse know where it is instantly(the terrain image Eclipse accesses,if you don't know, is the one in the minecraft.jar).
I've explained things like this in the Images section. You can also put images inside mcp/eclipse/Client/bin.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Thanks!! :biggrin.gif: Please tell me how can I be more specific in the images section, I welcome constructive criticism :smile.gif:
thank you for taking this well, well, I didn't really know what you meant by where you were suppost to put the graphics. Apperently, what I did (which worked) was to put them in a folder and drag it in on instalation of my mod (I was using StartClient.bat and it wasn't working for that reason), so yeah. I just think you may want to put something like that down because I didn't know what you mean in that case.
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
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)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at net.minecraft.src.ModLoader.init(ModLoader.java:745)
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)
... 3 more
Caused by: java.lang.NullPointerException
at net.minecraft.src.mod_NAOM.load(mod_NAOM.java:23)
at net.minecraft.src.ModLoader.init(ModLoader.java:714)
this happens when i start mc with the item overrides...
mod_NAOM (the some parts)
I have scott tools, but the speedore's tools worked great until i added the Magmite Ore and the Shard :sad.gif:
Item declaration:
public static final Block SpeedOre = new BlockSpeedOre(123, 0).setBlockName("SpeedOre").setHardness(1F).setResistance(1F);
public static final Block SpeedBlock = new BlockSpeedBlock(124, 0).setBlockName("SpeedBlock").setHardness(1F).setResistance(1F);
public static final Item SpeedGem = new Item(2000).setItemName("SpeedGem");
public ToolMaterial SpeedTools;
public Item SpeedAxe;
public Item SpeedPickaxe;
public Item SpeedShovel;
public static final Block VoidiumOre = new BlockVoidiumOre(125, 0).setBlockName("VoidiumOre").setHardness(60F).setResistance(15F);
public static final Item VoidiumIngot = new Item(2004).setItemName("VoidiumIngot");
public static final Block MagmaniteOre = new BlockMagmaniteOre(126, 0).setBlockName("MagmaniteOre").setHardness(5F).setResistance(7F);
public static final Item MagmaniteShard = new Item(2005).setItemName("MagmaniteShard");
Sprite Override (eclipse tell me that the error is in this)
SpeedOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/SpeedOre.png");
SpeedBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/SpeedBlock.png");
SpeedGem.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedGem.png");
SpeedAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedAxe.png"); //i tried starting mc without this line, but the error goes on the pickaxe. only removing all the overrides from the axe make the game start properly (sorry for my bad english :/)
SpeedPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedPick.png");
SpeedShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/SpeedShovel.png");
VoidiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/VoidiumOre.png");
VoidiumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/VoidiumIngot.png");
MagmaniteOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SnO_Opzzzz/MagmaniteOre.png");
MagmaniteShard.iconIndex = ModLoader.addOverride("/gui/items.png", "/SnO_Opzzzz/MagmaniteShard.png");
thank you for taking this well, well, I didn't really know what you meant by where you were suppost to put the graphics. Apperently, what I did (which worked) was to put them in a folder and drag it in on instalation of my mod (I was using StartClient.bat and it wasn't working for that reason), so yeah. I just think you may want to put something like that down because I didn't know what you mean in that case.
Thanks for the feedback. Editing it now :smile.gif:
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
EDIT: I also do not know how to make my weapon look as if I were holding it as a sword. Thank you for these helpful tutorials and I hope you can help me! :biggrin.gif:
I'm going to do a world generation tutorial so people can generate their own custom designs.
Added to the list. Thanks for the idea :smile.gif:
I'm going to put up a tool set tutorial(sword included), and show you add your own durability and stuff.
I'd like to thank all the people who gave me a +! The post now has a popular star! This really motivates me to do more tutorials! :biggrin.gif: :biggrin.gif:
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAnd what about my first question(placing mod in mods folder)?
Divine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
Once ModLoader is installed in the jar, and the game is run once, it should create the mods folder in .minecraft. Once you have finished your mod, and reobfuscated, you need to put all the classes into a ZIP(CAN NOT be a RAR), then put it in the mods folder. If ModLoader didn't make one, then just make one yourself and make sure it is called 'mods'.
Note: You cannot use the method of the mods folder if your mod edits base classes. If it does, it must go directly into the jar (just classes, no zip).
together they are powerful beyond imagination."
== ERRORS FOUND == src/minecraft/net/minecraft/src/EntityBullet.java:21: cannot find symbol symbol : constructor ia(ry) location: class ia super(world); ^ src/minecraft/net/minecraft/src/EntityBullet.java:34: cannot find symbol symbol : constructor ia(ry) location: class ia super(world); ^ src/minecraft/net/minecraft/src/EntityBullet.java:51: cannot find symbol symbol : constructor ia(ry) location: class ia super(world); ^ src/minecraft/net/minecraft/src/EntityBullet.java:66: cannot find symbol symbol : constructor ia(ry) location: class ia super(world); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : variable s location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : variable t location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : method E() location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : variable u location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : variable y location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:77: cannot find symbol symbol : variable z location: class nq c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); ^ src/minecraft/net/minecraft/src/EntityBullet.java:78: operator / cannot be applied to vi,float this.s -= me.b(this.y / 180.0F * 3.141593F) * 0.16F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:78: b(int,int,int,int) in me cannot be applied to (float) this.s -= me.b(this.y / 180.0F * 3.141593F) * 0.16F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:80: operator / cannot be applied to vi,float this.u -= me.a(this.y / 180.0F * 3.141593F) * 0.16F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:80: cannot find symbol symbol : method a(float) location: class me this.u -= me.a(this.y / 180.0F * 3.141593F) * 0.16F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:83: operator / cannot be applied to vi,float this.v = (100.0F * -me.a(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:83: cannot find symbol symbol : method a(float) location: class me this.v = (100.0F * -me.a(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:83: operator / cannot be applied to boolean,float this.v = (100.0F * -me.a(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:83: b(int,int,int,int) in me cannot be applied to (float) this.v = (100.0F * -me.a(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:84: operator / cannot be applied to vi,float this.x = (100.0F * me.b(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:84: b(int,int,int,int) in me cannot be applied to (float) this.x = (100.0F * me.b(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:84: operator / cannot be applied to boolean,float this.x = (100.0F * me.b(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:84: b(int,int,int,int) in me cannot be applied to (float) this.x = (100.0F * me.b(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:85: operator / cannot be applied to boolean,float this.w = (100.0F * -me.a(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:85: cannot find symbol symbol : method a(float) location: class me this.w = (100.0F * -me.a(this.z / 180.0F * 3.141593F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:95: cannot find symbol symbol : method a(double) location: class me float f2 = me.a(d * d + d1 * d1 + d2 * d2); ^ src/minecraft/net/minecraft/src/EntityBullet.java:99: int cannot be dereferenced d += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; ^ src/minecraft/net/minecraft/src/EntityBullet.java:100: int cannot be dereferenced d1 += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; ^ src/minecraft/net/minecraft/src/EntityBullet.java:101: int cannot be dereferenced d2 += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; ^ src/minecraft/net/minecraft/src/EntityBullet.java:105: possible loss of precision found : double required: float this.v = d; ^ src/minecraft/net/minecraft/src/EntityBullet.java:106: possible loss of precision found : double required: float this.w = d1; ^ src/minecraft/net/minecraft/src/EntityBullet.java:107: possible loss of precision found : double required: float this.x = d2; ^ src/minecraft/net/minecraft/src/EntityBullet.java:108: cannot find symbol symbol : method a(double) location: class me float f3 = me.a(d * d + d2 * d2); ^ src/minecraft/net/minecraft/src/EntityBullet.java:109: cannot assign a value to final variable y this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:109: incompatible types found : float required: vi this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:109: incompatible types found : vi required: boolean this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:110: incompatible types found : float required: boolean this.B = (this.z = (float)(Math.atan2(d1, f3) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:116: possible loss of precision found : double required: float this.v = d; ^ src/minecraft/net/minecraft/src/EntityBullet.java:117: possible loss of precision found : double required: float this.w = d1; ^ src/minecraft/net/minecraft/src/EntityBullet.java:118: possible loss of precision found : double required: float this.x = d2; ^ src/minecraft/net/minecraft/src/EntityBullet.java:119: incomparable types: boolean and float if ((this.B == 0.0F) && (this.A == 0.0F)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:119: incomparable types: boolean and float if ((this.B == 0.0F) && (this.A == 0.0F)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:121: cannot find symbol symbol : method a(double) location: class me float f = me.a(d * d + d2 * d2); ^ src/minecraft/net/minecraft/src/EntityBullet.java:122: cannot assign a value to final variable y this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:122: incompatible types found : float required: vi this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:122: incompatible types found : vi required: boolean this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:123: incompatible types found : float required: boolean this.B = (this.z = (float)(Math.atan2(d1, f) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:129: reference to a is ambiguous, both method a(double...) in ms and method a(float...) in ms match super.a(); ^ src/minecraft/net/minecraft/src/EntityBullet.java:132: cannot find symbol symbol : method v() location: class EntityBullet v(); ^ src/minecraft/net/minecraft/src/EntityBullet.java:134: incomparable types: boolean and float if ((this.B == 0.0F) && (this.A == 0.0F)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:134: incomparable types: boolean and float if ((this.B == 0.0F) && (this.A == 0.0F)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:136: cannot find symbol symbol : method a(float) location: class me float f = me.a(this.v * this.v + this.x * this.x); ^ src/minecraft/net/minecraft/src/EntityBullet.java:137: cannot assign a value to final variable y this.A = (this.y = (float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:137: incompatible types found : float required: vi this.A = (this.y = (float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:137: incompatible types found : vi required: boolean this.A = (this.y = (float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:138: incompatible types found : float required: boolean this.B = (this.z = (float)(Math.atan2(this.w, f) * 180.0D / 3.141592741012573D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:146: double cannot be dereferenced int i = this.o.a(this.xTile, this.yTile, this.zTile); ^ src/minecraft/net/minecraft/src/EntityBullet.java:150: int cannot be dereferenced this.v *= this.Y.nextFloat() * 0.2F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:151: int cannot be dereferenced this.w *= this.Y.nextFloat() * 0.2F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:152: int cannot be dereferenced this.x *= this.Y.nextFloat() * 0.2F; ^ src/minecraft/net/minecraft/src/EntityBullet.java:160: cannot find symbol symbol : method v() location: class EntityBullet v(); ^ src/minecraft/net/minecraft/src/EntityBullet.java:168: cannot find symbol symbol : method b(double,double,float) location: class fb fb vec3d = fb.b(this.s, this.t, this.u); ^ src/minecraft/net/minecraft/src/EntityBullet.java:169: cannot find symbol symbol : method b(double,double,float) location: class fb fb vec3d1 = fb.b(this.s + this.v, this.t + this.w, this.u + this.x); ^ src/minecraft/net/minecraft/src/EntityBullet.java:170: double cannot be dereferenced gv movingobjectposition = this.o.a(vec3d, vec3d1); ^ src/minecraft/net/minecraft/src/EntityBullet.java:171: cannot find symbol symbol : method b(double,double,float) location: class fb vec3d = fb.b(this.s, this.t, this.u); ^ src/minecraft/net/minecraft/src/EntityBullet.java:172: cannot find symbol symbol : method b(double,double,float) location: class fb vec3d1 = fb.b(this.s + this.v, this.t + this.w, this.u + this.x); ^ src/minecraft/net/minecraft/src/EntityBullet.java:175: cannot find symbol symbol : variable f location: class gv vec3d1 = fb.b(movingobjectposition.f.a, movingobjectposition.f.b, movingobjectposition.f.c); ^ src/minecraft/net/minecraft/src/EntityBullet.java:175: cannot find symbol symbol : variable f location: class gv vec3d1 = fb.b(movingobjectposition.f.a, movingobjectposition.f.b, movingobjectposition.f.c); ^ src/minecraft/net/minecraft/src/EntityBullet.java:175: cannot find symbol symbol : variable f location: class gv vec3d1 = fb.b(movingobjectposition.f.a, movingobjectposition.f.b, movingobjectposition.f.c); ^ src/minecraft/net/minecraft/src/EntityBullet.java:178: boolean cannot be dereferenced List list = this.o.b(this, this.C.a(this.v, this.w, this.x).b(1.0D, 1.0D, 1.0D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:178: double cannot be dereferenced List list = this.o.b(this, this.C.a(this.v, this.w, this.x).b(1.0D, 1.0D, 1.0D)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:183: incomparable types: ia and nq if ((!entity1.e_()) || ((entity1 == this.shootingEntity) && (this.flyTime < 5))) ^ src/minecraft/net/minecraft/src/EntityBullet.java:188: boolean cannot be dereferenced c axisalignedbb = entity1.C.b(f4, f4, f4); ^ src/minecraft/net/minecraft/src/EntityBullet.java:189: cannot find symbol symbol : method a(fb,fb) location: class c gv movingobjectposition1 = axisalignedbb.a(vec3d, vec3d1); ^ src/minecraft/net/minecraft/src/EntityBullet.java:194: cannot find symbol symbol : variable f location: class gv double d1 = vec3d.d(movingobjectposition1.f); ^ src/minecraft/net/minecraft/src/EntityBullet.java:203: cannot find symbol symbol : constructor gv(ia) location: class gv movingobjectposition = new gv(entity); ^ src/minecraft/net/minecraft/src/EntityBullet.java:207: cannot find symbol symbol : variable g location: class gv if (movingobjectposition.g != null) ^ src/minecraft/net/minecraft/src/EntityBullet.java:209: cannot find symbol symbol : constructor fq(java.lang.String,vi) location: class fq if (movingobjectposition.g.a(new fq("player", this.owner), this.damage)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:209: cannot find symbol symbol : variable g location: class gv if (movingobjectposition.g.a(new fq("player", this.owner), this.damage)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:211: int cannot be dereferenced this.o.a(this, "BulletHit", 1.0F, 1.2F / (this.Y.nextFloat() * 0.2F + 0.9F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:211: double cannot be dereferenced this.o.a(this, "BulletHit", 1.0F, 1.2F / (this.Y.nextFloat() * 0.2F + 0.9F)); ^ src/minecraft/net/minecraft/src/EntityBullet.java:212: cannot find symbol symbol : method v() location: class EntityBullet v(); ^ src/minecraft/net/minecraft/src/EntityBullet.java:219: cannot find symbol symbol : method v() location: class EntityBullet v(); ^ src/minecraft/net/minecraft/src/EntityBullet.java:223: b has private access in vc this.xTile = movingobjectposition.b; ^ src/minecraft/net/minecraft/src/EntityBullet.java:224: c has private access in vc this.yTile = movingobjectposition.c; ^ src/minecraft/net/minecraft/src/EntityBullet.java:225: d has private access in vc this.zTile = movingobjectposition.d; ^ src/minecraft/net/minecraft/src/EntityBullet.java:226: double cannot be dereferenced this.inTile = this.o.a(this.xTile, this.yTile, this.zTile); ^ src/minecraft/net/minecraft/src/EntityBullet.java:227: cannot find symbol symbol : variable M location: class yy if ((this.inTile == yy.M.bM) || (this.inTile == yy.bd.bM) || (this.inTile == yy.K.bM)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:227: cannot find symbol symbol : variable bd location: class yy if ((this.inTile == yy.M.bM) || (this.inTile == yy.bd.bM) || (this.inTile == yy.K.bM)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:227: cannot find symbol symbol : variable K location: class yy if ((this.inTile == yy.M.bM) || (this.inTile == yy.bd.bM) || (this.inTile == yy.K.bM)) ^ src/minecraft/net/minecraft/src/EntityBullet.java:229: cannot find symbol symbol : variable k location: class yy yy block = yy.k[this.inTile]; ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: cannot find symbol symbol : variable bX location: class yy ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: cannot find symbol symbol : variable bX location: class yy ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: operator + cannot be applied to yy.bX.b,float ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: operator / cannot be applied to <nulltype>,float ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: cannot find symbol symbol : variable bX location: class yy ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:230: cannot find symbol symbol : variable C location: class net.minecraft.client.Minecraft ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); ^ src/minecraft/net/minecraft/src/EntityBullet.java:231: double cannot be dereferenced this.o.g(this.xTile, this.yTile, this.zTile, 0); ^ src/minecraft/net/minecraft/src/EntityBullet.java:234: cannot find symbol symbol : variable f location: class gv this.v = (float)(movingobjectposition.f.a - this.s); ^ src/minecraft/net/minecraft/src/EntityBullet.java:235: cannot find symbol symbol : variable f location: class gv this.w = (float)(movingobjectposition.f.b - this.t); ^ src/minecraft/net/minecraft/src/EntityBullet.java:236: cannot find symbol symbol : variable f location: class gv this.x = (float)(movingobjectposition.f.c - this.u); ^ 100 errors ==================This is my file
import java.util.List; import java.util.Random; import net.minecraft.client.Minecraft; public class EntityBullet extends ia { private int xTile; private int yTile; private int zTile; private int inTile; private boolean inGround; public int arrowShake; public nq shootingEntity; private int timeTillDeath; private int flyTime; private vi owner; private int damage; public EntityBullet(ry world) { super(world); this.xTile = -1; this.yTile = -1; this.zTile = -1; this.inTile = 0; this.inGround = false; this.arrowShake = 0; this.flyTime = 0; a(0.5F, 0.5F); } public EntityBullet(ry world, double d, double d1, double d2, double d3, double d4, double d5, vi entityplayer) { super(world); this.xTile = -1; this.yTile = -1; this.zTile = -1; this.inTile = 0; this.inGround = false; this.arrowShake = 0; this.flyTime = 0; a(0.5F, 0.5F); d(d, d1, d2); this.L = 0.0F; a(d3, d4, d5); this.owner = entityplayer; } public EntityBullet(ry world, double d, double d1, double d2) { super(world); this.xTile = -1; this.yTile = -1; this.zTile = -1; this.inTile = 0; this.inGround = false; this.arrowShake = 0; this.flyTime = 0; a(0.5F, 0.5F); d(d, d1, d2); this.L = 0.0F; } public EntityBullet(ry world, nq entityliving, int i, int j) { super(world); this.damage = i; this.xTile = -1; this.yTile = -1; this.zTile = -1; this.inTile = 0; this.inGround = false; this.arrowShake = 0; this.flyTime = 0; this.shootingEntity = entityliving; a(0.5F, 0.5F); c(entityliving.s, entityliving.t + entityliving.E(), entityliving.u, entityliving.y, entityliving.z); this.s -= me.b(this.y / 180.0F * 3.141593F) * 0.16F; this.t -= 0.1000000014901161D; this.u -= me.a(this.y / 180.0F * 3.141593F) * 0.16F; d(this.s, this.t, this.u); this.L = 0.0F; this.v = (100.0F * -me.a(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); this.x = (100.0F * me.b(this.y / 180.0F * 3.141593F) * me.b(this.z / 180.0F * 3.141593F)); this.w = (100.0F * -me.a(this.z / 180.0F * 3.141593F)); setArrowHeading(this.v, this.w, this.x, 1.5F, 1.0F, j); } protected void b() { } public void setArrowHeading(double d, double d1, double d2, float f, float f1, int i) { float f2 = me.a(d * d + d1 * d1 + d2 * d2); d /= f2; d1 /= f2; d2 /= f2; d += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; d1 += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; d2 += this.Y.nextGaussian() * 0.003499999832361937D * f1 * i; d *= f; d1 *= f; d2 *= f; this.v = d; this.w = d1; this.x = d2; float f3 = me.a(d * d + d2 * d2); this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); this.B = (this.z = (float)(Math.atan2(d1, f3) * 180.0D / 3.141592741012573D)); this.timeTillDeath = 0; } public void a(double d, double d1, double d2) { this.v = d; this.w = d1; this.x = d2; if ((this.B == 0.0F) && (this.A == 0.0F)) { float f = me.a(d * d + d2 * d2); this.A = (this.y = (float)(Math.atan2(d, d2) * 180.0D / 3.141592741012573D)); this.B = (this.z = (float)(Math.atan2(d1, f) * 180.0D / 3.141592741012573D)); } } public void a() { super.a(); if (this.flyTime > 1000) { v(); } if ((this.B == 0.0F) && (this.A == 0.0F)) { float f = me.a(this.v * this.v + this.x * this.x); this.A = (this.y = (float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D)); this.B = (this.z = (float)(Math.atan2(this.w, f) * 180.0D / 3.141592741012573D)); } if (this.arrowShake > 0) { this.arrowShake -= 1; } if (this.inGround) { int i = this.o.a(this.xTile, this.yTile, this.zTile); if (i != this.inTile) { this.inGround = false; this.v *= this.Y.nextFloat() * 0.2F; this.w *= this.Y.nextFloat() * 0.2F; this.x *= this.Y.nextFloat() * 0.2F; this.timeTillDeath = 0; this.flyTime = 0; } else { this.timeTillDeath += 1; if (this.timeTillDeath == 1200) { v(); } return; } } else { this.flyTime += 1; } fb vec3d = fb.b(this.s, this.t, this.u); fb vec3d1 = fb.b(this.s + this.v, this.t + this.w, this.u + this.x); gv movingobjectposition = this.o.a(vec3d, vec3d1); vec3d = fb.b(this.s, this.t, this.u); vec3d1 = fb.b(this.s + this.v, this.t + this.w, this.u + this.x); if (movingobjectposition != null) { vec3d1 = fb.b(movingobjectposition.f.a, movingobjectposition.f.b, movingobjectposition.f.c); } ia entity = null; List list = this.o.b(this, this.C.a(this.v, this.w, this.x).b(1.0D, 1.0D, 1.0D)); double d = 0.0D; for (int j = 0; j < list.size(); j++) { ia entity1 = (ia)list.get(j); if ((!entity1.e_()) || ((entity1 == this.shootingEntity) && (this.flyTime < 5))) { continue; } float f4 = 0.3F; c axisalignedbb = entity1.C.b(f4, f4, f4); gv movingobjectposition1 = axisalignedbb.a(vec3d, vec3d1); if (movingobjectposition1 == null) { continue; } double d1 = vec3d.d(movingobjectposition1.f); if ((d1 >= d) && (d != 0.0D)) continue; entity = entity1; d = d1; } if (entity != null) { movingobjectposition = new gv(entity); } if (movingobjectposition != null) { if (movingobjectposition.g != null) { if (movingobjectposition.g.a(new fq("player", this.owner), this.damage)) { this.o.a(this, "BulletHit", 1.0F, 1.2F / (this.Y.nextFloat() * 0.2F + 0.9F)); v(); } else { this.v *= 0.1000000014901161D; this.w *= 0.1000000014901161D; this.x *= 0.1000000014901161D; this.flyTime = 0; v(); } } else { this.xTile = movingobjectposition.b; this.yTile = movingobjectposition.c; this.zTile = movingobjectposition.d; this.inTile = this.o.a(this.xTile, this.yTile, this.zTile); if ((this.inTile == yy.M.bM) || (this.inTile == yy.bd.bM) || (this.inTile == yy.K.bM)) { yy block = yy.k[this.inTile]; ModLoader.getMinecraftInstance().C.b(block.bX.a(), this.xTile + 0.5F, this.yTile + 0.5F, this.zTile + 0.5F, (block.bX.b() + 1.0F) / 2.0F, block.bX.c() * 0.8F); this.o.g(this.xTile, this.yTile, this.zTile, 0); } else { this.v = (float)(movingobjectposition.f.a - this.s); this.w = (float)(movingobjectposition.f.b - this.t); this.x = (float)(movingobjectposition.f.c - this.u); float f1 = me.a(this.v * this.v + this.w * this.w + this.x * this.x); this.s -= this.v / f1 * 0.0500000007450581D; this.t -= this.w / f1 * 0.0500000007450581D; this.u -= this.x / f1 * 0.0500000007450581D; this.o.a(this, "Bullet2Hit", 1.0F, 1.2F / (this.Y.nextFloat() * 0.2F + 0.9F)); v(); } } } this.s += this.v * 3.0D; this.t += this.w * 3.0D; this.u += this.x * 3.0D; float f2 = me.a(this.v * this.v + this.x * this.x); this.y = (float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D); for (this.z = (float)(Math.atan2(this.w, f2) * 180.0D / 3.141592741012573D); this.z - this.B < -180.0F; this.B -= 360.0F); while (this.z - this.B >= 180.0F) this.B += 360.0F; while (this.y - this.A < -180.0F) this.A -= 360.0F; while (this.y - this.A >= 180.0F) this.A += 360.0F; this.z = (this.B + (this.z - this.:cool.gif: * 0.2F); this.y = (this.A + (this.y - this.A) * 0.2F); float f3 = 0.99F; float f5 = 0.03F; if (h_()) { for (int k = 0; k < 4; k++) { float f6 = 0.25F; this.o.a("bubble", this.s - this.v * f6, this.t - this.w * f6, this.u - this.x * f6, this.v, this.w, this.x); } f3 = 0.8F; } this.v *= f3; this.w *= f3; this.x *= f3; d(this.s, this.t, this.u); } public void a(ik nbttagcompound) { nbttagcompound.a("xTile", (short)this.xTile); nbttagcompound.a("yTile", (short)this.yTile); nbttagcompound.a("zTile", (short)this.zTile); nbttagcompound.a("inTile", (byte)this.inTile); nbttagcompound.a("shake", (byte)this.arrowShake); nbttagcompound.a("inGround", (byte)(this.inGround ? 1 : 0)); } public void b(ik nbttagcompound) { this.xTile = nbttagcompound.d("xTile"); this.yTile = nbttagcompound.d("yTile"); this.zTile = nbttagcompound.d("zTile"); this.inTile = (nbttagcompound.c("inTile") & 0xFF); this.arrowShake = (nbttagcompound.c("shake") & 0xFF); this.inGround = (nbttagcompound.c("inGround") == 1); } public void a(vi entityplayer) { if (this.o.I) { return; } if ((this.inGround) && (this.shootingEntity == entityplayer) && (this.arrowShake <= 0) && (entityplayer.by.a(new dk(acy.k, 1)))) { this.o.a(this, "random.pop", 0.2F, ((this.Y.nextFloat() - this.Y.nextFloat()) * 0.7F + 1.0F) * 2.0F); entityplayer.a(this, 1); v(); } } public float i_() { return 0.0F; } }if you help (Masters) You will be greatly credited in this edition to my mod!
thanks!
Please help please I really don't know anything about this constructer thing.
Is it the return value? "1.0" instead of "1.1"?
I think you missed a { under the public class line. If you can't figure it out post your code please.
I replied to your post in Mod Development :smile.gif:
There are no differences with basic mods. The only thing the string in getVersion is used for is in ModLoader.txt. There are some differences with entity spawning and such. Like world.entityJoinedWorld is now world.spawnEntityInWorld
I've explained things like this in the Images section. You can also put images inside mcp/eclipse/Client/bin.
together they are powerful beyond imagination."
Thanks :smile.gif:
together they are powerful beyond imagination."
Code for signature edit:
Hope you like it!
But my multi-textured block still need some minor changes to work. Mind if I post the error and the code here?
Did you make a BlockName.java?
thank you for taking this well, well, I didn't really know what you meant by where you were suppost to put the graphics. Apperently, what I did (which worked) was to put them in a folder and drag it in on instalation of my mod (I was using StartClient.bat and it wasn't working for that reason), so yeah. I just think you may want to put something like that down because I didn't know what you mean in that case.
Preview:
Code:
If you are feeling generous, Please press the Green Button. Thanks! :smile.gif:
What is line 23?
Thanks. Its great!! :biggrin.gif:
Remove the .java from line so its like this
Thankyou! Another great banner by the master :biggrin.gif:
Thanks for the feedback. Editing it now :smile.gif:
Thankyou. I'm glad I could help
together they are powerful beyond imagination."