I have summoned 100000 items and now I can't enter my world... What can I do? Is there any way to kill all entities inside it?
You could make a (local) server and excute the kill command using the console.
Download the server JAR for your version (this can be found on the Minecraft Wiki, just search up the version number you're using, and download the server jar from the sidebar)
Make a new folder in a place that you'll remember (like your Desktop), and copy the server JAR here.
Enable file name extensions in Windows Explorer (top bar in view section), and create a new text file.
Rename said text file to
If you haven't already done so, install Java from java.com
Click rename on the server jar file, and copy the full name of it. Then click off it.
Right-click the start.bat file and click on Edit. Then type this into it:
java -Xmx1024M -Xms1024M -jar server.jar (replace server.jar with the name of the jar file you downloaded.
Go to your minecraft world saves folder (usually:
%appdata%\.minecraft\saves), then copy the world (whole folder) with all the items into the folder on your desktop that you made earlier.
Rename the world folder that you copied to
Double-click the start.bat file, you will be prompted to edit a file called
eula.txtand replace "false" with "true", do that
Save and close the eula.txt file and then run the start.bat file again, wait a few moments, then once it says "Preparing Spawn Area: 100%", you should be able to type the command to remove the entities.
kill @e[type=minecraft:item]into the command window with the server console.
killinto the console.
Copy the world folder back to your Minecraft saves directory (as shown in step 8), rename it if you wish.
Test to see if the world works correctly (it should have
worldwritten in grey text below the name.
If it works, you can delete the folder on your desktop as well as the broken world folder.
Hopefully this will work.
You would have to delete the world to effectively kill everything, unless they are hostile mobs. Then turning the game mode to peaceful might work. I’m not sure mobs spawned by command blocks or commands are effected by this code, though. Once again, this will only work if some or the majority of the entities are hostile mobs, and might not even then.