You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This modifier will apply the NBT data to the item.
8
8
9
9
::: warning
10
-
This modifier will reset all item settings. Therefore, It's recommended to order the settings in the following pattern: `ID (Material)`, `NBT`, `other item settings`.
10
+
This modifier will reset all item settings. Therefore, It's recommended to order the settings in the following pattern:
11
+
`ID (Material)`, `NBT`, `other item settings`.
11
12
:::
12
13
13
14
## Format
@@ -24,7 +25,6 @@ custom-model-chestplate:
24
25
id: leather_chestplate
25
26
nbt:
26
27
CustomModelData: 104230
27
-
#nbt: "{CustomModelData:104230}"
28
28
name: "&aCustom Model Chestplate"
29
29
lore:
30
30
- "This is a custom model chestplate"
@@ -36,26 +36,186 @@ colored-leather-chestplate:
36
36
nbt:
37
37
display:
38
38
color: 16175144
39
-
#nbt: "{display:{color:16175144}}"
40
39
name: "&aColored Leather Chestplate"
41
40
lore:
42
41
- "This is a colored leather chestplate"
43
42
position-x: 2
44
43
position-y: 1
45
44
```
46
45
47
-
## Item Component
46
+
## How to set NBT
48
47
49
-
In 1.20.5 and above, Mojang decided to replace NBT with their new Item Component.
50
-
To use Item Component, you can use its square-bracket format `[]` as the value to the modifier.
48
+
This modifier uses a library to convert the YAML settings to a proper SNBT that can be used to apply to the item.
51
49
52
-
For example, for a typical `/give` command like this:
50
+
This will guide the basic of the YAML settings to set the NBT value
51
+
52
+
### Basic Use
53
+
54
+
Let's start with an example. Suppose we want to apply the following NBT:
0 commit comments