I’m trying to make a cool spell but i dont know how to do hit…

Started by tenmanguyen-roques on

Topic category: Help with MCreator software

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I’m trying to make a cool spell but i dont know how to do hit…

I'm trying to create an entity that appears when you crouch and right-click with a scepter. When it appears, it doesn't move, and it fires a laser before despawning. But no matter how many tutorials I search for, I can't get it to work. If you could help me by sending me a screenshot of the procedure, that would be awesome. Thanks.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well you make a procedure on…
Fri, 03/27/2026 - 22:35

Well you make a procedure on your scepter; on right clicked (entity pos): if entity is crouching, spawn entity [laser entity]. Your laser entity having nothing in ai and goals. You can also add a tick update to it to override x y z motion vectors to 0. You can also make the entity face the direction you are looking, or even the exact block you are looking at using the ray trace procedure block. As for it firing a laser idk how you want to do it but I'll assume you have that under control. On the same tick update you can make an nbt countdown timer. On entity spawn the nbt is set at ~200. Then on each tick -1, and check if nbt=0. After 200 ticks nbt=0, if so despawn entity. There is no procedure which simply solves your problem, everything depends on the situation.