I have done something similar before (with code, not with MCreator). Before I share code I will tell you the process and if you think you can do it I will be happy to help you.
Step 1: Create a Projectile Entity
Step 2: Create an Item
Step 1 and 2 are interchangeable
Step 3: Use RenderRegistry along with Sprite Renderer for your projectile
Step 4: Shoot the projectile (I will provide code for this)
Now you should be able to shoot the projectile from the item.
Step 5: In the onImpact method you will want to add a check if the RayTrace result is of an Entity. Now you can add a variable to the player equal to the entities registry name. Or remove the entity and spawn an ItemEntity will a String NBT value equal to the Entities registry name.
There is more from there. I.e the actual spawning of the entity, I just wanted to give you an idea in case you are up for this endeavor.
I have done something similar before (with code, not with MCreator). Before I share code I will tell you the process and if you think you can do it I will be happy to help you.
Step 1: Create a Projectile Entity
Step 2: Create an Item
Step 1 and 2 are interchangeable
Step 3: Use RenderRegistry along with Sprite Renderer for your projectile
Step 4: Shoot the projectile (I will provide code for this)
Now you should be able to shoot the projectile from the item.
Step 5: In the onImpact method you will want to add a check if the RayTrace result is of an Entity. Now you can add a variable to the player equal to the entities registry name. Or remove the entity and spawn an ItemEntity will a String NBT value equal to the Entities registry name.
There is more from there. I.e the actual spawning of the entity, I just wanted to give you an idea in case you are up for this endeavor.