Help With A Weapon That's Supposed To Have Ranged And Melee Damage

Started by jran9725 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help With A Weapon That's Supposed To Have Ranged And Melee Damage

I'm very new to MCreator so sorry if this is a stupid question. I'm trying to make a sword that, when right clicked in the air, shoots a beam (something along the lines of a horizontal beacon) that does damage to anything that's in the beam's path. I don't know how I would make the sword have a ranged attack at all, nor do I know how to make the beam. I'm also trying to make another weapon that does the same thing but the beam is red (so if anyone could help with color change too, much appreciated). So what I need to know is how to make a procedure that makes a sword shoot a damage dealing beam and how to set the damage for the beam. Any and all help would be much appreciated. 

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could make a bullet in …
Sun, 05/02/2021 - 17:04

I could make a bullet in "blockbench" is a software that allows you to create models of entities, blocks, items, skins... in a simple way.
I could make a laser (Star Wars)
create a ranged item, this will only be used to introduce a ranged item.
there is a tigger called "on right click in air" create a procedure there, and add "Shoot range item" and you will be able to choose the bullet you added before.
All this without losing the characteristics of your sword.
You can add a "cooldown" in the procedure so that you don't abuse throwing projectiles.