Learn about some format tags of the task.

This tutorial is set by the author's setting without permission.

Foreword

Because someone has written the basic method of use, I will briefly introduce how to write the text of this module.

text

When we open the folder of the text analysis library Hermes used by this module and browse the code directory, we can find that the text label it supports is as follows:

Blockquote quotation

This label must be a Text tag. The text tag will be introduced in detail later. First, simply explain that the text tag is the ordinary text tag. You can display the text by text content .

Blockquote is a reference label, similar to> in Markdown.

There is an optional parameter: color, define the color of the small block on the left, and introduce it in the Hint tag below.

The code of the picture above is as follows:

 
Blockquote

Breakline change line

Ordinary changes will not show the picture.

Because changing line does not require parameters and content. If you know HTML or XML, you should understand

 

and

 

It can be used, but for convenience, it is better to use the first way.

Component control

This position of the registered label registered in the warehouse code indicates that it is outdated, so it will not be introduced.

CraftingRecipe synthetic formula

The synthetic formula tag can accept two parameters.One is the ID, specifying the formula ID of the item, this parameter is a must-have; the other is Grid-Width, setting the size of the synthetic table, this parameter is available, it is estimated to be used for module adaptation, such as endless greed.

The picture implementation code above is as follows:

   

The code on the top is implemented as follows:

   

Details detailed

It is a control that can be expanded and contracted.

You can add a variety of control content and even dolls.

Can accept two parameters and are optional.The first is Summary, which is the title of the contraction control; one is Open to control whether it is unfolded by default. If it is not filled, it is the default contraction. The assignment is TRUE.

Not unfold

Expand

The code on the top is implemented as follows:

 

Content

What's more?

Entity entity

Sports tags.It will render the model of the entity, and the physical model will look at the position of your mouse.

The parameters of this label are more complicated.

Can accept seven parameters:

Type: Types of creatures, fill in the id of creatures such as Minecraft: Pig, which is compulsory (Minecraft: Player is not supported).

Tag: Tags of creatures, fill in a NBT Compound. For example, the pig in the picture below is the old label {Age: -23333}, which is available.

Align: The position of alignment, the default is the center center.顺便介绍一下支持的位置:LEFT、TOP 都等同于在控件最小值处渲染,所以如果你在横向渲染的位置填TOP 渲染效果等于LEFT,在竖直渲染的位置填LEFT 渲染效果等于TOP;CENTER,Middle is rendered at the mid -value of the control; Right, Bottom and LEFT, and TOP are opposite, rendering at the maximum of the control.For options.SCALE: The degree of zooming requires a single precision floating point number (Float), so the number of numbers to be filled should be added with a f (small manuscript), such as 5F.For options.

VSHIFT: The vertical direction shifts, the positive value is off the upward deviation, and the negative value is downward.For options.

Height, Width: The layout size of the control will not affect the rendering of the solid model, but it will affect the size of the entire control position and require a float value.For options

The effect of the effect above is as follows:

   

Heading title

It's the title.But it only provides two default heading, one is H1 and the other is H2.Its essence is still a Text tag. For details, please see when introducing Text below.

You can directly replace the # and ## formats of Markdown.

Because it is the TEXT of the Skin, it inherits the shadowed of Text, but the Text default shadowed is true, and the Heading is set to FALSE by default.

 

h1

h2

Normal text

 

adada

Hint tips

Tips, tips tags.

All three parameters are optional:

Title: Title, fill in pure text.

Color: Color, supports hexadecimal colors, formats 0xffffff or #ffffff.

icon: icon, fill in the ID of the item.

Similar to Details, you can also plug in various control content in it.Hint can not fill in the content, but the and lines must be the same or adjacent. If there is a line in the middle, they occupy three lines but there are no content, they will rendering errors;Details, you can't set up a baby Hint.

Right now

  

The implementation code above is:

 

Hint content

Horizontalrule segmentation line

It is an ordinary segmentation line that can accept a optional parameter color, refer to Hint.

Implement code:


Image picture

Image controls make the content rendering more rich, and there are too many parameters!Even all optional parameters!SRC: Picture location, for example, I want to fill in "Textures/Item/Diamond.png", but this seems to only get pictures in Assets/Minecraft.Pack to implement custom pictures.

Background: Background color, when filling in, you need to be in the following format "size and color". There is a space in the middle of the size and color. For example

Border: The frame of the picture, the writing is the same as the background.

Width: The width of the item must be an integer.

Height: The height of the item must be an integer.

U and V: The UV displacement of the material, because these two values ​​are correlated, so let's put it together

TextureWidth, Textureheight: The material width and height. If I set the material width to 1, the width above is set to 10, and ten pictures will be rendered in the horizontal direction. If the material height is set to 1, the height above is set to 10 to 10, 10 x 10 = 100 pictures will be rendered within the specified width and height.When these two values ​​are greater than the height and width of the settings, U and V will work.

The picture implementation method above is as follows:

   

To tell you that the picture can be stretched, so I put another picture:

Implementation as follows:

   

Item item

I use the material of items to make an example. It seems that it is easy to misunderstand that it is the method of rendering items. In fact, the rendering items should be used. In this case, you can render the items of the module.

All optional parameters:

ID: ID of items.

Tag: NBT of items requires a NBT Compound.If there is a dual quotation sign in your NBT tag, you can use a single quotation when selecting the parameter content, so as to avoid the problem that Hermes cannot parse.

Scale: Reference Entity tags.

Align: Reference Entity tag.

Background: Reference Image tags.

Border: Reference Image tags.

(Even real -time rendering, the attachment light effect is dynamic)

The code is as follows:

   

Paragraph paragraph is a set of leather Text, but the same shadowed defaults to FALSE like Heading.

Remind this label name P, the same as HTML.

Text text

The highlight finally came, and the text label.

However, the text tags are defective and cannot be changed.

First introduce the parameters that have been repeated:

Background: Reference Image tags.

Border: Reference Image tags.

Color: Reference Hint, text color

Align: Reference Entity, default left.

Then there is a TEXT exclusive parameter:

BOLD: Boolean value, whether it is thick.

italic: Boolean value, is it oblique.

Underline: Boolean value, whether there is a line.

obfuscated: Boolean value, whether it is garbled text.

Strikethrough: Boolean value, whether there is a deleted wire.

You can directly enter the pure text in the Text tag, which will be displayed as ordinary text.

Unlike other tags, Text has a special sub -label, which can only be used in Text.

Note: Where the contents of the following are below, other sub -tags can be set.

Color label

Some colors of the original version can be used as labels: Black, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PU e, how to use is content

If you want to use hexadecimal colors, you can also use this label format: Content

Clipboard shear plate

After clicking the text in it, you will copy it to your shear plate. The copy of the copy is the TEXT parameter of the CLIPBOARD tag.

Content

Item item

When this mouse moves to the text in this expression, the detailed information of the item (no icon) will be displayed. This tag has only one parameter: Item, which is the ID of the item.

Content

Translate translation key

If you want to make an international integration package, then this is what you need! Translation keys can quote the translation key value in the language file, you can create your own resource package and translate.

Keybind key position

Display key value, such as key.sprint is the running key bound by the player, and the key.keyboard.space corresponds to the space key on the keyboard.If you want to know the ID of a button, open your Minecraft folder to find Options.txt, you will find that the parts binding of the keys are key_key.xxxx: xxx.It's worth it.

key value directly take screenshots!The following screenshots are the effects of the same code

(DELETE is my binding of the running key, don't ask me why, I switched the disease, I used the 104 keyboard to use the small keyboard to reduce the number, and now I can only use Delete to change the F75 keyboard. This is only delete. ThisIs the button that approaches the upper right corner)

The picture code above is implemented as follows:

  LITERAL 

Inner Style Tags: Bold Italic OBFUSCATED Underline Strikethrough

Inner Color Tags: Vanillacolors hexcolors

span, just same as text

https://www.mcmod.cn (color and downward line are manual manualAdd, there is no default)

Click to Copy

Just item:

Translate Tags: Enchantment.minecraft.prtern

Keybind Tags: Bindings: Key.Sprint Keyboard: Key.keyboard.space

List list

This is very html.

You can create a non -listing list through the UL tag, or you can create a series of lists through the OL tag.

The beginning of the items in the non -serial list is a point, and the beginning of the items in the orderly list is the digital serial number.

All the items in the list need to use the li tag.The li tag can be stuffed, but there is no layout system, so the contents inside will overlap, and the contraction control cannot interact.

OL, UL, and Li can add the color parameters. The parameters of OL and UL affect the color of the beginning and serial number. The meaning of li color parameters is unknown.

Implementation above:

 

  • First

  • Stack!

    What !?

    What !?

    What !?

    What !?

    What !?

    What !?

    Hint

  1. FIRST

  2. sex

  3. third

Column/colorNs column

The Column tag can be used alone, but this is no different from the ordinary layout. Only the Column tag in Columns can play the maximum role.

There are only 3 column in Columbs.

Tips: You can use Columns in Column in Columns to achieve more than 3 column effects.

Column has a Valign optional parameter. If there are three column, one of the column is very long. If you set a very short column value to BOTTOM or Right, it will be aligned at the bottom.The default is aligned in the middle.

Columns has a optional parameter Template that can define the proportion of three column. For example, "10% 20% 70%" is the proportion of 1: 2: 7. Of course, you can also directly remove the percentage number and write it as "10 20 70"Or mixing" 10 20 70%", but if these numbers are not 100, the following effects will appear:

The following is the formal effect and the current code:

 

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

aaaaaaaaaaaaa

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

AAAAA

Carousel rotation

This is the content of the rotation.

Carousel labels a rotary control, there are two optional parameters:

Index: The index of the content displayed by default, the default is 0, that is, the first content.

Height: The height of the control, default -1, indicates that the height of the content is based on the height of the content, but if the height of each page of each page is different, the height of the moving control will also change.

Carousel-ITEM tag is a rotation content, which can fill in anything without any parameters.

The implementation code is:

 

ada

ada

ada

ada

ada

BB

Try to see a baby

1

1

1

1

1

CC

Some Markdown grammar support

#text

## Text

text

** Text **

--TEXT--

__text__

~~ Text ~~

> Text

|| Text ||

/4/text/4//

/C/Text/C/

/6/text/6/

Annotation

This is a note that supports the Mark Language format, that is, , which will not affect the rendering.But the comment content cannot be changed.

End

There are so many labels.

Its task details are too much editable content. I feel much better than FTB, but the editor is not very useful. The prompt of the toolbar above the default is only Markdown grammar, and if your text content is wrongWhere is it? After switching editing mode, it will not be rendered directly.But this profile is too powerful. If the function of this module can improve some of it, I feel that it will be a very outstanding task module.At present, there are quite a lot of shortcomings: For example, only the chapter on the left task list cannot be given to the chapter group and re -group. The task requirements are too small, and the selected content of the task reward is too small.If the modules that are adapted in the future, they can stand up completely.

This module compares the advantages of FTB: the original style and lighter are light.Integrating the additional pack of packing is used to engage in team task synchronization.UI is better, and the task steps are more obvious.

I hope this module can be done better and better.