Skip to content

Commit b54427c

Browse files
committed
update examples on NBT usage
1 parent f5e4827 commit b54427c

1 file changed

Lines changed: 63 additions & 16 deletions

File tree

src/main/resources/menu/example.yml

Lines changed: 63 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -381,28 +381,75 @@ test-xp-list-template:
381381
variable:
382382
xp: 10
383383

384-
colored-leather-chestplate: # The order is important: Material (ID) -> NBT -> others
385-
id: leather_chestplate
386-
nbt:
387-
display:
388-
color: 16175144
389-
#nbt: "{display:{color:16175144}}"
390-
name: "&aColored Leather Chestplate"
391-
lore:
392-
- "This is a colored leather chestplate"
384+
colored-leather-chestplate:
393385
position-x: 5
394386
position-y: 4
387+
type: list
388+
child:
389+
new-nbt-usage: # The order is important: Material (ID) -> NBT -> others
390+
id: leather_chestplate
391+
nbt:
392+
dyed_color: 16175144
393+
#nbt: "[dyed_color=16175144]"
394+
name: "&aColored Leather Chestplate"
395+
lore:
396+
- "This is a colored leather chestplate"
397+
- "This is shown on Minecraft 1.20.5 and above"
398+
view-requirement: # This NBT Button only works on 1.20.5 and above
399+
version-check:
400+
version: 1.20.5
401+
old-nbt-usage:
402+
id: leather_chestplate
403+
nbt:
404+
display:
405+
color: 16175144
406+
#nbt: "{display:{color:16175144}}"
407+
name: "&aColored Leather Chestplate"
408+
lore:
409+
- "This is a colored leather chestplate"
410+
- "This is shown on Minecraft below 1.20.5"
411+
395412

396413
custom-model-chestplate: # The order is important: Material (ID) -> NBT -> others
397-
id: leather_chestplate
398-
nbt:
399-
CustomModelData: 104230
400-
#nbt: "{CustomModelData:104230}"
401-
name: "&aCustom Model Chestplate"
402-
lore:
403-
- "This is a custom model chestplate"
404414
position-x: 6
405415
position-y: 4
416+
type: list
417+
child:
418+
higher-nbt-usage: # The order is important: Material (ID) -> NBT -> others
419+
id: leather_chestplate
420+
nbt:
421+
custom_model_data:
422+
floats:
423+
- 104230.0
424+
#nbt: "[custom_model_data={floats:[104230.0]}]"
425+
name: "&aCustom Model Chestplate"
426+
lore:
427+
- "This is a custom model chestplate"
428+
- "This is shown on Minecraft 1.21.4 and above"
429+
view-requirement: # This NBT Button only works on 1.21.4 and above
430+
version-check:
431+
version: 1.21.4
432+
new-nbt-usage: # The order is important: Material (ID) -> NBT -> others
433+
id: leather_chestplate
434+
nbt:
435+
custom_model_data: 104230
436+
#nbt: "[custom_model_data=104230]"
437+
name: "&aCustom Model Chestplate"
438+
lore:
439+
- "This is a custom model chestplate"
440+
- "This is shown on Minecraft 1.20.5 and above"
441+
view-requirement: # This NBT Button only works on 1.20.5 and above
442+
version-check:
443+
version: 1.20.5
444+
old-nbt-usage:
445+
id: leather_chestplate
446+
nbt:
447+
CustomModelData: 104230
448+
#nbt: "{CustomModelData:104230}"
449+
name: "&aCustom Model Chestplate"
450+
lore:
451+
- "This is a custom model chestplate"
452+
- "This is shown on Minecraft below 1.20.5"
406453

407454
potion:
408455
position-x: 7

0 commit comments

Comments
 (0)