Is there a way to kill flying arrow entity?

Started by QB on

Topic category: Help with modding (Java Edition)

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to kill flying arrow entity?

So I wanted to make a katana that defect arrows shot by skeletons, the first idea that pops up on my mind is by doing ItemRightClicked, run command: /kill @e[type=arrow,r=4] but when I test it, the command does not kill the flying arrow entity of the skeleton, can you guys help me? Thanks a ton! 

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It'd be [type=arrow,distance…
Sun, 10/11/2020 - 21:04

It'd be [type=arrow,distance=..4]. They removed the "r" thing in 1.13 (I think, some update around then), but you can do the same with the "distance" NBT and adding two periods ".." before the number.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, I'm still working on 1…
Mon, 10/12/2020 - 07:06

Well, I'm still working on 1.12 (extremely outdated) but it still doesn't work for some reasons, thanks anyway, I'll try and figure out some other ways