Ranged Item Without Projectile required

Started by purppecats123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ranged Item Without Projectile required

Hi, so after 2023.4 came out, i wondered how do you make the new ranged items be able to shoot the projectiles without the projectiles being in your inventory?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would probably just make…
Fri, 12/29/2023 - 13:07

You would probably just make a procedure which, when the item is swung, uses a projectile function to fire a custom projectile of your choice. (Just set the velocities to the x/y/z look angle vectors of the player, multiplied by a whole number or a decimal depending on how much velocity you want the projectile to have.)

The solution by Mindthemoods…
Fri, 12/29/2023 - 16:20

The solution by Mindthemoods is the intended one. Built-in ranged system is a convenience system so one does not need to use procedures for regular "required item" shooting where an inventory scan is needed.

For shooting in any case, use right click trigger of item to launch projectile using procedure blocks in the projectiles procedure blocks section