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

Started by GoldenDarius on Fri, 11/20/2020 - 20:36

Topic category: Advanced modding

Last seen on 15:43, 4. Dec 2020
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 16:29, 27. Jan 2021
Joined Feb 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 15:43, 4. Dec 2020
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 17:57, 8. Jan 2021
Joined Dec 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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