Guardian laser like attack

Started by aoooodi2 on

Topic category: Help with MCreator software

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Guardian laser like attack

Im making a guardian variant and want it to shoot a laser, exactly like the normal one. How can i do this with code?

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Inspecting the game files I…
Sat, 08/05/2023 - 15:05

Inspecting the game files I found that Gaurdian lazers are actually entities. You could make a small 1x1 laser like entity that spawns repeatedly using a formula until it reaches the player and if there is a block in its spawning path or if the player is raising a shield no damage will be taken.