How to create a raytrace gun

Started by Thebetter_choco10 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Oct 2022
Points:
326

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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