How to create procedure to only affect blocks in front of you

Started by rojo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create procedure to only affect blocks in front of you

Hi, I need help. I am new to modding and it has been really difficult to find a way throw what I am trying to do. I am making a mod of swords, but one of my swords called Tessaiga has one ability. The ability basically is that when you right click, I want all the blocks in front of the players to get removed. Like a line of blocks in front of where the player is looking to get removed/ replaced by air. I really don't know how to do it and I will appreciate yall help. Thanks for reading me and I will really appreciate if yall help me. Bye

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure if this was what…
Fri, 04/04/2025 - 12:13

Not sure if this was what you mean,