It wasnt a joke, because animals are persistent now they wont respawn once you kill them, so if u killed enough of them, you would have an animal-less world. Animal breeding is being introduced so that more animals become available.
Thanks for the help everyone, it works now. i should of realized about that line. oh well.
Anyone know where to change the texture of the boat when you place it down? and which line of the code you need to modify so it never breaks unless the player hits it a couple of times?
EDIT: i think i found where, in the EntityIronBoat.java file, but dont know what to change it to. not sure if its the right line though
public boolean canBeCollidedWith()
{
return !isDead;
}
public static final Item ItemGlasses = new ItemGlasses(801).setItemName("ig");
itemGlasses.iconIndex = ModLoader.addOverride("/gui/items.png", "/glass.png");
ModLoader.AddName(itemGlasses "ItemGlasses");
One of these is not like the others. :biggrin.gif:
Hint: Yeah. Case error.
Thankyou!!!!! for all your help, a bit of trial and error fixed it (public static final!)
== 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 ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Glasses.java:14: error: '}' expected
"* *", "* *", "***", Character.valueOf('*'), block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:14: error: ';' expected
"* *", "* *", "***", Character.valueOf('*'), block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:15: error: illegal start of exp
ression
});
^
3 errors
1 warning
==================
> Done in 2.47 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Know anything about the illegal start of expression error i keep getting? also, do you think that Henry The Coder does good modding tutorials? because whenever i try and do it, even if i have my code identical to his, i get errors
still getting these after fixing that. I get the illegal start of type error on almost every mod. always at the same place. is there a different way to do it?
== 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 ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Glasses.java:12: error: ')' expected
ModLoader.AddName(itemGlasses "ItemGlasses");
^
src\minecraft\net\minecraft\src\mod_Glasses.java:12: error: illegal start of exp
ression
ModLoader.AddName(itemGlasses "ItemGlasses");
^
src\minecraft\net\minecraft\src\mod_Glasses.java:14: error: '}' expected
"* *", "* *", "***" Character.valueOf('*') = block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:15: error: illegal start of typ
e
});
^
src\minecraft\net\minecraft\src\mod_Glasses.java:18: error: class, interface, or
enum expected
public String Version()
^
src\minecraft\net\minecraft\src\mod_Glasses.java:21: error: class, interface, or
enum expected
}
^
6 errors
1 warning
==================
> Done in 2.47 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I tried to recompile after fixing those and came up with only these
== 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 ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_ironboat.java:4: error: mod_ironboat is not
abstract and does not override abstract method Version() in BaseMod
public class mod_ironboat extends BaseMod
^
src\minecraft\net\minecraft\src\mod_ironboat.java:17: error: cannot return a val
ue from method whose result type is void
return "3.14159265";
^
2 errors
1 warning
==================
> Done in 12.01 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Here is my mod_ironboat.java:
package net.minecraft.src;
import java.util.Random;
public class mod_ironboat extends BaseMod
{
public static final Item itemIronBoat = new ItemIronBoat(850).setItemName("iboat");
public mod_ironboat()
{
itemIronBoat.iconIndex = ModLoader.addOverride("/gui/items.png", "/ironboat.png");
ModLoader.AddName(itemIronBoat, "ItemIronBoat");
ModLoader.AddRecipe(new ItemStack(itemIronBoat, 1), new Object[] {
"#B#", "C#C", Character.valueOf('#'), Block.blockSteel, Character.valueOf('C'), Item.ingotIron
});
{
return "3.14159265";
}
}
}
Since it's in ItemIronBoat.java, I'm pretty sure, my hunch was right. It's kind of weird, that javac doesn't whine for the wrong class name first. It already knows it wont work by the time it gets to
public class ItemIronBoatSomethingElse {
I've tested it earlier today, and it results in the exact same error. :]
Thanks for the help, I found the error, it was in the public class line of ItemIronBoat. I had ItemBIronBoat instead.
After I fixed that, I ran into more errors recompiling
== 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 ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_boat.java:4: error: mod_boat is not abstract
and does not override abstract method Version() in BaseMod
public class mod_boat extends BaseMod
^
src\minecraft\net\minecraft\src\mod_boat.java:9: error: non-static variable icon
Index cannot be referenced from a static context
ItemIronBoat.iconIndex = ModLoader.addOverride("/gui/items.png", "/ironboat.png"
);
^
src\minecraft\net\minecraft\src\mod_boat.java:10: error: cannot find symbol
ModLoader.AddName(itemIronBoat, ItemIronBoat);
^
symbol: variable ItemIronBoat
location: class mod_boat
src\minecraft\net\minecraft\src\mod_boat.java:11: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(ItemIronBoat, 1), new Object[] {
^
symbol: variable ItemIronBoat
location: class mod_boat
src\minecraft\net\minecraft\src\mod_boat.java:12: error: cannot find symbol
"#B#", "C#C", Character.valueOf('#'), Block.blockIron, Character.valueOf('C'), I
tem.ingotiron.shiftedIndex
^
symbol: variable blockIron
location: class Block
src\minecraft\net\minecraft\src\mod_boat.java:12: error: cannot find symbol
"#B#", "C#C", Character.valueOf('#'), Block.blockIron, Character.valueOf('C'), I
tem.ingotiron.shiftedIndex
^
symbol: variable ingotiron
location: class Item
src\minecraft\net\minecraft\src\mod_boat.java:17: error: cannot return a value f
rom method whose result type is void
return "3.14159265";
^
7 errors
1 warning
==================
> Done in 12.01 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Can be used in lava and won't break if you crash it. Destroying the boat returns it to the player.
Motor boat engine:
Combine an iron boat with an engine and it becomes a Motor Boat. Motor boats are like iron boats, but they can accelerate to 3x the speed of a normal boat. Accelerates twice as fast as a normal boat and turns better.
Also, there could be something called a Steam Boat:
This boat is like an iron boat, but goes 2x as fast, and can break through ice.
Also, just for fun, I designed a Diamond Boat.
Diamond Boat Frame:
Diamond Boat Wings:
Combine the frame with an engine behind the frame and two wings on either side and you have a Diamond Boat. It can:
Travel in lava
Never break
Go 5x as fast as a normal boat
Turn on a dime
Press [Space] while using the boat to do a jump. The boat will jump 16 blocks high and slowly glide down. This jump can be performed in water or on land. You can control the boat while in the air. You cannot jump again while in mid-air though.
I'll have a go at making this :smile.gif:
There is a similar mod HoverBoat which looks pretty useful. This is the last post i can make till 6:15am. Do you want the boats to be stackable?
As in the title, I'm taking requests for mods, but I can only do ones i think would be in my depth. I can make mods for tools, armour, items, food and poision, etc.
0
0
0
Anyone know where to change the texture of the boat when you place it down? and which line of the code you need to modify so it never breaks unless the player hits it a couple of times?
EDIT: i think i found where, in the EntityIronBoat.java file, but dont know what to change it to. not sure if its the right line though
0
Thankyou!!!!! for all your help, a bit of trial and error fixed it (public static final!)
0
I'm guessing this is another case issue but i cant find any errors
0
Know anything about the illegal start of expression error i keep getting? also, do you think that Henry The Coder does good modding tutorials? because whenever i try and do it, even if i have my code identical to his, i get errors
0
0
Here is my mod_Glasses.java file
Here is my ItemGlasses.java file
0
I tried to recompile after fixing those and came up with only these
Here is my mod_ironboat.java:
0
Thanks for the help, I found the error, it was in the public class line of ItemIronBoat. I had ItemBIronBoat instead.
After I fixed that, I ran into more errors recompiling
here's my ItemIronBoat.java
its the same as the standard ItemBoat.java but with the names changed
0
But I'm just starting at Java so I wouldnt know. Sorry.
0
Anyone know how to fix the problem?
Any suggestions greatly appreciated
0
I'll have a go at making this :smile.gif:
There is a similar mod HoverBoat which looks pretty useful. This is the last post i can make till 6:15am. Do you want the boats to be stackable?
0
kinda like the RC-XD on Black Ops?
0