NeoForge icon indicating copy to clipboard operation
NeoForge copied to clipboard

[1.21] Add command for listing data components on the held stack and the applied changes

Open XFactHD opened this issue 1 year ago • 1 comments

This PR adds a debug command for listing the data components of the held item, showing which components were added, modified, removed or left at their default value. The individual lines have tooltips containing further information such as the previous value of a modified entry.

Example of an Oak Planks item spawned in with modified components: grafik

XFactHD avatar Aug 04 '24 21:08 XFactHD

  • [x] Publish PR to GitHub Packages

Last commit published: 3d99daa292fbe6362f82f6b578f3172583c9d1ca.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #1418' // https://github.com/neoforged/NeoForge/pull/1418
        url 'https://prmaven.neoforged.net/NeoForge/pr1418'
        content {
            includeModule('net.neoforged', 'testframework')
            includeModule('net.neoforged', 'neoforge')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr1418.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr1418
cd NeoForge-pr1418
curl -L https://prmaven.neoforged.net/NeoForge/pr1418/net/neoforged/neoforge/21.1.31-pr-1418-data_component_info/mdk-pr1418.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip

To test a production environment, you can download the installer from here.

🚀 This PR has been released as NeoForge version 21.1.24.

neoforged-releases[bot] avatar Aug 25 '24 03:08 neoforged-releases[bot]