Can I make a player open their enderchest?

Started by Matthew MBG on

Topic category: Help with modding (Java Edition)

Last seen on 16:21, 21. Feb 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

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