Jump to content

[1.8.8] Make player view contents of chest at a pos near him


Recommended Posts

Posted

Im actually stuck on this one. 

Intention:

Be able to load a chest´s inventory into a list of ItemStacks. 

Make a player open a chest GUI and close it.

 

Minecraft.getMinecraft().thePlayer.displayGUIChest(((TileEntityChest) Minecraft.getMinecraft().theWorld.getTileEntity(pos)));

is what i found in my IDE, but it doesnt work.

 

Posted

1.8 is no longer supported on this forum due to age.

Please update to a modern version to receive support here.

 

More information on supported versions can be found in the LTS link at the top of every page.

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.