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

Active 2 months ago
Joined Apr 2025
Points:
49

User statistics:

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

Active 3 weeks ago
Joined May 2025
Points:
41

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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.

Active 1 month ago
Joined Apr 2025
Points:
192

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 86
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.

Active 2 months ago
Joined Apr 2025
Points:
49

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
thak you all
Mon, 05/05/2025 - 14:55

thak you all