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 Minecraft modding (Java Edition)

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

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/

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.