#(Tutorial) Give/Remove custom items with vanilla commands

1 messages · Page 1 of 1 (latest)

lunar edge
#

|| ||

#

While holding the custom item, use the /data get entity <username> SelectedItem command.
You should recieve an output like this:

#

Now, this is way too long to copy from chat, it doesn't even fit on one screen.

The best way to retrieve this information would be using the console and copying it from the log/console output, or using a command block and copying the output.

This is the output I received for my custom item: (it's an insanely long one-line output)

#

You want to copy the information inside of tag: {}. (Best to keep the {} surrounding it)
In this case the output I need is:

lunar edge
# lunar edge

it should look something like this if you've copied the correct information.

*Note: Will not work for all items. Multiple errors may occur. If there is a ' or " inside a string (example: She said, "don't"), you will need to put a \ or \\ in front of it. (Example: She said, \\"don\'t\\"). This will NOT remove the error from the website! Do not worry, continue with the following steps.

#

Now, using that data, you can input it into /minecraft:clear or /minecraft:give
Ex: /minecraft:give cj89898 diamond<data> 1 (If your data is not surrounded by {}, surround it)
Full example: https://paste.helpch.at/deviravoku.rust

lunar edge
#

(Tutorial) Give/Remove custom items with vanilla commands

lunar edge
#

If you need to use this command in a yaml syntax (eg. deluxemenus), you will most likely need to modify your data to fit yaml syntax.
Here is a guide to do so: