Data Packs Simple

Piercing Arrows Can Go Though Blocks

  • 1.9k views 1 today
  • save_alt 169 downloads
Compatibility
Minecraft 1.14
to version
Minecraft 1.19
Changes include
  • Functions
  • 15
  • 8
  • 8
AKA__Fox
Lvl 36Artisan Fox Nerd
23
With this data pack, arrows shot from crossbows enchanted with piercing can go through blocks.
The higher the level of piercing is, the more blocks the arrow can go through.

You can use the command /function pierce:__help__ to get help.

If you find any bugs, report it to me, plz.

More like this

  Have something to say?

bunnua
07/21/2024 3:06 pm
Level 30 : Artisan Pokémon
history
can u do data pack like that, but trough only leaves?
1
calebchan
09/30/2022 12:57 am
Level 53 : Grandmaster Meme
Hi, I am making a fletching table/projectile overhaul datapack! My original version is here. I'm making a new one which you can find in my GitHub repo here.



I've already implemented numerous additions, like a custom Fletching Table GUI, TNT Firework Rockets that explode on impact, TNT Target blocks that explode on being shot like red barrels, etc.

I have altered arrows shot from Power bows to instead increase the initial velocity of arrows; I saw that online somewhere, but I can't find the datapack page anymore.

I would like to also implement your piercing-through-blocks idea. It's smart. So I would like to ask for your permission, as well as how to give you credit since this is entirely your concept. If not, then that's alright, I've loads of other features in this datapack anyways!

Also. There's a bug – if a mob is standing very close against the block, the piercing arrow doesn't hit it, but goes through it too. I would suspect the solution is to decrease the distance of each step in the raycast loop, but I'm not too sure!
1
AKA__Fox
09/30/2022 12:29 pm
Level 36 : Artisan Fox Nerd
You can surely use this idea, I'm glad that my pack can help owo)b
And about that bug, I knew it before I released this data pack, but I don't know how to fix it perfectly, because even if I decrease the distance of each step, the arrow will still be in the hit box of the mob behind the wall and won't hit it if it's close enough.
By the way, your data pack is really cool, I'm looking forward to your new one!
1
calebchan
10/01/2022 10:47 am
Level 53 : Grandmaster Meme
Thank you! How should I credit you? As a Datapack collaborator? I was just gonna ask people to just download your pack alongside mine hahaha

Yeah. So actually I've found that if you stand right up against a dispenser shooting an arrow, it goes through you — the arrow's initial Pos starts in your hitbox, so it doesn't count as a collision, and it just phases through you. It's weird. They really should patch that. But thank you for telling me this, now I know it's an unavoidable bug!
1
AKA__Fox
10/01/2022 1:26 pm
Level 36 : Artisan Fox Nerd
You don't have to credit me specifically, after all, it's not my patent. -w-)b
2
calebchan
10/03/2022 1:20 pm
Level 53 : Grandmaster Meme
Credit will be due where credit is due! ;D I'll put a link to your account in the description
2
Fiercepter
08/03/2022 9:40 pm
Level 1 : New Miner
How many blocks does it go through?
1
AKA__Fox
09/30/2022 12:18 pm
Level 36 : Artisan Fox Nerd
It depends on the level of the enchantment.
1

Welcome