Need help making a "wireless chest" block and item

Started by MCpug on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help making a "wireless chest" block and item

I had this idea for a block that is chest and can be opened a closed normal but then if you that a special item and click on the chest it will "connect" to it. Now when you use this now connected item it will open the chest from any distance.

I've gotten the part to the point where the item can connect to the custom chest and will remember the chest's location by saving the chest's coords within it's NBT data. The only problem I am having now is getting the item to actually open the GUI... Just having the item open the chest's gui with the "open qui at" procedure doesn't work because you are too far away and it closes the gui instantly. I've hadn't had any luck on finding anything that's like this anywhere so I've decided to just make my own post.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try creating another chest …
Wed, 01/10/2024 - 01:38

Try creating another chest (or invisible container, or something) near the player, then copying the items around whenever you open or close.