How would I create a laser beam of sorts

Started by Highdweller69 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I create a laser beam of sorts
Sun, 04/03/2022 - 16:20 (edited)

Alright, so basically, I want to do make some sort of laser, I have messed about a bit and all I found out how to do is check if you're looking at a block. I can get the direction of the block but idk how to interact with it, as if it checks: "Is <Event/target  entity> looking at a block with raytrace distance (5) fluid mode [ANY] block mode [OUTLINE]", and if so Explode at x: <x position of block at <Look X position of <Event/target  entity> with raytrace distance (5) fluid mode [ANY] block mode [OUTLINE]>> and so on for x, y, and z. How would I do this? Also, could I do something similar with Entities? so locate them and for example damage them with a custom damage thingy.

Edited by Highdweller69 on Sun, 04/03/2022 - 16:20