How to create a raytrace gun

Started by Thebetter_choco10 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create a raytrace gun

I am trying to make a gun that shoots when you right click that uses raytrace to detect if there is an entity or player in that line to damage them but i can only detect if im looking at a block is there any way to fix this? i have looked at all the videos and didnt see one that worked