-
Notifications
You must be signed in to change notification settings - Fork 96
Debug powers
Warning
This page is being migrated to the Minicraft Wiki on wiki.gg, so no further updates to the information are made here. If the migration is completed, this page will be deleted.
To access: run the game from a command line with the option "--debug" after the jar name.
Full command to run with debug mode, run in the folder with the jar file:
java -jar (minicraft plus filename).jar --debug
All available optional arguments:
-
--debug
- To enable debug mode in game. -
--savedir
- To use another directory for the game data save other than the default one. -
--fullscreen
- To run the game in full screen on start. -
--debug-log-time
(will be available since 2.2) - To show the time on the logs. -
--debug-log-thread
(will be available since 2.2) - To show the thread of the log. -
--debug-log-trace
(will be available since 2.2) - To show the logs with log level lower than DEBUG. Only available when debug mode enabled. -
--debug-filelog-full
(will be available since 2.2) - To show more details in the file logs.
Be aware that these features are not guaranteed to be stable, and so it is possible that using them could create bugs that cannot appear in normal-mode gameplay.
Features:
-
Press F3 to show a display not unlike Minecraft's own F3 menu. This works outside of debug mode as well.
-
Change game mode with Shift-C for creative, Shift-S for survival, and Shift-T for score mode.
-
Change game tick speed with Shift-Plus(equals key) and Shift-Minus. Shift-0 to reset to default.
-
Pressing the above keys without Shift will have the same 3 effects, but on the player walk speed rather than the game tick speed.
-
Change time of day with 1-4. Daylight works in four sections, and each key sets the time, and therefore lighting, to the beginning of the corresponding section:
1 = darkness to light (midnight to morning)
2 = light ( morning to afternoon)
3 = light to dark (afternoon to night)
4 = dark (night to midnight)
Note that for the first day of the game, before you pass midnight once, it is bright as day in the morning. -
Shift-R will reload the game, and has a different behavior depending on whether you loaded a save file, or created a new world. If you loaded a file last, then the file will be reloaded (though if you saved it will load the saved file). But if it's a newly generated world, then an entirely new world will be generated.
-
Shift-P quickly clears all the player's current potion effects.
-
Shift-H makes the player lose one heart of health.
-
Shift-U, and Shift-D, place a stairs up, and a stairs down respectively, at the player's current position. Note: I think, out of all the other debug features, this is most likely to cause problems with the game.
-
Ctrl-T reduces the time in score mode to 5 seconds.
-
Alt-T reloads the 9 tiles around you, which doesn't mean much in single player mode, but can reveal glitches in told loading if connected a server.
Open-Source Project | by Minicraft+ Team & Contributors | Minicraft Wiki on wiki.gg