-
-
Notifications
You must be signed in to change notification settings - Fork 33
tutorial
Before get started, can't help apply resourcepack,
but can help set them up if using itemsadder or oraxen.
and will use economy plugin with vault as an example, so install it if you can.
If you applied the resourcepack successfully, you should see something like this.
Will be applying images, layouts, heads, and some features to it.
First of all, will get a TTF font and apply it.
- put files with extensions like ttf and otf in the fonts folder.
- create a yml file in the texts folder (You can name all the files you create however you want.)
- in “texts/example.yml”, enter the following
example_font:
file: example.ttf
scale: 16
For more information, see the following Link
-
create yml file in the layouts folder.
-
enter the following
example_layout:
texts:
1:
name: example_font
pattern: "text"
x: 0
y: 0
When set font above, we set the font ID to 'example_font'
name is the font to use and the pattern is the content to put in it.
Similarly, the layout has an ID of 'example_layout'
cannot be viewed directly on the screen, so need to set up a hud or popup to output it.
- Create yml file in the huds folder and enter the following
example_hud:
layouts:
1:
name: example_layout
x: 50
y: 50
In the hud file, name refers to the layout ID to be output.
The coordinates simply mean that it is centered, for more information, read the feature wiki.
- Add a line to config.yml and do “/hud reload”
default-hud:
- test_hud
- example_hud
This is the hud that will be displayed by default.
-
Then reapply the resource pack. If you are using itemsadder, enter “/iazip”
-
It looks great! To learn more about text layout, check out the wiki