Need help making a special tool destroy a block that nothing else can but don't know how to make the procedure

Started by Cryptic_Fanta on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Feb 2024
Points:
112

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Need help making a special tool destroy a block that nothing else can but don't know how to make the procedure

I have everything I want just how do I make sure the player is holding the pickaxe and if the player is the block will break?  

Active 3 months ago
Joined Aug 2022
Points:
460

User statistics:

  • Modifications: 3
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
i might have a solution, but…
Sun, 02/18/2024 - 00:39

i might have a solution, but I'm not sure i entirely understand... the block is unbreakable like bedrock? if so, you'd go into "when entity swings item" check if entity is a player, if it is, check where the player is looking (Id use raytrace distance x y z) and check if the block there is the block that you want, if so, break it and drop the block, or just replace it with air

Active 1 year ago
Joined Feb 2024
Points:
112

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
well I mean like if the…
Sun, 02/18/2024 - 00:45

well I mean like if the player is holding the pickaxe and right clicks the block it will break thats the part I don't know how to do