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

Started by fryguythe777th on Sat, 03/27/2021 - 17:28

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 6. May 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How could I make a block disappear when right clicked with a specific item?
Sat, 03/27/2021 - 17:28

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 23:33, 5. May 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 23:35, 6. May 2021
Joined Mar 2021
Points:

User statistics:

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