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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Its working now and I'm not sure why. It still doesn't say it's using the launch args in the console but my memory utilization in the gui says otherwise so its all good for now. Thanks for the help and if i manage to narrow down what fixed it ill post it here in case someone has the same problem in the future.
    • It still launches without listening to the launch args. I have done a fresh install of windows, custom file paths and several versions of java. None of them change anything
    • I'm making a custom modpack to play with my brothers on a LAN world and have them download the exact same modpack. When I load into the world the first thing I notice is extreme block update and entity lag. Here's the curseforge modpack profile code: x-Ks0X75 Here's the link to the spark profile I ran for a bit: https://spark.lucko.me/8DGqRZRYel Could someone let me know which mod(s) are causing the issue? Seems like one or more datapacks are looping a function. I'd also really appreciate tips on the performance mods I'm using and if there are any conflicts/redundancies. Mod suggestions are also more than welcome for performance. How does LAN hosting compare to server hosting in a performance sense?
    • Make a test just with  java -Xmx6G @libraries/net/minecraftforge/forge/1.20.1-47.4.0/win_args.txt %* pause If there is no change, directly set the java path in your script 1.20.1 requires Java 17 Download and install this version: https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-64-bit&package=jdk#zulu Then update the script to: "C:\Program Files\Zulu\zulu-17\bin\javaw.exe" -Xmx6G @libraries/net/minecraftforge/forge/1.20.1-47.4.0/win_args.txt %* pause  
    • @echo off REM Forge requires a configured set of both JVM and program arguments. REM Add custom JVM arguments to the user_jvm_args.txt REM Add custom program arguments {such as nogui} to this file in the next line before the %* or REM  pass them to this script directly java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.4.0/win_args.txt %* pause  
×
×
  • Create New...

Important Information

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