How to make a sword that teleports you where you are looking but stops if you hit a block (Like AOTE)

Started by DuckyGK on

Topic category: Help with Minecraft modding (Java Edition)

Last seen on 21:15, 24. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a sword that teleports you where you are looking but stops if you hit a block (Like AOTE)

So basicly the title says it all, I want a sword that teleports you 8 blocks or until you reach a block that you cant pass through. I know there is probably a very simple way to do this but I just started coding so need some help. Thanks! (Also I am using the fabric generator mod if that matters)