Skip to content

Item components cannot be specified in /give #6532

@KabanFriends

Description

@KabanFriends

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump?bytebin=Mzkjk3MGWp

Error log (if applicable)

No response

Bug description

Running /give commands with item components causes the item ID to be read incorrectly. Currently there doesn't seem to be any ways to set item components in EssentialsX's give command.

Steps to reproduce

  1. Type /give @s diamond_sword[minecraft:item_name="Epic Sword"]
  2. Type /give @s diamond_sword 1 {components:{"minecraft:item_name":"Epic Sword"}}

Expected behaviour

Either one of the reproduction steps should give a diamond sword named "Epic Sword"

Actual behaviour

  1. Step 1 causes the item ID to be interpreted as diamond_sword[minecraft:item_name="Epic
  2. Step 2 shows the following error:
    Error: JSON NBT metadata is no longer supported. You must manually convert your defined items to data components. You can convert JSON NBT to data components here: https://docs.papermc.io/misc/tools/item-command-converter
    

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: unconfirmedPotential bugs that need replicating to verify.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions