Hey im creating a mod where there is a block and when you step on it you fly in the air. Im fine with that and its working perfectly however im trying to create a pair of boots to go along with it to stop fall damage but i dont know how to code the stop fall damage part. here is what I have for it.
code:
package net.minecraft.src;
public class mod_DropShoes extends BaseMod {
public static final Item DropShoes = (new ItemArmor(159, 1, 5, 3)).setItemName("DropShoes");
public String Version(){
return "1.7.3";
}
public mod_DropShoes()
{
DropShoes.iconIndex = ModLoader.addOverride("/gui/items.png", "/DropShoes.png");
ModLoader.AddName(DropShoes, "Drop Shoes");
ModLoader.AddRecipe(new ItemStack(DropShoes, 1), new Object[] {
"# #", "# #", Character.valueOf('#'), Block.obsidian
});
}
}
Please can someone help. Thanks!
P.S. Im not very good at coding because im 13! :tongue.gif:
Hey im creating a mod where there is a block and when you step on it you fly in the air. Im fine with that and its working perfectly however im trying to create a pair of boots to go along with it to stop fall damage but i dont know how to code the stop fall damage part. here is what I have for it.
code:
package net.minecraft.src;
public class mod_DropShoes extends BaseMod {
public static final Item DropShoes = (new ItemArmor(159, 1, 5, 3)).setItemName("DropShoes");
public String Version(){
return "1.7.3";
}
public mod_DropShoes()
{
DropShoes.iconIndex = ModLoader.addOverride("/gui/items.png", "/DropShoes.png");
ModLoader.AddName(DropShoes, "Drop Shoes");
ModLoader.AddRecipe(new ItemStack(DropShoes, 1), new Object[] {
"# #", "# #", Character.valueOf('#'), Block.obsidian
});
}
}
Please can someone help. Thanks!
P.S. Im not very good at coding because im 13! :tongue.gif:
Being 13 might not have anything to do with it.
You're certainly better than me :laugh.gif:
Rollback Post to RevisionRollBack
I like turtles.
Kerbals, kerbals, everywhere, where they stop, I don't care!Kerbal Space Program
code:
Please can someone help. Thanks!
P.S. Im not very good at coding because im 13! :tongue.gif:
Being 13 might not have anything to do with it.
You're certainly better than me :laugh.gif:
Kerbals, kerbals, everywhere, where they stop, I don't care!Kerbal Space Program
No sorry
Thanks! i mostly copy and pasted this code though lol :smile.gif: