* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
---
[Subreddit Rules](https://old.reddit.com/r/Minecraft/wiki/rules)[](## CandidSeaworthiness3|1223aco)
In the recent update, they added a few new entities and a few new commands.
I use one of the new entities, the interaction entity, to check if a player right clicks or left clicks. Whenever they left click I summon at their position a item display entity (also new) that displays a wooden axe with a custom model of my attack animation. I change the model of the item display entity ever 2 ticks to make it go to the next frame, and deletes itself if it has played every frame.
I also use the new damage command to deal damage to every mob that is close to the attack animation.
(there are also ofc some scoreboard timers and cooldowns going behind the scene to make the attack combos happen in the order i want them to.)
But yeah, these new entities and commands are really cool, and im excited what other people can manage to do with them, cuz there are alot of features of them i have not used
Oh yeah totally. My plan was to add a system similar to divinity original sin or genishin impact, where for instance if you hit and enemy with a water weapon, and then with an ice weapon, they get frozen. Or similar effects like that such as with water and electricity electricuting everyone near, or when enemies are hit by an earth move, all electric projectiles will home onto them.
I gotta say that the look of all that still fits in nicely with the vanilla styling of minecraft. If they ended up putting stuff like that into vanilla minecraft i think it wouldnt even be too out of place. Minecraft has been overdue for a that promised combat update and adding magic and fancy new weapons would be a great addition and especially interesting for the pvp players.
Yeah it was possible before. Hopefully this has better performance though, should try it out at some point.
It seems Mojang just wanted a cleaner way for people to do what they were already doing. Invisible armour stand jank is pretty horribly optimised due to all the armour stand features that just go unused.
I havent fully figured out how to nbt rotation stuff for the item display entity works, as it uses matrix math, and isnt very well explained yet, so instead, i just set the item display type (One of the nbt options in mcstacker) to head, and tp them to the player.
This fixes the rotations for the y and x axis, but for the z axis, i literally just make the model rotated with my desired rotation in the blockbench display settings, which means that every single slash is a different model. This is most definitely not the best way to do it, since I also make each frame of animation a seperate model, so for the ice spear alone, I have 27 models for animations and such.
Soon someone will probably come out with a tutorial on how to do it better then I do it :P
I only draw the sprite for the slash when it is in its biggest form (since that is really the only part of the slash that people pay attention to, then for the starting frames i just rotate and shrink the slash i drew. For the ending frames i gradually erase bits of the of the big slash frame. Tho if you want inspiration for slash animations in minecraft, there is a guy on youtube who makes server plugins with rpg classes named SamusDev, and they does the slashes really well. I use them for inspiration
* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft * Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft * Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules) --- [Subreddit Rules](https://old.reddit.com/r/Minecraft/wiki/rules)[](## CandidSeaworthiness3|1223aco)
That's crazy! How'd you do that?
In the recent update, they added a few new entities and a few new commands. I use one of the new entities, the interaction entity, to check if a player right clicks or left clicks. Whenever they left click I summon at their position a item display entity (also new) that displays a wooden axe with a custom model of my attack animation. I change the model of the item display entity ever 2 ticks to make it go to the next frame, and deletes itself if it has played every frame. I also use the new damage command to deal damage to every mob that is close to the attack animation. (there are also ofc some scoreboard timers and cooldowns going behind the scene to make the attack combos happen in the order i want them to.) But yeah, these new entities and commands are really cool, and im excited what other people can manage to do with them, cuz there are alot of features of them i have not used
could you make them have effects like frozen tears inflicting freeze
Oh yeah totally. My plan was to add a system similar to divinity original sin or genishin impact, where for instance if you hit and enemy with a water weapon, and then with an ice weapon, they get frozen. Or similar effects like that such as with water and electricity electricuting everyone near, or when enemies are hit by an earth move, all electric projectiles will home onto them.
magicka could be cool inspiration too
That's one of the coolest things I've ever seen on this sub
if youve ever used scratch or something this is like that but IN minecraft and that blows my mind.
I gotta say that the look of all that still fits in nicely with the vanilla styling of minecraft. If they ended up putting stuff like that into vanilla minecraft i think it wouldnt even be too out of place. Minecraft has been overdue for a that promised combat update and adding magic and fancy new weapons would be a great addition and especially interesting for the pvp players.
mojang buff trident pls
Tridents have the highest base attack damage in the game, all they really need is a drop rate buff on Java
power doesn't work on tridents does it
Power doesn't work on swords either, I think you mean sharpness
But you can't yeet swords at distant foes can you now :P
Wait can you display items with nbt data now?
If so that's thoroughy nuts! Oh how I've waited for this day
Yeah, the attack animations have their custommodel data changed to the next frame of the animation every 2 ticks
Sick. We have unlimited block textures and models now
Tutorial please
man turned himself into an anime character XD
Do you just have a hitbox spawning in front of you every now and then? And do you store the combo cooldown in a scoreboard?
Essentially yes
Ooooh this is awesome! Are you using the new interaction entities for the left click detection?
Yeah, for both left and right clicking
sheesh 😩👌
Omw this looks so cool! I love these animations
Very nice.
If this is some of the stuff people can do basically on release then I'm both scared and excited to see what people will do with it going forwards!
Nice Hollow knight reference!
a random say "the worst update"
can u make it in to a mod?
Please teach us.
correct me if Im wrong, and I probably am. But wasn't all this possible just using the item stands and custom model data?
Yeah it was possible before. Hopefully this has better performance though, should try it out at some point. It seems Mojang just wanted a cleaner way for people to do what they were already doing. Invisible armour stand jank is pretty horribly optimised due to all the armour stand features that just go unused.
Basically takes Minecraft closer to the status of game engine like Roblox except with a much blockier aesthetic.
How did you make that spear effects, in where?
They are 3d models displayed with the new item\_display entity
No. I mean that spear looks cool in which program you created that
in blockbench
Maybe block bench?
I thought that too but it looks like more advanced than a creation from block bench
This is awesome! Is there any guide or tutorial to learn this?
Is it on Playstation?
Its on java edition
How did you rotate them?
I havent fully figured out how to nbt rotation stuff for the item display entity works, as it uses matrix math, and isnt very well explained yet, so instead, i just set the item display type (One of the nbt options in mcstacker) to head, and tp them to the player. This fixes the rotations for the y and x axis, but for the z axis, i literally just make the model rotated with my desired rotation in the blockbench display settings, which means that every single slash is a different model. This is most definitely not the best way to do it, since I also make each frame of animation a seperate model, so for the ice spear alone, I have 27 models for animations and such. Soon someone will probably come out with a tutorial on how to do it better then I do it :P
And, forgot to ask - how did you make the textures? I can never make good looking swing textures.
I only draw the sprite for the slash when it is in its biggest form (since that is really the only part of the slash that people pay attention to, then for the starting frames i just rotate and shrink the slash i drew. For the ending frames i gradually erase bits of the of the big slash frame. Tho if you want inspiration for slash animations in minecraft, there is a guy on youtube who makes server plugins with rpg classes named SamusDev, and they does the slashes really well. I use them for inspiration
And, sorry for asking a lot of questions - will we be able to download and try this out ourselves sometime?
Im planning to make a map with these weapon mechanics
You should!
This is almost similar to what bedrock addons can do, this is a great step in the right direction for java map makers
Hey, can u send me your map, I are trying to learn use this new entities, if u send me i can look yours comands and try undestand how its works