3

It seems there will be a NBT tag in minecraft 1.9 that will allow to set custom damage. In the meanwhile, is there a way to do it in previous versions?

1
  • Detect when the player is hit and deal additional damage? Sep 14, 2015 at 15:42

1 Answer 1

4

Yes, you can modify arrow damage with the damage tag of the Arrow entity. This has been present since the power enchantment was added.

E.g.

/summon Arrow ~ ~5 ~ {damage:10}
7
  • 3
    You can use entitydata on a fast clock to set the damage of all arrows in the game (except super-point blank shots). Note: Doing this will override any Power enchantments placed on the bow.
    – MrLemon
    Sep 14, 2015 at 15:51
  • 1
    You could also use stats to detect when someone uses a bow, then change the nearest arrow's damage based on the enchant on the bow they are holding, if power is important Sep 14, 2015 at 15:56
  • Does it mean that I cannot give item arrows with the damage tag?
    – Lionitow
    Sep 14, 2015 at 16:06
  • 1
    @Lionitow Yes, arrow items do not have this tag. There are ways to work around this though. You could use execute on players that have just shot a bow and have these special arrows to change the data of arrows in their immediate vicinity.
    – MrLemon
    Sep 14, 2015 at 16:31
  • @MrLemon Wouldn't that mean an unbuffed player shooting a buffed player could still get the buff?
    – aebabis
    Sep 14, 2015 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .