Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Java developer tools: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 52: Line 52:


• /test exportthat
• /test exportthat
[[File:Export_subcommands.png|thumb]]


;Test Instance Blocks
;Test Instance Blocks
Line 61: Line 63:
;SNBT Files
;SNBT Files


Structure data that has been exported to an SNBT file is able to be loaded across different worlds. This can be done using a Structure Block or the "/place" command.
Structure data that has been exported to an SNBT file is able to be loaded across different worlds. This can be done using the "/place" command or a Structure Block.


For example, to place a structure that has been exported to an SNBT file named "cookies", the following command can be used:
For example, to place a structure that has been exported to an SNBT file named "cookies", the following command can be used:


• /place template minecraft:minecraft/structure/cookies
• /place template minecraft:minecraft/structure/cookies
[[File:Place_template_snbt.png|thumb]]
[[File:Snbt_structure_block.png|thumb]]


== History ==
== History ==

Latest revision as of 11:08, 8 May 2026

Template:Exclusive

Developer tools are tools used by Minecraft:Mojang Studios developers to develop new features and debug glitches.

Accessible to players

A number of debug tools are available during normal gameplay:

Accessible through debug properties

Template:Main Using special JVM properties (command line arguments when starting the game) many additional debug features can be enabled:

Accessible only through mods

Some features, while part of the code, can only be enabled using Minecraft:mods.

In most cases, mods can achieve this by overriding the IS_RUNNING_IN_IDE flag in the SharedConstants class.

Test Worlds

The "Create Test World" button on the title screen can be used to generate a superflat world that is designed to be used for testing.Template:More info needed The world is set to allow commands and uses Creative as the default gamemode. It also disables the generation of structures, and changes some Minecraft:game rules.<ref>Template:Ytl</ref>

File:Create test world.png
Superflat Preset
minecraft:bedrock,3*minecraft:stone,116*minecraft:sandstone;minecraft:desert
Game rules
advance_time
false
spawn_mobs
false
advance_weather
false

GameTest Exports

The GameTest feature contains a hidden functionality that allows users to export data to an SNBT file.<ref>Template:Ytl</ref>Template:More info needed

Sub-commands

The following sub-commands are available on both singleplayer and multiplayer:

• /test export

• /test exportclosest

• /test exportthese

• /test exportthat

File:Export subcommands.png
Test Instance Blocks

If the functionality is enabled, the "Export Structure" option will appear in the GUI for the Test Instance Block.

File:Test instance block UI export.png
SNBT Files

Structure data that has been exported to an SNBT file is able to be loaded across different worlds. This can be done using the "/place" command or a Structure Block.

For example, to place a structure that has been exported to an SNBT file named "cookies", the following command can be used:

• /place template minecraft:minecraft/structure/cookies

File:Place template snbt.png
File:Snbt structure block.png

History

Template:Empty section

Videos

In the video below, a YouTuber named EightSidedSquare showcased most of the developer tools before they were made available with debug properties.

Template:YT

Navigation

Template:Navbox Java Edition technical

Minecraft:pt:Ferramentas para desenvolvedores Java