Launching projectiles without the use of items

Started by Kvngsavage118 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Launching projectiles without the use of items

I am relatively new to mcreator and I am starting to get the hang of basic modding, however I am trying to find a way to launch a custom projectile entity I created without having to hold an item/weapon in order to launch it.  I am trying to make it similar to Orca's Jujutsucraft mod where you can shoot projectiles with a keybind instead of having to use an item.  Another example of what I am trying to reproduce is Cromtakun's Bleach Vibes mod.  Where there is a keybind to alternate between skills and being able to shoot projectiles with a separate keybind without the use of an item.  I would appreciate an explanation on how to do this.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're using the latest…
Thu, 07/27/2023 - 05:20

If you're using the latest version, there should be procedure blocks to fire custom projectiles. (They should be the magenta ones.) You can also specify the velocity of the projectile and position to fire from, and can further customize it by adding custom procedures to the update tick, impact, etc. 

You'd want to make a custom keybind, and have it call a procedure that shoots your custom projectile. If you want another keybind to alternate between abilities, make a player-persistent number variable for your workspace. Whenever you push the keybind to alternate, have it advance this variable by one, or reset it if it maxes out, then use the current number to determine which attack to fire.

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I’m using 2022.3.  Does it…
Fri, 07/28/2023 - 01:19

I’m using 2022.3.  Does it work similarly on there as well?