I really need help changing player characteristics
eg: no fall damage, or infinite breath underwater, but i have no clue how to do this, can someone possibly make a tutorial for this?
I really need help changing player characteristics
eg: no fall damage, or infinite breath underwater, but i have no clue how to do this, can someone possibly make a tutorial for this?
just go into the entityplayer file and edit the stuff in there. Im pretty sure air while under water is called air and is 20.
Sorry air is defined in the entity file and has a value of 300.
Hello, I was trying (for my first time) your example block. For some reason it said there was something wrong with the foot step part.
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\Block.java:739: cannot find symbol
symbol : class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(93, 1)).setHardness(1.5F).setResistance(10F)
.setStepSound(soundStoneFootstep);
^
1 error
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===Press any key to continue . .
Hello, I was trying (for my first time) your example block. For some reason it said there was something wrong with the foot step part.
*** Minecraft Coder Pack Version 2.7 ***
Compiling Minecraft
sources\minecraft\net\minecraft\src\Block.java:739: cannot find symbol
symbol : class BlockExample
location: class net.minecraft.src.Block
example = (new BlockExample(93, 1)).setHardness(1.5F).setResistance(10F)
.setStepSound(soundStoneFootstep);
^
1 error
Compiling Minecraft Start Class
*** minecraft_server.jar was not found, skipping
=== MCP 2.7 recompile script finished ===Press any key to continue . .
See...why though?
no its pointing to the line above it see how it says cant find class BlockExample?
have you create a file called BlockExample?
Hey Guys, I'm still a tad confused with how to use Mod Loader, as in, where do i put the code? Do I just make a completely new .class file and add mod_ to the front like mod_newblocks.class then edit that? o.O
Hey Guys, I'm still a tad confused with how to use Mod Loader, as in, where do i put the code? Do I just make a completely new .class file and add mod_ to the front like mod_newblocks.class then edit that? o.O
yes, while using mod loader, you create a new file called mod_(whatever).java, this is where youre going to be putting most of your code. now dont get confused, you still need to make a Block(yourblock) class to define your block (if thats what youre making). what you put in mod_(whatever) is all the defenitions for your blocks and mods, for example:
public static final Block vol;
public static final Block nanoDiamond;
public static final Item nanoPick;
static
{
vol = (new BlockVol(100)).setHardness(1.5F).setStepSound(Block.soundStoneFootstep).setBlockName("Volatile Matter");
nanoDiamond = (new BlockNanoDiamond(101)).setHardness(12F).setResistance(2000F).setStepSound(Block.soundStoneFootstep).setBlockName("Nano Diamond");
this is also where you put all your recipes and stuff like so:
recipes.addRecipe(new ItemStack(Item.pickaxeWood, 1), new Object[] {
"###", " X ", " X ", Character.valueOf('#'), vol, Character.valueOf('X'), Item.stick
});
hope this helps!
Rollback Post to RevisionRollBack
Remeber: that little green plus sign is a great way to say thank you!
Hey Guys, I'm still a tad confused with how to use Mod Loader, as in, where do i put the code? Do I just make a completely new .class file and add mod_ to the front like mod_newblocks.class then edit that? o.O
yes, while using mod loader, you create a new file called mod_(whatever).java, this is where youre going to be putting most of your code. now dont get confused, you still need to make a Block(yourblock) class to define your block (if thats what youre making). what you put in mod_(whatever) is all the defenitions for your blocks and mods, for example:
public static final Block vol;
public static final Block nanoDiamond;
public static final Item nanoPick;
static
{
vol = (new BlockVol(100)).setHardness(1.5F).setStepSound(Block.soundStoneFootstep).setBlockName("Volatile Matter");
nanoDiamond = (new BlockNanoDiamond(101)).setHardness(12F).setResistance(2000F).setStepSound(Block.soundStoneFootstep).setBlockName("Nano Diamond");
this is also where you put all your recipes and stuff like so:
recipes.addRecipe(new ItemStack(Item.pickaxeWood, 1), new Object[] {
"###", " X ", " X ", Character.valueOf('#'), vol, Character.valueOf('X'), Item.stick
});
hope this helps!
So i still need to add into Block.Java correct? and i can put my recipes in the same file as my block? If that's correct thats cool!
yes you still need the block, andno, you block is separate from your mod_(whatever) class.
all recipes and stuff go in the mod_(whatever) class
really the only thing that should be in your block class is something like this:
public class BlockVol extends Block
{
public BlockVol(int blockID)
{
super(blockID, 74, Material.ground);
Item.itemsList[blockID] = new ItemBlock(blockID-256);
this.setResistance(2.0F).setHardness(10F).setLightValue(0.69F).setStepSound(soundGravelFootstep);
}
public int getBlockTextureFromSide(int side)
{
}return 5;
}
Rollback Post to RevisionRollBack
Remeber: that little green plus sign is a great way to say thank you!
oh dont worry about that, those are just my examples (those are part of my mod :wink.gif: )
the reason I put the there is for you to see how to define the stuff within the class :smile.gif:
Rollback Post to RevisionRollBack
Remeber: that little green plus sign is a great way to say thank you!
I would love to try an learn how to mod, but I don't know the first thing about coding, so all of these tutorials are just over my head. I don't even understand how you're supposed to make a class file, etc.
What's a good place to learn how to get started from the ground up?
Same here, but instead of the coding part, its the actual getting it to work for me. I dont know how to make it work for me, and I dont get anything from written tutorials.
I was the same as both of you just over a week ago but now i have made a mod which is quite successful viewtopic.php?f=25&t=170604
eg: no fall damage, or infinite breath underwater, but i have no clue how to do this, can someone possibly make a tutorial for this?
just go into the entityplayer file and edit the stuff in there. Im pretty sure air while under water is called air and is 20.
Sorry air is defined in the entity file and has a value of 300.
See...why though?
no its pointing to the line above it see how it says cant find class BlockExample?
have you create a file called BlockExample?
The Maze Adventure Map
http://www.youtube.com/user/Wiz909090
Twitter
Blog
YouTube
yes, while using mod loader, you create a new file called mod_(whatever).java, this is where youre going to be putting most of your code. now dont get confused, you still need to make a Block(yourblock) class to define your block (if thats what youre making). what you put in mod_(whatever) is all the defenitions for your blocks and mods, for example:
this is also where you put all your recipes and stuff like so:
hope this helps!
┌─┐I say old chap that is a jolly good post!
┴─┴
ಠ_ರೃ
So i still need to add into Block.Java correct? and i can put my recipes in the same file as my block? If that's correct thats cool!
Twitter
Blog
YouTube
all recipes and stuff go in the mod_(whatever) class
really the only thing that should be in your block class is something like this:
Twitter
Blog
YouTube
the reason I put the there is for you to see how to define the stuff within the class :smile.gif:
Twitter
Blog
YouTube
The Maze Adventure Map
http://www.youtube.com/user/Wiz909090
Awesome sounds good, thank you =]
Mind if i send you my code for a look over if I cant get it to work? (via PM) ?
Twitter
Blog
YouTube
I was the same as both of you just over a week ago but now i have made a mod which is quite successful
viewtopic.php?f=25&t=170604
Please Help!
The Maze Adventure Map
http://www.youtube.com/user/Wiz909090
My Website. I make mods for Minecraft and am also making my own game.