How could I make a block disappear when right clicked with a specific item?

Started by fryguythe777th on

Topic category: Help with modding (Java Edition)

Last seen on 15:50, 28. Jun 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could I make a block disappear when right clicked with a specific item?

I am attempting to make a locked block as a barrier to a boss fight and I was wondering if there was a way to activate the "On block right clicked" trigger with only one specific item. I understand how to make things disappear, but I don't want the player to enter the arena without going to another structure and getting the key. Any help would be appreciated.

Last seen on 01:18, 28. Mar 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello fryguythe777th   >…
Mon, 03/29/2021 - 04:03

Hello fryguythe777th

 

> Here < this screenshot may help you.

 

*Note* This is assuming the custom block your using has a very high hardness or is completely unbreakable (like bedrock)

because if its not, player will be able to break the block, so as I said you would need to have a very high hardness level (obsidian is 50 hardness, so very high meaning 500+) If its at least this hardness or unbreakable then you should have no worries, the player would have to take minutes or hours to break it.

Last seen on 15:50, 28. Jun 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much! This is…
Wed, 03/31/2021 - 12:01

Thank you very much! This is exactly what I was looking for.

Last seen on 02:18, 3. Mar 2024
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how did you get the  =…
Fri, 07/22/2022 - 19:55

how did you get the  = function for blocks i didnt find it

 

Last seen on 16:20, 16. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fix this with the new…
Sun, 07/02/2023 - 18:43

Fix this with the new version of yellow= block, which is "Is _ the same block as _"