your current location:首页 > news>Better Formatting Code Minecraft

Better Formatting Code Minecraft

2024-12-12 09:34:40|Myriagame |source:minecraft skins

Better formting code

Allows the formatting code in more scenarios, and also allows developers to customize new format code.

Function

Use '§' decorative words

Specifically, Better Formatting Code allows you to use § symbolic code function in more scenarios that can enter text.

Supported scenarios include chat, notice, item name, biological name, world archive name, and so on.

The original version of the existing symbol is the same as the formatting code of the original.

Scope of formatting

In addition to the existing formatting mechanism and corresponding symbols, the Better Formatting Code also adds the concept of "formatting range" and the corresponding symbol '{' and '}'.

A pair of '{' and '}' will be regarded as the whole of the parts between them, and the rest are regarded as another whole.At the beginning of the scope of the format, that is, the position of '{'. The formatting code that previously taken effect will be stored, and at the end point of the format scope, that is, the position of the '}', the formatting code stored is stored, the stored code that is stored.Will be re -applied to text.

For example, in the figure below, '{' is in front of "in", the formatting code stored at this time is §A and §N, which corresponds to yellow -green and down line;It was once again applied to yellow -green and down lines.

Minecraft images

The formatting range can be nested, and each '}' can jump out of the previous layer of nested, such as:

Minecraft images

Custom formatization code

This function is prepared for developers.

The details of the API and the corresponding document encyclopedia are still preparing.

compatibility

compatible

Optifine: 1.1.0 compatibility, the old version does not guarantee compatibility.

Incompatible

Smoothfont

Another module that modifies Fontrenderer.class may be incompatible.