How to make a sword that can remove blocks by right clicking switch functions by shift and scroll wheel

Started by 終界苦力怕 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 make a sword that can remove blocks by right clicking switch functions by shift and scroll wheel

I want to make a right click to eliminate the 1*1*10 blocks in front and switch the function by shfit and scroll wheel.
2. Eliminate 1*5*10 blocks
3. Eliminate 3*10*20
4. Right click to kill the mob with a circle of 10*10 in the center
5. Right click to create a portal to my latitude
6. Right click to teleport 30 blocks forward

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You might be able to check…
Sun, 10/18/2026 - 18:43

You might be able to check which function you want to run using a variable (in the right click procedure), and then manually check to change the abilities by doing some form of logic check with keybinds (in another procedure, maybe every tick the sword is held), though I'm not entirely sure if scrolling itself would work.