I want my item to launches the player forward and damage every entity on it's way

Started by pizza maid on

Topic category: Help with modding (Java Edition)

Last seen on 08:43, 26. Aug 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want my item to launches the player forward and damage every entity on it's way

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

Last seen on 03:20, 13. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so you want to make a ram…
Fri, 08/09/2024 - 04:04

so you want to make a ram ability/

Last seen on 08:43, 26. Aug 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes
Mon, 08/26/2024 - 08:43

yes

Last seen on 05:39, 13. Sep 2024
Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add the code below to the…
Mon, 08/26/2024 - 11:39

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.