Get damages done to a block

Discussion in 'Plugin Development' started by r0w, May 2, 2012.

Thread Status:
Not open for further replies.
  1. Offline



    I'm looking on how to can I get the damages done by a player to a block. This is to make a block with, let's say, 1000 HP and everytime someone hits it with a sword, arrow its HP will decrease.

    Not sure this is possible, or maybe do I've to calculate damage of every action, check if if he's helding a sword and says it makes 50 hp damage.

    This is for a small plugin that will reward the first team to destroy their block.

    Thanks :)
  2. Offline


    I think you'll have to calculate and track the damage yourself.
  3. Offline


    No other way? Maybe can I make an NPC with no collision? If there's collision players will be able to push it :\
Thread Status:
Not open for further replies.

Share This Page