Is there a way to kill flying arrow entity?

Started by QB on

Topic category: Help with Minecraft modding (Java Edition)

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! 

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.

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