diff --git a/docs/hermes/elements/entity.md b/docs/hermes/elements/entity.md index 163a053..a811b43 100644 --- a/docs/hermes/elements/entity.md +++ b/docs/hermes/elements/entity.md @@ -15,6 +15,9 @@ This element will always be 50 in height and follow the users mouse. > The type of entity to display. > The entity must be a living entity. +`tag` +> The nbt tag of the entity to display. + ## Examples The following example will display a cow. @@ -25,6 +28,7 @@ The following example will display a cow. ## Version History -| Version | Changes | -| ------- | ------- | -| 1.0 | Initial release. | \ No newline at end of file +| Version | Changes | +|---------|------------------------------| +| 1.3 | Allowed for `tag` attribute. | +| 1.0 | Initial release. | \ No newline at end of file diff --git a/docs/hermes/elements/img.md b/docs/hermes/elements/img.md index 52ea65c..7ff63bc 100644 --- a/docs/hermes/elements/img.md +++ b/docs/hermes/elements/img.md @@ -26,21 +26,22 @@ The `` element is used to display an image. > The v coordinate of the image. Defaults to 0. `textureWidth` -> The width of the texture. Defaults to height. +> The width of the texture. Defaults to src width. `textureHeight` -> The height of the texture. Defaults to width. +> The height of the texture. Defaults to src height. ## Examples The following example will display a diamond sword. ```html - + ``` ## Version History -| Version | Changes | -|---------|------------------| -| 1.0 | Initial release. | \ No newline at end of file +| Version | Changes | +|---------|-------------------------------------------------------| +| 1.3 | Changed to use src width and height if not specified. | +| 1.0 | Initial release. | \ No newline at end of file diff --git a/docs/hermes/elements/item.md b/docs/hermes/elements/item.md new file mode 100644 index 0000000..7dee6be --- /dev/null +++ b/docs/hermes/elements/item.md @@ -0,0 +1,35 @@ +--- +displayed_sidebar: hermes + +title: +--- + +# `` : Item + +The `` element is used to display an item. + + +## Attributes + +`id` +> The id of the item to display, in resource location format. Example: `minecraft:diamond_sword`. + +`tag` +> The nbt tag of the ItemStack to display. + +`scale` +> The scale of the item. Defaults to 1.0. + +## Examples + +The following example will display a diamond sword with a scale of 2.0. + +```html + +``` + +## Version History + +| Version | Changes | +|---------|------------------------------| +| 1.3 | Initial release. | \ No newline at end of file diff --git a/sidebars.js b/sidebars.js index 8e93b0e..d697157 100644 --- a/sidebars.js +++ b/sidebars.js @@ -128,6 +128,7 @@ const sidebars = { 'hermes/elements/headings', 'hermes/elements/hint', 'hermes/elements/hr', + 'hermes/elements/item', 'hermes/elements/img', 'hermes/elements/li', 'hermes/elements/ol',