Posted April 3, 201312 yr Hi all, I made a custom sword, extended of ItemSword, and i would like to know how may i increase its blocking effect when i'm on an armor Position (when you right click). The classic sword blocks small damage, how can i make mine blocks more ? Thanks !
April 3, 201312 yr Add this in your ItemSword class. public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { itemstack.damageItem(1, entityplayer); }
April 3, 201312 yr Author This function is used to know if the item itself is getting damages and has to be broken or not, isn't it ? I'm not sure to understand this function, is this the correct one to make my sword to be used like a shield (i want if i'm using it in armor position, it blocks almost all damages i could take from mobs). Thanks
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.