Started by
pizza maid
on
Topic category: Help with Minecraft modding (Java Edition)
basically I want to make it so that when the player presses the right button with this item it launches him in the direction he is looking and damages every entity in the path, I managed the launch part but I don't know how to make it damage entity on it's path
sorry for bad english because i use google translator
so you want to make a ram ability/
yes
Add the code below to the projectile.
It allows the projectile to penetrate the entity.
Here, a value of 10 means that it penetrates 10 entities.
entityarrow.setPierceLevel((byte)10);
If you don't know where to put it
Find the location where the "entityarrow.set" code is gathered and insert it.