Jump to content

DHerls

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DHerls's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I am trying to add an armor set so that if the player has it on, they can break any block with any pickaxe. I found the canHarvestBlock method in the ForgeHooks class. I was wondering how I could add another check to see if the player is wearing the armor. Thanks in advance for any help.
  2. Thanks for that, but that only registers when I'm swinging at an entity. I was looking for something that happens whenever I swing the sword, regardless of what I'm pointing at. Thank you for your help though.
  3. Hi, I am trying to make a sword that damages the player when they swing the sword. So far, I have been unable to figure out how to do that. If anyone could help point me in the right direction, that would be great. Thanks! EDIT: I figured out how to check if the player is swinging the sword. You use the method @Override public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack) { //What you want here return false; } in the new sword class. However, I still need to figure out how to damage the player.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.