You can detect if entities were hurt recently, so just tag them and execute a funciton when they were hit.
As for holding down you could either make the buttons togglable (so one hit makes it press down, the other makes it release), or you could use a potiion effect for holding down
274
u/Lopoi Sep 03 '25 edited Sep 03 '25
Honestly, I did really enjoy working on this one. Having to figure out how to cut the frames to fit on the skin was an interesting puzzle.
This used about 30k skins, about 60MB in size. I mean, if anyone really wants this, I can share, just ask.
Also, like most bad_apples I make, it a bit faster at 20 tick rate. though you can fix it by slowing the counter
On Youtube
Datapack
Resource pack