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 MCreator software

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 May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don’t know how to do all…
Sun, 05/04/2025 - 11:33

I don’t know how to do all that fancy stuff, but for the 1*10*1 clear area go into procedures, do when right clicked on block, and type in this code:

Unnecessary long header [when function called]
Destroy block at [X] [Y] [Z]
Destroy block at X Y - 1 Z
Destroy block at X Y - 2 Z

etc.


(I reccomend not doing tp 30 blocks because the user might get stuck in a wall.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For number 6 I think you…
Sun, 05/04/2025 - 13:08

For number 6 I think you would just put "when block right clicked set event target entity location to y+1 (so they don't spawn in a block) x+30, Z.