Skip to content

Commit 02f91d0

Browse files
committed
Fix wikitext formatting
1 parent 01bdb8a commit 02f91d0

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

src/main/resources/functionDocs/get_itemmeta

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@ From 1.21.4+: "custom_model_data" for anything other than a single float.
2929
* '''flags''' : (array) Flags used to hide meta in the item tooltip: %ITEM_FLAGS%.
3030
* '''repair''' : (int) The additional cost to repair or combine this item in an anvil.
3131
* '''modifiers''' : (array) An array of attribute modifier arrays (or null).
32-
* (associative array)
33-
* '''attribute''' : (string) One of %ATTRIBUTES%.
34-
* '''operation''' : (string) One of %OPERATIONS%.
35-
* '''amount''' : (double) The value used in the modifier operation.
36-
* '''id''' : (string) An item can only have one modifier with the same id.
37-
* '''slot''' : (string) Possible slots are %SLOTS% or one of the slot groups %SLOTGROUPS%.
32+
** (associative array)
33+
*** '''attribute''' : (string) One of %ATTRIBUTES%.
34+
*** '''operation''' : (string) One of %OPERATIONS%.
35+
*** '''amount''' : (double) The value used in the modifier operation.
36+
*** '''id''' : (string) An item can only have one modifier with the same id.
37+
*** '''slot''' : (string) Possible slots are %SLOTS% or one of the slot groups %SLOTGROUPS%.
3838
* '''tags''' : (associative array) Custom tags used by plugins (or null).
39-
* '''<custom_key>''' : (associative array) Each tag's key is namespaced (e.g. "commandhelper:mytag").
40-
* '''type''' : (string) Possible types: %TAG_TYPES%.
41-
* '''value''' : (mixed) A valid value for the given tag type.
39+
** '''<custom_key>''' : (associative array) Each tag's key is namespaced (e.g. "commandhelper:mytag").
40+
*** '''type''' : (string) Possible types: %TAG_TYPES%.
41+
*** '''value''' : (mixed) A valid value for the given tag type.
4242
The "CanPlaceOn" tag for blocks and "CanDestroy" tag for tools in adventure mode are not yet supported.
4343
|-
44-
| Damageable Items
44+
! Damageable Items
4545
|
4646
* '''damage''' : (int) The amount of damage on the item. 0 is undamaged. Maximum is determined by each item type's max durability.
4747
* '''unbreakable''' : (boolean) Whether or not the item can be damaged.
4848
|-
4949
! Armor
5050
|
5151
* '''trim''' : (associative array) Defines an armor trim. (MC 1.20+)
52-
* '''pattern''' : Pattern can be %TRIM_PATTERNS%.
53-
* '''material''' : Material can be %TRIM_MATERIALS%.
52+
** '''pattern''' : Pattern can be %TRIM_PATTERNS%.
53+
** '''material''' : Material can be %TRIM_MATERIALS%.
5454
|-
5555
! AxolotlBucket
5656
|
@@ -60,9 +60,9 @@ The entity's custom name is derived from the item "display" string. All other ax
6060
! Banners
6161
|
6262
* '''patterns''' : (array) An array of pattern associative arrays for each layer.
63-
* (associative array)
64-
* '''color''' : One of %DYE_COLORS%.
65-
* '''shape''' : One of %PATTERN_SHAPES%.
63+
** (associative array)
64+
*** '''color''' : One of %DYE_COLORS%.
65+
*** '''shape''' : One of %PATTERN_SHAPES%.
6666
|-
6767
! Bee Hives/Nests
6868
|
@@ -72,8 +72,8 @@ Stored Bee NBT is not yet supported.
7272
! BlockData
7373
|
7474
* '''blockdata''' : (associative array) Block data, also known as block states in vanilla, like is returned from get_blockdata() (or null).
75-
* '''block''' : (string) Block material name
76-
* '''<state_name>''' : (int, boolean, string) The state value.
75+
** '''block''' : (string) Block material name
76+
** '''<state_name>''' : (int, boolean, string) The state value.
7777
Only returns specified states as of 1.20.6. Prior versions return all states. Can only set specific states without defaults as of 1.21.3.
7878
|-
7979
! Books
@@ -89,11 +89,11 @@ As pages are plain text, they do not yet support some advanced text components.
8989
* '''brewtime''' : (int) The amount of time left in ticks before brewing completes.
9090
* '''fuel''' : (int) The amount of fuel left.
9191
* '''inventory''' : (associative array) Defines items in each slot
92-
* '''fuel''' : (item array) The item that will consumed when brewing stand fuel is empty. Typically blaze powder or null.
93-
* '''ingredient''' : (item array) The top slot item ingredient or null.
94-
* '''leftbottle''' : (item array) Bottle slots are typically a type of potion or null, but can also be a glass bottle.
95-
* '''middlebottle''' : (item array)
96-
* '''rightbottle''' : (item array)
92+
** '''fuel''' : (item array) The item that will consumed when brewing stand fuel is empty. Typically blaze powder or null.
93+
** '''ingredient''' : (item array) The top slot item ingredient or null.
94+
** '''leftbottle''' : (item array) Bottle slots are typically a type of potion or null, but can also be a glass bottle.
95+
** '''middlebottle''' : (item array)
96+
** '''rightbottle''' : (item array)
9797
|-
9898
! Bundle
9999
|
@@ -117,10 +117,10 @@ The remaining tags are not yet supported.
117117
! Decorated Pots
118118
|
119119
* '''sherds''' : (associative array) Pottery sherds for each side of the decorated pot.
120-
* '''front''' : (string) Can only be a sherd material name or brick if empty.
121-
* '''back''' : (string)
122-
* '''left''' : (string)
123-
* '''right''' : (string)
120+
** '''front''' : (string) Can only be a sherd material name or brick if empty.
121+
** '''back''' : (string)
122+
** '''left''' : (string)
123+
** '''right''' : (string)
124124
* '''item''' : (associative array) An item array for the stack contained in the decorated pot, or null if empty. (MC 1.20.4+)
125125
|-
126126
! Enchanted Books
@@ -130,26 +130,26 @@ The remaining tags are not yet supported.
130130
! Firework Star
131131
|
132132
* '''effect''' : (associative array) A firework star effect that can be used to craft fireworks
133-
* '''flicker''' : (boolean) Whether the sparks twinkle and pop. (default: false)
134-
* '''trail''' : (boolean) Whether the sparks leave particle trails. (default: false)
135-
* '''type''' : (string) One of %FIREWORK_TYPES%. (default: BALL)
136-
* '''colors''' : (array) The starting colors of the sparks as multiple color arrays. (can use color names; can be set to one color) (default: WHITE)
137-
* '''fade''' : (array) The ending colors of the sparks as multiple color arrays. (can use color names; can be set to one color)
133+
** '''flicker''' : (boolean) Whether the sparks twinkle and pop. (default: false)
134+
** '''trail''' : (boolean) Whether the sparks leave particle trails. (default: false)
135+
** '''type''' : (string) One of %FIREWORK_TYPES%. (default: BALL)
136+
** '''colors''' : (array) The starting colors of the sparks as multiple color arrays. (can use color names; can be set to one color) (default: WHITE)
137+
** '''fade''' : (array) The ending colors of the sparks as multiple color arrays. (can use color names; can be set to one color)
138138
|-
139139
! Firework Rockets
140140
|
141141
* '''firework''' : (associative array) A firework rocket's attributes.
142-
* '''strength''' : (int) How long in seconds the rocket will last. (-1 for instant detonation)
143-
* '''effects''' : (array) Multiple firework star effect arrays. (see Firework Star above)
142+
** '''strength''' : (int) How long in seconds the rocket will last. (-1 for instant detonation)
143+
** '''effects''' : (array) Multiple firework star effect arrays. (see Firework Star above)
144144
|-
145145
! Furnaces
146146
|
147147
* '''burntime''' : (int) The amount of time left in ticks before the furnace extinguishes.
148148
* '''cooktime''' : (int) The amount of time in ticks the item has been cooking for.
149149
* '''inventory''' : (associative array) Defines items in each slot
150-
* '''result''' : (associative array) The resulting smelted item, or null.
151-
* '''fuel''' : (associative array) The item stack that will be consumed when "burntime" reaches zero, or null.
152-
* '''smelting''' : (associative array) The current item stack being smelted, or null.
150+
** '''result''' : (associative array) The resulting smelted item, or null.
151+
** '''fuel''' : (associative array) The item stack that will be consumed when "burntime" reaches zero, or null.
152+
** '''smelting''' : (associative array) The current item stack being smelted, or null.
153153
|-
154154
! GoatHorns
155155
|
@@ -166,17 +166,17 @@ The remaining tags are not yet supported.
166166
! Leather Armor
167167
|
168168
* '''color''' : (associative array) An RGB color array for the dye in the leather armor.
169-
* '''r''' : (int) Red value ranging from 0 to 255
170-
* '''g''' : (int) Green value
171-
* '''b''' : (int) Blue value
169+
** '''r''' : (int) Red value ranging from 0 to 255
170+
** '''g''' : (int) Green value
171+
** '''b''' : (int) Blue value
172172
|-
173173
! Filled Maps
174174
|
175175
* '''mapid''' : (int) The unique id for a map on the server.
176176
* '''color''' : (associative array) An RGB color array for the ink used on the map item.
177-
* '''r''' : (int) Red value ranging from 0 to 255
178-
* '''g''' : (int) Green value
179-
* '''b''' : (int) Blue value
177+
** '''r''' : (int) Red value ranging from 0 to 255
178+
** '''g''' : (int) Green value
179+
** '''b''' : (int) Blue value
180180
|-
181181
! Player Heads
182182
|
@@ -188,21 +188,21 @@ The remaining tags are not yet supported.
188188
|
189189
* '''potiontype''' : (string) The base potion type, which can be one of: %POTION_TYPES%. (MC 1.20.6+)
190190
* '''base''' : (associative array) Legacy base potion effect. This was used prior to MC 1.20.6 and is converted in later versions. Use "potiontype" on later versions.
191-
* '''extended''' : (boolean)
192-
* '''upgraded''' : (boolean)
193-
* '''type''' : (string)
191+
** '''extended''' : (boolean)
192+
** '''upgraded''' : (boolean)
193+
** '''type''' : (string)
194194
* '''potions''' : (associative array) A list of effects that get applied with this potion.
195-
* '''<effect_name>''' : (associative array)
196-
* '''id''' : (int) Legacy effect id. Only used if potions array is not associative.
197-
* '''strength''' : (int) The level of the potion effect, starting with zero. (default: 0)
198-
* '''seconds''' : (int) The number of seconds the effect lasts for. (default: 30)
199-
* '''ambient''' : (boolean) Whether the particles are more transparent. (default: false)
200-
* '''particles''' : (boolean) Whether the particles are visible at all. (default: true)
201-
* '''icon''' : (boolean) Whether the effect icon is visible for the player. (default: true)
195+
** '''<effect_name>''' : (associative array)
196+
*** '''id''' : (int) Legacy effect id. Only used if potions array is not associative.
197+
*** '''strength''' : (int) The level of the potion effect, starting with zero. (default: 0)
198+
*** '''seconds''' : (int) The number of seconds the effect lasts for. (default: 30)
199+
*** '''ambient''' : (boolean) Whether the particles are more transparent. (default: false)
200+
*** '''particles''' : (boolean) Whether the particles are visible at all. (default: true)
201+
*** '''icon''' : (boolean) Whether the effect icon is visible for the player. (default: true)
202202
* '''color''' : (array) An RGB color array for the tint of the potion item.
203-
* '''r''' : (int) Red value ranging from 0 to 255
204-
* '''g''' : (int) Green value
205-
* '''b''' : (int) Blue value
203+
** '''r''' : (int) Red value ranging from 0 to 255
204+
** '''g''' : (int) Green value
205+
** '''b''' : (int) Blue value
206206
|-
207207
! Suspicious Stew
208208
|

0 commit comments

Comments
 (0)