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

Started by ThePiXeL on Sat, 09/19/2020 - 09:18

Topic category: Help with modding (Java Edition)

Last seen on 09:18, 27. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make locked chests that can be opened with a Key?
Sat, 09/19/2020 - 09:18

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. 

Last seen on 09:16, 27. Oct 2020
Joined Nov 2018
User points:

User statistics:

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