Can I make a player open their enderchest?

Started by Matthew MBG on Tue, 07/27/2021 - 12:32

Topic category: Help with modding (Java Edition)

Last seen on 08:38, 17. Sep 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can I make a player open their enderchest?
Tue, 07/27/2021 - 13:36 (edited)

I would like to make a player open their enderchest when they execute a command. Is it possible? Using mcreator 2021.1, Forge 1.16.5.

Edited by Matthew MBG on Tue, 07/27/2021 - 13:36
Last seen on 21:51, 20. Aug 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's too manually laborious…
Thu, 07/29/2021 - 17:45

It's too manually laborious to do this.

why?

Well for every enderchest you want to be able to open you would need at least 3 variables and those are  X,Y,Z coords of each enderchest.

Meaning if somehow 3 enderchest that you have placed got destroyed you would need to have another stored, meaning a total of 12 variables that is stored.

Also you would have to find a way to find one that you already placed before mod was installed. 

 

enderchest 1 location = X Y Z

enderchest 2 location = X Y Z

enderchest 3 location = X Y Z

enderchest 4 location = X Y Z

 

I don't know a way with procedure blocks but you could do this with coding I believe.