Trying to make a pickaxe able to break and drop a command block

Started by GoldenDarius on

Topic category: Advanced modding

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to make a pickaxe able to break and drop a command block
Fri, 11/20/2020 - 21:09 (edited)

I made some custom tools with my own ore. I want the pickaxe to be able to break command blocks and actually drop them. I know there is a way to do it with procedures, but I have no idea how it should work and what category I should select

Edited by GoldenDarius on Fri, 11/20/2020 - 21:09
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's not possible without…
Fri, 11/20/2020 - 21:15

It's not possible without modifying the command block itself, cause the durability of a command block is -1, which is unbreakable.

But you can do something similar using the Player left clicks block, and check if the player has pickaxe and heck the coordinates if it is a command block, and do remove block

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i will see if i can do as…
Fri, 11/20/2020 - 21:34

i will see if i can do as you said, i don't really want to modify the command block's durability, thanks

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what I would do is make it…
Tue, 11/24/2020 - 01:25

what I would do is make it so your pickaxe when swung checks if its a command block and then if true it breaks the block and gives you a command block