How do I make locked chests that can be opened with a Key?

Started by ThePiXeL on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make locked chests that can be opened with a Key?

I know how to make a chest already but I want to know how can I make a "locked" one that can be opened with a certain key. Let's say an "Iron key" that can open an "Iron lock" on a chest. Obviously with different tiers iron,gold,diamond for each specific lock. 

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make the GUI open if item in…
Sat, 09/19/2020 - 12:57

Make the GUI open if item in mainhand = key.