How To Use
On this page(111)
This page gives you one worked example for each thing SnTexturePack does, plus the variants you can switch on. Copy an example, rename the files and ids, and build.
Every example uses the default pack namespace sntp and the default folder layout. You do not need the seeded example files. Delete the example files, but keep the section folders. An example is seeded again only when its section folder is missing.
The workflow
Every example follows the same loop.
- Put your files in the matching folder under
plugins/SnTexturePack/texturepack/. - Describe them in a
.ymlfile in the same folder. A plain item PNG needs no yml. - Run
/sntexturepack reloadto re-read the folders. - Run
/sntexturepack buildto build the pack and send it to everyone online.
Then check the result in game.
/sntexturepack list items
/sntexturepack info sntp:ruby
/sntexturepack give Steve sntp:ruby
/sntexturepack openA wrong entry is reported in the console and skipped. The rest of the pack still builds. reload prints a Content loaded line with the problem count. build prints each stage problem with a [build] prefix. Read both after every change.
Folder layout
plugins/SnTexturePack/
config.yml settings
lang/messages_en.yml every message and kick text
guis/ the menus of /sntexturepack open and emoji
pack.png optional pack icon (square PNG)
texturepack/
items/ PNG, Blockbench .json, .png.mcmeta and *.yml
armor/ worn layers, icons and *.yml
blocks/ opaque textures or models and *.yml
glyphs/ glyph PNGs and *.yml
sounds/ .ogg files and *.yml
furniture/ furniture models, PNGs and *.yml
plates/ plate PNGs (left, middle, right) and *.yml
effects.yml text effects
hud.yml the HUD lines, boss bars and actionbar
lang/ translation overrides
vanilla/ files that replace vanilla files
merge/ whole packs, merged as they are
data/assignments/ the values handed out so far
output/ the built zip, pack.zip, pack.sha1 and values.ymlEvery .yml in a section folder and its subfolders is read. Your files are never rewritten.
Ids and file references
The key of an entry is its id. The files it uses are named by a reference.
| You write | It means |
|---|---|
ruby as an id | sntp:ruby, the pack namespace plus your name. |
"mypack:ruby" as an id | The namespace you wrote. Quote ids that hold a colon. |
texture: ruby in an item | The file items/ruby.png. Other sections use their own folder. |
texture: tools/ruby in an item | The file items/tools/ruby.png. |
texture: mypack:icons/ruby in an item | The file items/mypack/icons/ruby.png. |
Follow these rules for ids and for file and folder names.
- Use lowercase letters, digits,
_and-only. - Item, armor and block ids may also use
/to nest. They never contain a dot. - Sound ids and
item-modelkeys may contain dots, such asmypack:ui.click. - Glyph ids and effect ids are bare names with no namespace.
- A
.png,.jsonor.oggending on a reference is accepted and dropped.
A custom-model-data number, glyph character, block state or armor trim pattern is handed out once and saved in data/assignments/. It never changes, so stored items, text and placed blocks keep working. A fixed value you write wins. If another id already owns it, the build reports it and the first owner keeps it.
Pack basics
The pack section of config.yml sets what players see and the defaults of every example below.
pack:
description: "₢f2My Server &7- custom textures"
icon: pack.png
namespace: sntp
custom-model-data-start: 100000
build-on-start: truedescriptionshows under the pack name in the client. Color codes are allowed.iconis a square PNG inside the plugin folder. A missing file means no icon.namespaceis added to every id and texture that names none.custom-model-data-startis the first number given out automatically. Keep it high.build-on-startbuilds the pack when the server starts.
Items
What you need
- A PNG in
texturepack/items/, or a Blockbench.jsonmodel with its PNGs. - A yml in the same folder. A flat PNG item works without one.
Example: a flat item
texturepack/items/
gems.yml
ruby.png# texturepack/items/gems.yml
ruby:
texture: rubyThis makes the item sntp:ruby on a PAPER base with a flat model. Apply and test it.
/sntexturepack reload
/sntexturepack build
/sntexturepack give Steve sntp:ruby
/sntexturepack info sntp:rubyinfo prints the material, the custom model data and the item model. The given item has no name or lore. The plugin that hands an item out sets those.
You can skip the yml. A PNG in items/ that no entry uses becomes a flat PAPER item. Its id is its path without the extension. So items/ruby.png becomes sntp:ruby, and items/tools/ruby.png becomes sntp:tools/ruby.
Example: an animated item
Make the PNG a vertical strip of square frames, then put a .png.mcmeta next to it. It is the vanilla animation format and must be strict JSON.
texturepack/items/
gems.yml
ruby_spin.png 16 wide, 64 high: four 16x16 frames stacked
ruby_spin.png.mcmeta# texturepack/items/gems.yml
ruby_spin:
texture: ruby_spin{
"animation": {
"frametime": 4
}
}Example: a Blockbench model item
Export the model as .json from Blockbench. Put it and its textures in one folder of items/.
texturepack/items/
gems.yml
weapons/
ruby_sword.json
ruby_sword.png# texturepack/items/gems.yml
ruby_sword:
material: DIAMOND_SWORD
model: weapons/ruby_swordThe build finds each texture of the model as a PNG with the same file name next to the json. It also looks the value up as a reference inside items/. PNGs next to a model json never become loose items.
Use either texture or model on one item, never both. The entry is skipped when you write both.
Variants
# Base material and handheld parent for a tool
ruby_pickaxe:
material: DIAMOND_PICKAXE
texture: tools/ruby_pickaxe # items/tools/ruby_pickaxe.png
parent: item/handheld
# Fixed values for other plugins, in another namespace
"mypack:ruby_gem":
texture: ruby
custom-model-data: 1226
item-model: mypack:ruby_gem
# A texture that lives in another namespace folder
ruby_icon:
texture: mypack:icons/ruby # items/mypack/icons/ruby.png
# All defaults: the texture is items/emerald_chip.png
emerald_chip: {}- Base material:
materialtakes any obtainable item material. The client draws the item on it. Air or a block-only material is reported and the entry is skipped. - Parent:
parentapplies to flat items only. Useitem/generated(the default),item/handheldor another model reference. - Custom model data: leave it out and the next free number from
pack.custom-model-data-startis used. Writecustom-model-datafor a fixed number of 1 or more. - Item model:
item-modelis the key other plugins match. It defaults to the item id. - Aliases:
aliases: ["old:ruby"]lists other ids the entry answers to. Items, armor sets, blocks, furniture and sounds take them. An item, a placed block or furniture, a command or another plugin's config that still names an alias finds the entry, and the item updater moves a stored item to the entry's own id. An armor set's alias also names its pieces (old:aquagivesold:aqua_helmet)./sntexturepack namespacewrites them for you. - Subfolders: nest files as deep as you like. Keep a model's json and PNGs in their own folder.
- Several ymls: split entries over as many
.ymlfiles as you want. - GUI background:
gui-background: "#55FF55"puts a colored square behind every stack of the item this plugin makes. See GUI background. - Fishing rod cast look: on a
FISHING_RODitem,cast-texture: rods/ruby_rod_cast(a flat texture, same parent) orcast-model: rods/ruby_rod_cast(a Blockbench json) is the look while the hook is out. It works on every client version the pack serves; Bedrock players see the normal look. On another material the key is reported and ignored.
GUI background
A colored square behind an item in inventory slots, like the green and red squares of a shop menu. The color is stored on the item stack, so the same item can show different colors in different menus.
What you need
- A Paper 1.21.4 or newer server, and players on clients 1.21.4 or newer. Older clients see the plain item.
gui-background.enabled: trueinconfig.yml(the default) and a pack built after enabling it.
Example: color the item in your hand
- Hold any item, vanilla or custom.
- Run
/sntexturepack background #55FF55. - Open your inventory: the item sits on a green square.
/sntexturepack background clearremoves it.
Example: an item that always has a color
# texturepack/items/shop.yml
buy_button:
texture: buttons/buy # items/buttons/buy.png
gui-background: "#55FF55" # quote the colorRun /sntexturepack reload. Every buy_button stack made afterwards (give, menus, the API) carries the square.
Example: a square that cycles through every color
Hold the item and run /sntexturepack background rainbow, or write gui-background: rainbow in the item's yml. The client animates it: the server never touches the item again.
Example: color the buttons of a menu from its yml
Any menu of a plugin on SnLib 1.46.0 or newer takes two keys on an item:
confirm:
material: LIME_DYE
display-name: "&aConfirm"
custom-model-data-flags: [true] # show the square
custom-model-data-colors: ["#55FF55"] # its color
rainbow-button:
material: NETHER_STAR
custom-model-data-flags: [false, true] # the cycling square insteadThe home menu of /sntexturepack open ships that way: every section has its color, furniture and effects cycle (guis/browse-sections.yml). The menus inside it have none; add the two keys to a template to color it.
Variants
- Menus of other plugins without the keys: they call
setGuiBackground(stack, color)of the developer API for each button. See Developer API. - Your own look: put
texturepack/gui-background.png(16x16, white and grays) and rebuild. It is multiplied by the color.texturepack/gui-background-rainbow.png(a strip of 16x16 frames, optional.png.mcmeta) replaces the cycling one. - Speed of the cycle:
gui-background.rainbow-cycle-ticks(default 60, 3 seconds). - Only your own items:
gui-background.vanilla-items: false. The pack then skips the vanilla item definitions it would otherwise carry for every client version (downloaded once from Mojang).
The hotbar is drawn like an inventory, so the square shows there too. A colored stack does not stack with an uncolored one.
Armor
What you need
- Two worn body textures of 64x32:
layer-1(helmet, chestplate, boots) andlayer-2(leggings). - An icon PNG for each piece you want to hand out.
- A yml in
texturepack/armor/.
Example: a worn armor set
texturepack/armor/
aqua.yml
aqua/
layer_1.png
layer_2.png
helmet.png
chestplate.png
leggings.png
boots.png# texturepack/armor/aqua.yml
aqua:
layer-1: aqua/layer_1
layer-2: aqua/layer_2
fallback-color: "#33CCFF"
pieces:
helmet: { texture: aqua/helmet }
chestplate: { texture: aqua/chestplate }
leggings: { texture: aqua/leggings }
boots: { texture: aqua/boots }The set is the equipment model sntp:aqua. Each piece is an item with the id <set>_<piece>, such as sntp:aqua_helmet. Its material defaults to the matching leather piece.
/sntexturepack reload
/sntexturepack build
/sntexturepack give Steve sntp:aqua_helmet
/sntexturepack info sntp:aquainfo sntp:aqua prints the equipment model other plugins reference. On Paper 1.21.3 and newer, give also sets the equippable component that names the set.
What each client sees
| Client | What the player sees |
|---|---|
| 1.21.2 and newer | The worn layers, drawn from the set's equipment model. |
| 1.20 to 1.21.1 | The same layers, drawn through a vanilla trim pattern reserved for the set. |
| 1.17 to 1.19 | Leather armor dyed with fallback-color. These clients have no armor trims. |
| Every client | The piece icon, from the piece texture. |
On 1.20 to 1.21.1, every set reserves one vanilla trim pattern. It is saved in data/assignments/armor-trims.yml and never changes. The item updater puts the pattern on every piece of the set and hides the trim from the tooltip.
There are 18 trim patterns, so at most 18 sets show their worn layers on 1.20 to 1.21.1. Further sets keep the leather fallback, and the build says so. Clients 1.21.2 and newer are not limited.
Variants
# Only some pieces, and fixed values on a piece
ruby_armor:
layer-1: ruby/layer_1
layer-2: ruby/layer_2
pieces:
helmet: { texture: ruby/helmet, custom-model-data: 7104, item-model: mypack:ruby_helmet }
boots: {}- Fallback color: leave
fallback-colorout and the average color oflayer-1is used. Always quote the value, because an unquoted#starts a comment. - One layer: a set needs at least one valid layer. Without it the set is skipped.
- Pieces: use any subset of
helmet,chestplate,leggingsandboots. Each piece takes the keys of an item. - Piece with no texture:
boots: {}looks for the iconarmor/ruby_armor_boots.png. - 3D helmet: a helmet with
model:(a Blockbench json) instead oftexture:is worn as its 3D model, drawn with the model'sheaddisplay, and shows no armor layer on 1.21.2 and newer clients and on Bedrock. Every other piece keeps the set's layer, even with a model. Such a helmet has no equipment model, soinfo,values.ymland the browser list none for it: never give it one in another plugin. - Trim material:
armor.legacy-trim-materialinconfig.ymlis the vanilla trim material put on the pieces. It never changes the look. - Other plugins' pieces: on Paper 1.21.3 and newer, any item whose equippable asset is the set gets the trim too.
Blocks
What you need
- An opaque PNG in
texturepack/blocks/, or a Blockbench model with its PNGs. - A yml in the same folder.
- Two Paper options set to
true, described below.
Example: a note block cube
texturepack/blocks/
ores.yml
ruby_ore.png# texturepack/blocks/ores.yml
ruby_ore:
type: NOTE_BLOCK
texture: ruby_oretype defaults to NOTE_BLOCK, and texture defaults to a PNG named like the block. So ruby_ore: {} is the same block. The item that places it has the same id.
/sntexturepack reload
/sntexturepack build
/sntexturepack give Steve sntp:ruby_ore
/sntexturepack info sntp:ruby_orePlace the item and break the block. It drops its own item. info prints the block type, the state and the block data string.
Set both block-updates.disable-noteblock-updates and block-updates.disable-tripwire-updates to true in config/paper-world-defaults.yml. SnTexturePack logs a hint at startup while they are off.
Variants
Use only one of texture, textures or model on a block. Pick one of the layouts below.
# Top, bottom and side
trunk:
textures: { top: trunk_top, bottom: trunk_top, side: trunk_side }
# Six different faces
dice:
textures: { north: dice_1, south: dice_6, east: dice_3, west: dice_4, up: dice_2, down: dice_5 }
# Fallbacks: up uses top, down and the sides use all
crate:
textures: { all: crate_side, top: crate_top }
# A Blockbench model: blocks/lamp.json and the PNG next to it
lamp:
model: lamp
# A decorative tripwire block with a flat icon for the placing item
flower:
type: TRIPWIRE
texture: flower
item: { texture: flower_icon }
# A fixed state and fixed values on the placing item
ruby_block:
state: 12
item: { texture: ruby_block_item, custom-model-data: 7001 }- Face fallbacks:
upusestopthenall.downusesbottomthenall. The four sides usesidethenall. A face with no value skips the block. - Tripwire block: it has no collision. One texture renders as a cross, like a plant. Several textures keep the cube shape. Give it
item: { texture: ... }for a flat icon. - Placing item:
itemtakes the keys of an item. By default the item shows the block model. - Fixed state:
stateis a number from 1 up to 799 for a note block, or up to 127 for a tripwire. Leave it out and one is assigned and kept forever indata/assignments/blocks.yml. - Opaque textures: a note block texture must be fully opaque. A tripwire texture may have cut-out pixels but no translucent ones.
Prefer automatic states. Automatic note block states use a tuned note, and automatic tripwire states are disarmed. A vanilla block can never reach them, so breaking a vanilla block never drops your item. There are 799 note block states and 127 tripwire states, and 32 tripwire states are handed out automatically.
Custom blocks have no custom hardness, drops, tool rules or sounds. A broken block drops its own item. Placing plays the vanilla sound of the base block. Players cannot tune a note block by right-click while custom blocks are on.
Furniture
A piece of furniture is an item placed in the world: right click a block with its item and it stands there, drawn by a display entity, with an invisible hitbox. Hit the hitbox to break it and get the item back.
What you need
- A model (Blockbench
.jsonwith its PNGs next to it) or a flat PNG intexturepack/furniture/. - One entry in a
.ymlof that folder. It takes every key of an item plus the furniture keys below.
Example: a table on the floor
texturepack/furniture/
table.json
table.png
decor.yml# texturepack/furniture/decor.yml
table:
model: table
placement: [floor]
rotation-step: 90Run /sntexturepack reload and /sntexturepack build, then /sntexturepack give <player> table. Right click the top of a block to place it facing you.
Example: a piece with an overlay
# texturepack/furniture/decor.yml
lucky_wheel:
model: lucky_wheel
placement: [wall]
display: { scale: 1.5 }
hitbox: { width: 3, height: 3, offset: [0, -1, 0] }
overlay: lucky_wheel_pointer
lucky_wheel_pointer:
model: lucky_wheel_pointer
placement: [wall]
display: { scale: 1.5 }The overlay is a second item drawn over the piece with the same display settings. It never turns, so it suits the pointer of a wheel. The seeded texturepack/furniture/example.yml is this example.
The furniture keys
- placement:
floor(on top of a block, facing you) and/orwall(on the side of a block, facing away from it). Default[floor]. - rotation-step:
90or45, how a floor piece's facing snaps. - display:
transform(the model display drawn,FIXEDby default,NONEignores the model's own display settings),scale,offset([right, up, forward]blocks from the block center) andyaw(an extra turn for a model whose front is not where you expect). - hitbox:
width,heightandoffset([right, up, forward]from the bottom center of the block) of the box players click. - overlay: an item drawn over the piece that never turns.
Give furniture a behavior
Furniture only shows. A click does nothing on its own. Another plugin gives a piece its behavior through the Developer API: it listens to the click, place and break events and turns pieces smoothly. A prize wheel is such a plugin.
Bring a model from another pack
Copy the model .json and the .png files it uses next to each other into texturepack/furniture/ and point model: at the json. A texture reference inside the json, such as other:item/wheel_tex, finds wheel_tex.png next to it by its file name, so the json needs no edit. If the model draws far too large, use transform: NONE.
Placing and breaking fire the block place and break events of the block the furniture stands in, so protection plugins allow or refuse them as they do for blocks.
Furniture has no collision, seats, storage or lights of its own. Clients 1.17 to 1.19.3 have no display entities: through ViaBackwards they see the item on an invisible armor stand, without its scale and without any turn.
Glyphs
A glyph is an image you write inside text.
What you need
- A PNG in
texturepack/glyphs/. - A yml in the same folder. A missing
texturekey uses a PNG named like the glyph id.
Example: an image glyph
texturepack/glyphs/
icons.yml
heart.png# texturepack/glyphs/icons.yml
heart:
texture: heart
ascent: 7
height: 8ascent is how many pixels the image rises above the text baseline. height is the drawn height and defaults to 8. An ascent above height is lowered to height, because the client rejects it. One build line lists those glyphs.
/sntexturepack reload
/sntexturepack build
/sntexturepack info heartUse it in text
Write the tag anywhere a plugin sends text. The tag is replaced in every outgoing text, so other plugins use it as it is.
<glyph:heart> Health
<g:heart> Health
Price <shift:-2><glyph:heart> 50- Menu titles: put the tag in the title field of your menu plugin.
- Item names and lore: put the tag in the name or lore of an item.
- Everything else: chat, titles, the action bar, boss bars, scoreboards, the tab list and entity names work too.
- Shifts:
<shift:N>moves textNpixels sideways. A negative number moves it left.<shift:>means 0.
Item names and lore are rewritten in packets from Paper 1.20.5 on. On Paper 1.20.4 the tag in an item name stays literal. Every other text works.
Let players type it in chat
Set chat: true on the glyph, then give the permission through your permissions plugin.
heart:
texture: heart
chat: true
placeholders: ["<heart>", ":love:"]A player who holds sntexturepack.glyph.heart can now write :heart: in chat. The same permission covers <glyph:heart>, <heart>, :love: and the raw glyph character. Only the :heart: form needs chat: true.
/sntexturepack emoji lists the chat: true glyphs the player may use. A click copies the first placeholder, or :id: when there is none.
| Permission | What it allows |
|---|---|
sntexturepack.glyph.<id> | That glyph in chat, signs, books, anvil names and typed commands. The default is operators only. |
sntexturepack.glyph.shift | <shift:N> and the raw shift characters in those places. The default is false. |
sntexturepack.emoji | /sntexturepack emoji. The default is true. |
:id:works in chat only, for glyphs withchat: true, whileglyphs.chat-tagsis on.- Without the permission, the tag is neutralised before it renders. Tags written by plugins and menus are always rendered.
- Each placeholder is
<name>or:name:. Use letters, digits,_and-. Two glyphs cannot share one placeholder. - A chat plugin that rebuilds the message from the original or signed message can bypass the filter.
Use it from PlaceholderAPI
These need PlaceholderAPI. The tags work without it.
| Placeholder | Answer |
|---|---|
%sntp_glyph_heart% | The glyph character. |
%sntp_unicode_heart% | The glyph character (same as glyph_heart). |
%sntp_heart% | The glyph character, in its bare form. |
%sntp_shift_-8% | The characters that move text 8 pixels left. |
Example: an animated glyph
Make the PNG a vertical strip of square frames, then add a .png.mcmeta next to it.
texturepack/glyphs/
icons.yml
spinner.png 16 wide, 64 high: four 16x16 frames stacked
spinner.png.mcmeta# texturepack/glyphs/icons.yml
spinner:
texture: spinner
ascent: 14
height: 16{
"animation": {
"frametime": 3,
"frames": [0, 1, 2, 3, 2, 1]
}
}frametimeis the ticks each frame stays. It defaults to 1.framesis optional. List strip rows in play order, or write{ "index": 3, "time": 10 }to set one frame's time.- Animated glyphs play on clients 1.17 to 26.3. Newer clients show the first frame.
- A PNG that is not a strip of square frames stays a still glyph.
- A glyph with more than 128 frames, or a loop longer than 65535 ticks, is shown still and the build says so.
%sntp_glyph_spinner%answers every frame character. Invalues.yml,charholds the whole sequence.
Variants
- Fixed character: write
char: "X"to pick the character yourself. Otherwise one is assigned from U+E000 up and kept indata/assignments/glyphs.yml. - Other fonts:
glyphs.extra-fontsgives the same glyphs to other font ids, such as[mypack:default]. - Packet tags:
glyphs.packet-tags: falsestops the tag replacement in outgoing text. - Still glyphs:
text-shaders.enabled: falseships no shader, so every glyph is still.
Raised text
<up:N>text</up> draws text N pixels higher, for example a menu title lifted onto its background. It works in every text the plugin rewrites: menu titles, item names and lore, chat, titles, the action bar, boss bars, scoreboards, the tab list, entity names and text displays. Other plugins write it like <shift:N>.
<shift:-48><g:menu><shift:-120>&f<up:11>ShopWhat you need
- The offset in
glyphs.up-offsets, for exampleup-offsets: [11]. The default is empty and each offset is a whole number from 1 to 200. vanilla-assets.downloadon. The pack raises the vanilla font sheets, so they are fetched from the cached 1.20.1 client. An empty list downloads nothing.- A rebuild with
/sntexturepack buildafter you change the list.
The pack then carries one raised copy of the vanilla font per offset, named sntp:up_N. The shapes move up and the advance of every character stays the same, so shifts around the text measure it as the same text.
How a run behaves
- The closer is optional. Without
</up>the run lasts to the end of that text, across color changes. A run never crosses into another lore line or scoreboard line. - A later
<up:M>switches the run to M. One</up>ends it. - Only offsets listed in
glyphs.up-offsetsexist. Any other<up:N>stays literal text. - Glyph images inside a run are not raised.
<shift:N>keeps its exact advance. - Characters the vanilla bitmap fonts do not draw, such as CJK scripts and emoji (Unifont), are drawn at the normal height.
- Bedrock players see the text where it would be without the tag.
- A Java player who does not have the current pack sees missing-character boxes for the raised letters. Keep
sending.mandatoryon. - In chat a player needs
sntexturepack.glyph.shiftto use<up:N>. - On linked servers a follower takes the offset list from the main's pack.
Text effects
Text drawn in one exact color is animated by the pack's text shaders. You define the colors in texturepack/effects.yml, and each color gets a style: moves, paint layers and a shadow.
What you need
Only effects.yml. SnTexturePack writes it once with thirty-one effects when it is missing, and never merges it. Edit it freely.
Example: add an effect
# texturepack/effects.yml
lava:
color: "#FF8A3C"
move: {type: wave, amplitude: 0.5}
paint:
- {type: vgradient, colors: ["#FFE680", "#FF7A00", "#C81E00"]}
- {type: fire, colors: ["#FF3D00", "#FFC040"]}
shadow: "#3A0A00"
example: "Burning text"/sntexturepack reload
/sntexturepack build
/sntexturepack info lavaUse the effect in any of three ways.
| Way | You write |
|---|---|
| Tag | <fx:lava>Burning text</fx> |
| Color | The hex color in your plugin's own syntax, such as &#FF8A3C or <#FF8A3C> |
| PlaceholderAPI | %sntp_effect_lava%, which answers #FF8A3C |
Tags inside the effect text still resolve. A run must open and close inside one text node, and runs do not nest.
The effect keys
| Key | Meaning |
|---|---|
color | The trigger color, quoted as "#RRGGBB". It is required. |
effects | Classic kinds: rainbow, wave, bounce, blink, shake. Several kinds play together. |
move | One move or a list of moves: a name (float) or a map with type and settings. |
warp | One warp or a list of warps. A warp changes the shape of each letter: a name (grow) or a map with type and settings. |
paint | A list of paint layers, drawn in order: a name (outline) or a map with type, color or colors, and settings. |
shadow | A quoted "#RRGGBB" draws the shadow in that color. none hides it. Left out, the shadow follows the text color, as vanilla. |
speed | Time multiplier of everything. The default is 1. |
amplitude | Size multiplier of every movement. The default is 1. |
example | The text /sntexturepack open shows. It defaults to the id. |
An effect needs at least one of effects, move, warp, paint or shadow. Every setting of a piece is optional. Colors are quoted "#RRGGBB", up to 8 per piece.
Moves
Sizes are in font pixels.
| Move | Settings (default) |
|---|---|
wave | amplitude 1, speed 1 (negative runs the other way), frequency 1, sway 0 (the same wave sideways; sway equal to amplitude draws a circle) |
bounce | amplitude 1, speed 1 (negative runs the other way), frequency 1 |
shake | amplitude 1, speed 1 |
float | amplitude 1, speed 1. The whole text moves together. |
glitch | amplitude 1, speed 1, chance 0.2 |
hop | amplitude 1, speed 1. The whole text jumps. |
slide | amplitude 1, speed 1. The whole text slides sideways. |
rise | amplitude 1, speed 1. Letters drift up and fade in turn. |
iterate | amplitude 1, speed 1, spacing 1. A hop runs through the letters. |
Warps
A warp changes the shape of each letter.
| Warp | Settings (default) |
|---|---|
grow | amount 0.25, speed 1, stagger 1, bias 0 (-0.5 to 0.5: 0.2 swings 1.0 to 1.4 instead of 0.8 to 1.2). Letters grow and shrink. |
flip | speed 1, stagger 0.5. Letters spin like coins. |
skew | amount 0.3, speed 1. Letters lean left and right. |
swing | angle 15, speed 1, stagger 0.5. Letters swing from their top. |
spin | speed 1, stagger 0.5. Letters turn around their center. |
melt | amount 1, speed 0.5. Letters drip down. |
crack | gap 1, speed 1. Letters split down the middle. |
tear | axis 0 (0 rows slip sideways, 1 columns up and down), chance 0.15, amount 1.5, speed 1, band 1. Bands of the letters slip in bursts. |
shatter | amount 0.75, speed 1. Letters turn to grain and back. |
stagger 0 moves every letter together; 1 gives each letter its own timing.
Paint layers
| Layer | Colors | Settings (default) |
|---|---|---|
gradient | 2 to 8 | speed 0.25 (0 is still), span 48 pixels per loop, angle 0 (degrees: 30 leans the bands like /, -30 like ), mirror 0 (1 walks the colors there and back, no jump from the last to the first), letters 0 (1 gives one color per letter) |
vgradient | 2 to 8, top to bottom of each letter | speed 0 |
rainbow | none | saturation 1, brightness 1, speed 0.5, span 64 |
marble | 2 to 8 | scale 1, speed 0.2 |
camo | 2 to 8 | scale 1, speed 0 |
chars | 2 to 8, one per letter | speed 0 |
stripes | 2 to 8 | width 2, speed 0.5 |
metal | 2 (top, bottom) | shine 0.6 |
pulse | none | amount 0.35, speed 1 |
flicker | none | chance 0.1, speed 8 |
glitch-tint | 2 | chance 0.15, speed 6 |
scanlines | none | strength 0.35, speed 1, spacing 2 |
shine | 0 or 1 (white) | strength 0.8, speed 1, width 4, period 3 |
sparkle | 0 or 1 (white) | density 0.08, speed 1 |
fractal | 2 to 8 | scale 1, speed 0.3 |
water | 0 to 2 (water, surface) | level 0.6, speed 1, waves 1 |
magma | 0 to 8 (crust to hottest) | scale 1, speed 0.3 |
blend | 2 to 8 | scale 1, speed 1. Soft blobs of the colors melt into each other and drift at random. |
soft-blend | 2 to 8 | scale 1, speed 1. Like blend with bigger blobs and long smooth fades between the colors. |
aurora | 2 to 8 | scale 1, speed 0.3 |
fade | 1 | amount 1, speed 1. The text color fades into the color and back. |
reveal | none | speed 1, period 4, flash 0 (white on the letters that just appeared), wipe 0 (above 0 each letter hides again that share of the round after it appeared). Letters appear one by one, left to right across the screen. |
outline | none (the text color darkened), 1, or 2 to 8 flowing | darkness 0.35, speed 0.25, span 48 |
glow | 0 (the text color) or 1 | strength 0.6, radius 2 |
fire | 0 to 2 (tips, base) | height 1, speed 1 |
ghost | 0 to 2 (left, right) | alpha 0.5, speed 1, distance 1 |
embers | 0 to 2 | density 0.12, speed 1. Sparks rise over and around the letters. |
snow | 0 or 1 (white) | density 0.1, speed 1 |
petals | 0 to 8 | density 0.08, speed 1 |
chromatic | 0 to 2 | strength 0.6, distance 1, speed 1, jitter 0 (pixels the copies shake). The letters split into two colored copies. |
underline | none (the text color), 1, or 2 to 8 flowing | thickness 1, speed 0.25, span 48 |
box | like underline | speed 0.25, span 48. A frame around every letter. |
glint | 0 or 1 (white) | strength 0.45, speed 0.6, width 0.75, gap 5. A hard diagonal flash across every letter at once. |
sheen | 0 or 1 (white) | amount 0.15, wavelength 6.8, speed 4.17. A faint ripple moving along the text. |
noise-gradient | 0 (every hue) to 8 | saturation 0.7, brightness 1, speed 1, span 83, turbulence 1, scale 25. A color ramp pushed around by drifting noise. |
hue-shift | none | speed 0.0833 (turns a second), offset 0. Turns the hue of the layers before it. |
veil | 1 to 4 | scale 5, speed 3.5, gamma 1.3, contrast 0. Fine fast noise clouds, one layer per color. |
motif | 0 or 1 (white) | shape 0 (0 hearts, 1 leaves, 2 petals), size 3.25, spacing 10, speed 0.475, strength 0.6. Small shapes drifting over the letters. |
cage | 0 or 1 (black) | part 0 (0 top and bottom bars, 1 left end, 2 right end), pad 1.5, thickness 1, grow 4, bounce 2.5, speed 2.25, glitch 0.1. A glitching bar frame with the letters bouncing inside. A cage is three effects: part: 1 on the first character, part: 0 on the text, part: 2 on the last character; the ends hide their own character, so write any visible one there (` |
The warps and the layers drawn around the letters (outline, glow, fire, ghost, embers, snow, petals, chromatic, underline, box) make the shader draw those letters on a slightly larger area and rebuild them crisp, so neighbour letters never bleed in.
The defaults
rainbow, wave, wavy_rainbow, bounce, bouncy_rainbow, blink and shake use the classic kinds. fire, gold, neon, ocean, glitch, starry, ghost, lava, frozen, water, slime, typewriter, sakura, aurora, rgb_split, coin, jelly, hanging, cracked, dizzy, title, sunset (a diagonal gradient), lavalamp (blend) and dream (soft-blend) show what styles can do. Run /sntexturepack open and click Effects to see them animate.
Effects on ranks and badges
Put a glyph inside an effect run and it takes the effect:
<fx:rainbow><glyph:rank_founder></fx>
<fx:gold><rank_founder></fx> (a glyph placeholder works too)
&#E6FFFE<rank_founder> (the effect color written directly)
&#E6FFFE%sntp_glyph_rank_founder% (PlaceholderAPI, e.g. a LuckPerms or TAB prefix)The effect color can be the text's color or a legacy code right before the glyph. A chat color in between (such as &a) draws the glyph white again. /sntexturepack info <effect> gives the color of an effect.
text-shaders.glyph-effects in config.yml decides what the effect paints (it applies on the next /sntexturepack build):
white(the default): only the glyph's white and gray pixels, every colored pixel stays as it is.all: every pixel, each by its brightness, so the whole rank takes the effect and keeps its shading (white letters bright, an orange frame darker).
With white, draw the part that should take the effect (usually the letters) in white and keep the frame in its colors: a rank with white letters on an orange frame shows rainbow letters on the same orange frame.
- A gray pixel takes the effect darkened by its gray, and black stays black. To keep a dark gray part as it is, give it a slight tint: a pixel whose channels differ by more than 25 of 255 counts as colored (
#2A2238instead of#2A2A2A). - Moves and warps move the whole glyph.
- An animated glyph keeps its own colors inside an effect run.
- In any other color a glyph is drawn white, as always.
- Clients without the text shaders see the glyph multiplied by the effect color, so effects meant for glyphs read best with a light color, like the defaults (
#E6....).
Rules
- The effect id uses lowercase letters, digits,
_and-. - Each color must be unique. It may not be one of the 16 chat colors.
- The client draws the shadow in the color with each channel divided by four. Two effects may not share a shadow color either.
- A color is refused when it, or its shadow, is a chat color or the shadow of one.
speedandamplitudestay between 0.05 and 20.- An unknown piece or setting, a bad color or a number out of range is reported in one build line. The piece is left out or the number kept in range, and the rest still loads.
- You can define at most 256 effects.
- Empty the file (
{}) to have no effects.
Let players use it in chat
In chat, signs, books and anvil names, <fx:id> needs sntexturepack.effect.<id>. That node gates the tag only. A player whose chat plugin lets them type hex colors can type the effect color itself. Deny hex colors there if an effect must stay exclusive.
Effects and animated glyphs play on clients 1.17 to 26.3. Newer clients see the plain color and the first frame. Grayscale text gets the moves of an effect but not its paint layers (a glyph there is tinted by the effect color as a whole). OptiFine and Iris shader packs may replace the text shaders and show them still. If one client era misbehaves, add it to text-shaders.skip-eras, for example [s63].
Sounds
What you need
- An
.oggfile intexturepack/sounds/. Mono at 44.1 kHz or lower is safest. - A yml in the same folder.
Example: a custom sound
texturepack/sounds/
ui.yml
coin/
pickup.ogg# texturepack/sounds/ui.yml
"sntp:coin":
files: [coin/pickup]
stream: falseThe key is the sound event id. Quote it. The file is sounds/coin/pickup.ogg, written without the extension.
/sntexturepack reload
/sntexturepack build
/playsound sntp:coin master Steve
/sntexturepack info sntp:coinOther plugins take the event id sntp:coin as the sound name. /sntexturepack open sounds lists every sound. A click plays it to you.
Variants
# One of several files, picked at random on each play
"sntp:footstep":
files: [steps/one, steps/two, steps/three]
# A long file streamed from disk
"sntp:theme":
files: [music/theme]
stream: true
# No files key: the file is named like the id, sounds/click.ogg
"sntp:click": {}
# A dotted event id
"mypack:ui.click":
files: [mypack/click]- Random pick: list more than one file and one is chosen on each play.
- Streaming:
stream: truereads long files, such as music, from disk instead of loading them whole. - Check the file: a file that is missing or is not an Ogg stream is reported and left out. An event with no usable file is skipped.
Plates
A plate is an image that stretches behind a text, such as the colored bar behind a name. It is three PNGs in texturepack/plates/: a left end, a middle that is ONE pixel column (the pack repeats it to any width) and a right end. Write <plate:id>text</plate> in a text the HUD or the nameplates draw and the plate is drawn exactly as wide as the text plus its padding, with the text on top of it.
What you need
- Three PNGs, all exactly as tall as the plate's
height, or the stretching is off by a pixel. - A rebuild of the pack (
/sntexturepack build) after adding or changing a plate.
A fresh install seeds texturepack/plates/example.yml with the plate simple and its three PNGs (the plugin's own art).
Example: a plate
# texturepack/plates/*.yml (subfolders allowed)
simple: # plate id: lowercase letters, digits, _ and -, at most 48 characters
left: simple_left # plates/simple_left.png; a key left out uses <id>_left, <id>_middle or <id>_right
middle: simple_middle # ONE pixel wide: only its first pixel column is repeated (it cannot be fully transparent)
right: simple_right
ascent: 10 # pixels the image rises above the text baseline, default 8; above height it is lowered to height
height: 14 # drawn height in pixels, default 8: draw all three PNGs exactly this tall
padding-left: 4 # pixels between the left edge of the plate and the text, default 1
padding-right: 4 # pixels between the text and the right edge of the plate, default 1Then write <plate:simple>Hello</plate> in a HUD line or a nameplate text. /sntexturepack list plates lists the loaded plates.
How it is measured
- The width is measured from the text as the client draws it: the vanilla font widths, the advance of each glyph (one frame of an animated glyph), shifts and other plates. Color codes and tags add nothing, and bold text is measured as not bold. A plate is never narrower than its two ends; a shorter text is centered between them. A text wider than 16384 pixels is drawn without a plate.
- Plates nest: the text of one may hold another. An unknown plate id, an opener with no
</plate>after it, or a plate that has no characters yet (before the first build that includes it) stays as literal text. - The pieces are glyphs of
minecraft:default(and of everyglyphs.extra-fontscopy). Their characters are handed out once indata/assignments/glyphs.ymland never change. The middle becomes nine strips, 1 to 256 pixels wide, generated at build time. - Only the texts of
hud.ymlandnameplates.name/nameplates.linesexpand<plate>and<down>. Chat, menus and other plugins' texts keep them literal. - A missing PNG, a plate image of another height than
height, a middle wider than one pixel (only its first column is used) or a fully transparent first column are named in the content report; a plate that cannot be drawn at all is skipped.
Lowered text
The client rejects a font bitmap whose ascent is above its height, so lowering text needs a font of its own, and so does raising it (see Raised text). <down:N>text</down> draws the text N pixels lower (N a whole number from 1 to hud.down-max, default 16), for example to center a line inside a tall plate.
text: "<plate:simple><down:2>&e%player_name%</down></plate>"- The pack carries a lowered copy of the default font (
sntp:down_N) for every N inhud.down-offsets(default[1, 2, 3, 4]) and every N written inhud.yml,nameplates.nameornameplates.lines. Rebuild after using a new N: an N without a font draws missing-character boxes. Another plugin can use the fontsntp:down_Nitself. - The tag keeps the advance of the text, so a plate around lowered text measures it as the same text. Tags nest like fonts: the innermost one wins, offsets do not add. A
<down>with an N outside 1 tohud.down-max, or with no</down>after it, stays literal. - Characters the client draws from the Unifont (CJK scripts, emoji and other characters outside the vanilla bitmap fonts) show the missing-character box inside a lowered run, and an animated glyph stays on its first frame there.
HUD
The HUD draws lines on the player's screen: boss bar lines at the top and one actionbar line above the hotbar. texturepack/hud.yml holds the lines, the hud: section of config.yml the switches (see Configuration). The HUD is off by default, so an upgrade never makes other plugins' boss bars transparent.
What you need
hud.enabled: trueinconfig.yml.- A
hud.bossbar-colorno other plugin uses (defaultWHITE). /sntexturepack build(it reloads first).
/sntexturepack reload applies a change to a line. A change to hud.enabled, hud.bossbar-color, hud.down-max or hud.down-offsets, or a new <down:N>, also needs /sntexturepack build.
Example: a boss bar line and an actionbar line
# texturepack/hud.yml
bossbars: # boss bar lines, top to bottom in the order of the file
balance: # the bar id: lowercase letters, digits, _ and -
text: "<plate:simple><glyph:coin> %vault_eco_balance_formatted%</plate>"
permission: "myserver.hud" # a permission the player needs; empty or missing = everyone
worlds: [] # world names the player must be in; empty or missing = every world
not-worlds: [lobby] # world names the player must NOT be in
actionbar: # a list in priority order: the player sees the FIRST line they match
- text: "<down:2>&e%player_name%</down>"
permission: "myserver.vip"
worlds: [survival, survival_nether]
- text: "&7Welcome, &f%player_name%"A text takes colors (&a, !CCFF, MiniMessage), PlaceholderAPI placeholders (resolved for each player every hud.refresh-ticks; a line is only sent to a player when its text changed), <glyph:id>, <shift:N>, <fx:id>, <plate:id>text</plate> and <down:N>text</down> (see Plates). Quote the text and write a quote inside it as \". World names compare ignoring case; a world in not-worlds never matches, even when worlds lists it too.
How the lines behave
- Boss bar lines: every line is a boss bar of the color
hud.bossbar-color(defaultWHITE) at full progress. The pack makes that color's bar fully transparent (the sprites of 1.20.2 and newer, the matching rows ofgui/bars.pngfor 1.17 to 1.20.1), so only the title shows. Lines stack in file order, top to bottom. - Transparent boss bar color: boss bars of other plugins in
hud.bossbar-colorlose their bar too. Pick a color nobody else uses (PINK,BLUE,RED,GREEN,YELLOW,PURPLEorWHITE). - Actionbar line: the first line of the list a player matches is sent every
hud.actionbar.resend-ticks(the client fades an actionbar out after about 3 seconds) and at once when its text changes; when no line matches any more the actionbar is cleared. A line starts with an invisible marker character (U+F800, no advance), which is how the plugin tells its own actionbars from other plugins'. - Other plugins' actionbars: while a line shows,
hud.actionbar.otherdecides.replaceshows theirs forhud.actionbar.other-stay-msand then the HUD line comes back;hidedrops theirs. This reads the packets, so the plugin installs its packet layer by itself whenhud.ymlhas an actionbar line (also withglyphs.packet-tags: false). - Bedrock: players with a Floodgate UUID (most significant bits 0) get no HUD while
hud.bedrock-detectionis on. - Seed: a missing
hud.ymlis created with one example bar,example, which only players holdingsntexturepack.hud.example(operators by default) see, and no actionbar line, so an update shows nothing new to your players. Take the permission line out to show it to everyone, or write your own lines. - Problems: an unknown key, a line without a text, an unknown
<glyph:...>or<plate:...>id and the like land in the content report (console) and the line is skipped; the rest still loads. - Linked servers: on a follower
hud.ymland the plates come with the main's content (see Linked servers); thehud:andnameplates:settings are the follower's ownconfig.yml.
Players without the resource pack see the glyphs and plates of a line as missing-character boxes, so the HUD assumes the pack. /sntexturepack info with no id shows whether the HUD is running and how many lines it has.
Nameplates
With nameplates.enabled: true every player sees a nameplate over the other players' heads instead of the vanilla name tag: the name line, an optional plate behind it and your own lines above it. It is off by default.
What you need
- The plates you want to use (see Plates).
nameplates.enabled: true, then/sntexturepack reloadand/sntexturepack build(the plates and any<down:N>are part of the pack).
Example: a name with a plate and a line above it
# config.yml
nameplates:
enabled: true
name: "%player_name%" # the name line; the plate is drawn behind it
lines: # above the name, top to bottom, with placeholders
- "&7%vault_eco_balance_formatted%"
plates: [vip, simple] # the first one a player holds sntexturepack.nameplate.<id> for
default-plate: none # the plate of everybody else; none = no plateTexts take the same things as a HUD line (PlaceholderAPI, colors, glyphs, shifts, <plate> and <down>); %player_name% works without PlaceholderAPI. The plate of plates is drawn behind the name line only.
With TAB, set name: "%tab_tagprefix%%player_name%%tab_tagsuffix%". The nameplate then shows the rank, color and suffix of each player's TAB group, like the vanilla name tag did.
Plate per permission
Give a player sntexturepack.nameplate.<id> through your permissions plugin and they get the plate <id>, when <id> is listed in nameplates.plates (the first match in that list wins). A player who holds none gets nameplates.default-plate. Only simple is declared in plugin.yml (default false); any other node is operator-only until you grant it.
How it works
- How it is drawn: two text display entities per player, the plate part and the text part (not saved, tagged
sntexturepack:nameplatein their persistent data, stray ones are removed when a chunk loads). They follow the player with every move and teleport instead of riding it: a passenger would make Paper refuse other plugins' teleports of that player. A reload respawns every nameplate once, and a nameplate is removed when its player quits, dies or the plugin disables. - Who sees it: everybody except the owner, Bedrock viewers and viewers who cannot see the player (vanish plugins that hide the player). It is empty while the player is invisible or in spectator mode, and dimmed (
nameplates.sneak-opacity, never see-through) while the player sneaks. - The vanilla tag is hidden in the team packets sent to each viewer (the packet layer, installed by itself while the nameplates run), so it also works with TAB's teams. Players on no team join the team
sntp_nameplates(nameplates.fallback-team). - Bedrock: Floodgate viewers see no nameplate entities and keep the vanilla name tags while
nameplates.bedrock-detectionis on. - Old clients: clients older than 1.19.4 have no text displays. With ViaVersion on the server they get no nameplate and keep the vanilla name tag.
- Look:
head-offset,view-range,see-through,text-shadow,background-color,move-interpolation-ticksand the other keys are in thenameplatesband of Configuration.
Known limits of the HUD, plates and nameplates
- HUD, plates and nameplates need the resource pack: a player without it sees missing-character boxes for the glyphs and plates of those texts, and possibly one for the invisible marker character that starts a HUD actionbar line.
<down:N>works only in the HUD and nameplate texts; raised text (<up:N>) works in every text, see Raised text. Unifont characters inside a lowered run show the missing-character box and animated glyphs stay on their first frame there. A plate measures bold text as not bold, so a bold run overflows its plate.- Nameplates follow the player instead of riding it, and the displays are tracked with their own range (the display
entity-tracking-rangeofspigot.yml), not the player's: a viewer far away may see a nameplate whose player is not drawn yet;nameplates.view-rangelimits it. Withsee-throughon, the plate and the text entity are drawn in no fixed order. Every reload respawns all nameplates (one blink). Clients older than 1.19.4 keep the vanilla name tag when ViaVersion runs on the server; with ViaVersion only on the proxy they see no name. - TAB and the vanilla tag: the tag is hidden in the team packets each viewer receives, which works with TAB's teams at a server start. When the nameplates are turned on at runtime, players already online keep their vanilla tag until TAB sends its teams again (they rejoin, or
/tab reload). A viewer on a per-player Bukkit scoreboard does not get thesntp_nameplatesfallback team for players on no team. - Bedrock (Floodgate) viewers get no HUD and no nameplate entities, and keep the vanilla name tags.
- The boss bar color of
hud.bossbar-colorloses its bar for every plugin, not only for the HUD lines.
Merging another pack and BetterModel
Merge a ready-made pack
You need a finished pack, as a folder or a .zip. Drop it into texturepack/merge/. SnTexturePack merges it as it is.
texturepack/merge/
SomePlugin.zip
my-pack/
pack.mcmeta
assets/For a pack outside the plugin folder, list its path relative to the server folder in config.yml.
merge:
paths:
- plugins/OtherPlugin/generated/pack.zip/sntexturepack reload
/sntexturepack build- Your own files win when a path exists on both sides.
- Item models, fonts,
sounds.jsonand lang files of the same path are merged with yours. - The overlays of a merged pack are kept. A
pack.mcmetathat is not strict JSON is read leniently, and one build line says so. - A folder with no
pack.mcmetaand noassets/is read as a folder of packs, two levels deep. - Shaders found in a merged pack are removed, with one report line. The one exception is BetterModel's player-limb shader.
- Packs whose content is already built in, such as a flat player head pack, are skipped with a note. Delete them.
Models with BetterModel
Models are made and drawn with BetterModel. You do not draw models with SnTexturePack. You need BetterModel installed, and nothing else.
- Install BetterModel 2.2.0 or newer.
- Put your model files in BetterModel's own models folder,
plugins/BetterModel/models/. - Run
/bettermodel reload.
Every successful /bettermodel reload rebuilds this pack and sends it to the players online. You do not need /sntexturepack build. BetterModel's own pack-type does not matter, because the pack is taken from BetterModel in memory.
bettermodel:
enabled: true
rebuild-on-reload: trueenabled: falsestops the merge.rebuild-on-reload: falsestops the automatic rebuild. Run/sntexturepack buildyourself.- Do not list BetterModel's build folder in
merge.paths. Thebettermodelsection already merges it. - Move old
.bbmodelfiles fromtexturepack/models/toplugins/BetterModel/models/. The old folder is no longer read.
The BetterModel that comes with SnTexturePack
SnTexturePack carries its own BetterModel build, SnBetterModel. It is BetterModel 2.2.0 (MIT license, by toxicity188) changed so the models also show on old clients. It keeps BetterModel's name, version and API, so every plugin made for BetterModel 2.2.0 works with it.
On every start, with bettermodel.embedded.enabled: true (the default), the plugin checks plugins/:
Found in plugins/ | What happens |
|---|---|
| No BetterModel | The embedded jar is written as BetterModel-<version>.jar |
| An older SnBetterModel | It is replaced by the embedded one |
| The same or a newer SnBetterModel | Nothing |
An original BetterModel, replace-original: true (default) | It is renamed to <name>.jar.dis (never deleted) and the embedded jar is written |
An original BetterModel, replace-original: false | It stays. One warning line |
Restart the server once after a jar is written: BetterModel loads before every plugin that uses it, so it never loads while the server runs. The embedded build runs on 1.21 to 1.21.11 servers. On other versions nothing is installed and one console line says so.
What each client sees of the models:
| Client | Models |
|---|---|
| 1.21.4 and newer | As BetterModel draws them |
| 1.20 to 1.21.3 | Display entities with the custom-model-data models in the pack (cubes with a free rotation are left out) |
| 1.19.3 and older | Not supported: models do not show right |
Importing from Nexo, ItemsAdder or CustomNameplates
What you need
The old plugin's folder, plugins/Nexo, plugins/ItemsAdder or plugins/CustomNameplates. It is only read from disk, so the old plugin does not need to run.
Example: import Nexo
/sntexturepack import nexo
/sntexturepack import nexo apply
/sntexturepack reload
/sntexturepack build- The first command is a dry run. It prints what would be imported, skipped, copied and discarded, and writes nothing.
- The second command writes the files. Without a mode,
dry-runis the default. reloadandbuildput the imported content in the pack.
The import runs off the main thread and never overwrites a file you edited.
What the Nexo import keeps and writes
It keeps item ids (nexo:<id>), custom model data, item_model keys, armor ids (nexo:<set>), glyph characters, glyph placeholders and sound ids. It writes:
| Folder | Content |
|---|---|
texturepack/items/nexo/ | Item ymls and their files. |
texturepack/armor/nexo/ | Armor sets. |
texturepack/blocks/nexo/ | Blocks. |
texturepack/glyphs/nexo/ | Glyphs. Animated gif glyphs become a strip PNG with a .png.mcmeta. |
texturepack/sounds/nexo/ | Sounds. |
texturepack/merge/nexo/ | Nexo's external packs. |
texturepack/lang/nexo/ | Nexo's lang files, with <g:id> written as <glyph:id>. |
Variants
-
Edited files: if you edited
texturepack/items/nexo/x.yml, the next import writesx.imported-1.yml. Both are read until you merge them by hand. A repeated import with identical output writes nothing. -
Refresh one part: move that folder aside, for example
texturepack/glyphs/nexo/. Run/sntexturepack import nexo apply, thenreloadandbuild. Characters, custom model data and block states stay the same. -
Raw shifts: menus written for Nexo use its raw shift characters. Set
glyphs.raw-shifts: trueinconfig.ymlto keep their layout. The report says so. -
Flat heads: items that name Nexo's flat heads keep them with
heads.flat.item-model: nexo:2d_player_headandheads.flat.large-item-model: nexo:2d_player_head_large. The report says so too. -
Old font ids: text that other plugins saved with Nexo's font ids needs
glyphs.extra-fonts: [nexo:default, nexo:shift]. The report says so. -
Not imported: item names and lore, hardness, drops, block sounds, furniture and other mechanics are listed in the report. So are per-glyph permissions and
.bbmodelfiles. Nexo's own sample content is skipped. -
ItemsAdder:
/sntexturepack import itemsadderis best effort. It reads items and font images fromcontents/<namespace>/configs/and writesitems/itemsadder/andglyphs/itemsadder/. It does not read blocks, armor or sounds. Add ItemsAdder's pack folders tomerge.paths. -
CustomNameplates:
/sntexturepack import customnameplatesbrings its plates, images and boss bars over. See What the CustomNameplates import brings. -
Your own namespace: the import keeps the source namespace. Run
/sntexturepack namespace nexo sntpafterwards to move it to yours. See Renaming a namespace.
The Nexo block state mapping is not yet confirmed in game. Before you import worlds with placed Nexo blocks, place one Nexo block of each type. Compare its F3 block state with state: in blocks/nexo/*.yml.
What the CustomNameplates import brings
/sntexturepack import customnameplates [dry-run|apply] reads plugins/CustomNameplates (contents/ and configs/), needs the same sntexturepack.admin.import permission and never overwrites a file:
| CustomNameplates | Becomes |
|---|---|
contents/nameplates/<id>.yml and its left, middle and right PNGs | Plates in texturepack/plates/customnameplates/nameplates.yml (the PNGs in nameplates/; the display name as a comment). |
contents/backgrounds/<id>.yml | Plates in texturepack/plates/customnameplates/backgrounds.yml: left and right as they are, the middle is the 1 pixel strip 1: b1; the paddings are the left-margin and right-margin of the first background-text that draws it (a later use with other margins is reported). |
contents/images/<id>.yml and its PNG | Glyphs in texturepack/glyphs/customnameplates/images.yml (ascent and height kept, automatic characters). |
configs/bossbar.yml, background-text and shift-text of configs/custom-placeholders.yml | The bossbars: of hud.yml. |
A plate or glyph keeps the id of its yml name; when the content already has that id outside the customnameplates/ folders it becomes np_<id>. In the HUD texts %np_image_x% becomes <glyph:x>, %np_background_x% becomes <plate:bg> inner </plate> (the inner text converted the same way), %np_offset_n% becomes <shift:n>, and %np_shift_x% becomes its text inside <down:N>, N being 7 minus the ascii ascent of its font in the shift-fonts of CustomNameplates' config.yml (a shift_1 with ascii:3 gives <down:4>; a font with no usable entry leaves the text plain, with a report line). Any other %np_...% placeholder stays as written and is reported once per bar.
What is lossy, and said in the report:
- A nameplate image whose middle is wider than one pixel is written as a generated 1 pixel PNG (your source is not touched): the column every column equals, or for a tile that varies the column with the most visible pixels. The plates that vary are named with the column used; they lose their pattern.
- A bar condition is mapped when it is one
permission, anequals/!equalsof%player_world%with a literal world, aworld/!worldlist, orgeyser: false(the HUD never shows to Bedrock whilehud.bedrock-detectionis on). Anything else (other condition types, compound||/&&, several permissions,geyser: true) leaves that bar out of the import with one report line per condition, so it is never shown to more players than before.modules.bossbars: falseimports no bar, and only the firsttext-display-orderentry of a bar is kept. - Reported and not imported: chat bubbles (
contents/bubbles,bubble.yml,bubble-text,nameplate-text),conditional-text(also the actionbar),static-text,switch-text,vanilla-hud,advance-data.yml, CustomNameplates'config.ymland the entity settings ofnameplate.yml, image PNGs no yml uses, a boss barcolorother thanWHITEoroverlayother thanPROGRESS, andbackground-textwithshadow: false. Thedefault-nameplateofnameplate.ymlbecomes a report line naming thenameplates.default-platevalue to set, and one line lists the imported nameplate ids to put undernameplates.plates.
hud.yml is one file and always exists after the first start, so on a real server the imported bars go to hud.imported-<n>.yml, which nothing reads. Copy its entries into hud.yml (or move hud.yml aside and rename the imported file), then run /sntexturepack reload.
Migrating from CustomNameplates
SnTexturePack draws nameplates and a HUD itself, so it replaces CustomNameplates. A checklist:
- Keep
plugins/CustomNameplatesin place and run/sntexturepack import customnameplates(a dry run), read the report, then/sntexturepack import customnameplates apply. - Merge the bars of
texturepack/hud.imported-1.ymlintotexturepack/hud.yml(or rename it overhud.yml). - List the imported plates under
nameplates.platesand setnameplates.default-plateas the report says; turnnameplates.enabledandhud.enabledon. /sntexturepack build, which reloads first (the plates, the lowered fonts and the transparent boss bar color are part of the pack).- Give your players
sntexturepack.nameplate.<id>for the plates they should get, through your permissions plugin. - Remove CustomNameplates from
plugins/. The permission its bars used (for examplebossbar.showa) can stay as thepermissionof the matchinghud.ymlbar. Remove CustomNameplates' resource pack frommerge.pathsandtexturepack/merge/if you had merged it.
Renaming a namespace
What you need
Content whose ids use a namespace you want to change, such as the one an import kept. Run it on the main server when servers are linked.
Example: rename old to sntp
/sntexturepack namespace old sntp
/sntexturepack namespace old sntp apply
/sntexturepack build- The first command is a dry run. It lists the ids per section, the folders that move, the assigned values that move, what blocks the rename and what stays as it is. It writes nothing.
- The second command writes the rename and re-reads the content.
buildsends the renamed pack.
What the apply changes
| What | How |
|---|---|
Keys "old:x" | Become "sntp:x", with aliases: ["old:x"]. Items in inventories, placed blocks and furniture, and other plugins' configs keep finding them. |
item-model | An entry without one gets item-model: "old:x", so the items already handed out keep their look. Armor pieces each get theirs; a block gets it on its item:. |
| Values | Every value that points into old (texture, model, files, overlay, layers) follows to sntp, and so do the texture values of the model jsons. |
| Folders | texturepack/<section>/old/, merge/old/ and lang/old/ move to sntp/. A file the new folder already has stays where it was and is reported. |
data/assignments/ | The keys move with the same custom model data, block state and trim. |
Variants
- Blocked: nothing is written when a new id already exists, when
data/assignments/already has a value for a new id, whentexturepack/items/old/holds loose PNGs that are items by their path, or when an entry is written in a shape the rename cannot edit. The dry run lists why. - Not allowed: the first namespace cannot be
pack.namespace(change that setting instead) orminecraft. - Left as they are:
glyphs.extra-fonts,heads.flat.*and other plugins' configs. The dry run counts the configs that mentionold:; the aliases keep them working. - Glyphs: glyph ids have no namespace. Only their files move.
Example: take the old namespace out of your files for good
After the rename your ymls still say old: on purpose (aliases, item-model), so items in the world keep working. Run the same commands again:
/sntexturepack namespace old sntp
/sntexturepack namespace old sntp applyWith nothing left to rename, the command retires old instead:
| What | How |
|---|---|
item-model: "old:x" and aliases: ["old:x"] | Leave the ymls. An item then takes its id as item model; custom model data never changes. |
Comment lines that name old | Leave the ymls (the importer's headers). |
glyphs.extra-fonts and heads.flat.* | The old fonts leave the list; the flat heads move to sntp: with the same custom model data. |
merge/ | Zips and folders lose old from their names. The paths inside a pack stay: its own files name them. |
data/assignments/legacy-names.json | Receives every old name. The pack still draws the old item models, equipment assets and fonts, old ids still resolve, and the item updater moves every stored item it sees to the new names. |
Every yml is read back without the old names before it is written; one that would not read the same is left as it was and listed. Change the other plugins' configs to the new names when you can: the old ones keep working meanwhile.
Hosting and sending
What you need
Either a TCP port that players can reach, or a web host where you upload the zip. Pick one of the two examples below.
Example: the built-in HTTP server
SnTexturePack serves the zip on its own port. This is the default.
hosting:
mode: self
bind: 0.0.0.0
port: 8082
public-url: "http://play.example.net:8082"
sending:
on-join: true
on-build: true
join-delay-ticks: 0
mandatory: truepublic-urlis the address players reach. If it is empty, the server IP and port are used and one warning is logged.- The server speaks plain HTTP.
threadsis the number of downloads served at the same time.- A change under
hostingrestarts the HTTP server only when the mode, bind address, port or thread count changed.
Example: an external URL
Host the zip yourself, then point the plugin at it.
hosting:
mode: external
external-url: "https://cdn.example.net/packs/pack.zip"
sending:
on-build: false- Run
/sntexturepack build. - Upload
output/pack.zipto the URL. - Run
/sntexturepack sendto send the pack to everyone online.
The hash sent to clients is the one of the built zip. An outdated upload makes clients report a failed download. That is why on-build is off here: nobody is sent a pack that is not uploaded yet.
Required or optional
| Setting | Result |
|---|---|
sending.mandatory: true | A player who declines or fails the download is kicked with a message. |
sending.mandatory: false | The player keeps playing without the pack. |
The prompt and the kick texts are messages.prompt, messages.kick-declined and messages.kick-failed in lang/messages_en.yml.
When the pack is sent
sending.on-joinsends the pack when a player joins.join-delay-tickswaits that many ticks first.sending.on-buildsends the new pack to everyone online after/sntexturepack build./sntexturepack send [player]sends the current pack to one player or to everyone online.
Pterodactyl
On Pterodactyl the HTTP port must be an allocation of the server.
- Add an extra allocation to the server in the panel.
- Set
hosting.portto that port. - Set
hosting.public-urlto the address players use, with that port, such ashttp://play.example.net:8082. - Restart the server.
The port must be reachable by players, not only by the server. If players never get the pack, check the firewall and hosting.public-url first.
Linked servers
What you need
One server that builds (the main, usually the lobby) and any number of followers (the other lobbies and the modes). Only the main needs a port that players reach.
Example: one lobby builds for the whole network
On the main:
hosting:
mode: self
port: 8082
public-url: "http://play.example.net:8082"
link:
role: main
token: "a-long-random-secret"On a follower, for example Gens:
sending:
on-build: false
link:
role: follower
token: "a-long-random-secret"
main-url: "http://10.0.0.5:8082"
poll-seconds: 10- Set the same
link.tokenon every server. - Set
link.main-urlto the main's pack host as the follower reaches it. An internal address works. - Run
/sntexturepack reloadon every server. - Edit and build only on the main:
/sntexturepack build(it reloads first).
Within link.poll-seconds every follower takes the new content and pack. /sntexturepack open, give, glyph tags, custom blocks and furniture show exactly what the main has. Players download the pack from the main.
Follower sending.on-build | Players online when a new pack arrives |
|---|---|
true (another lobby) | Get the new pack at once. |
false (a mode in production) | Keep theirs. They get the new one when they join again. A player coming from a lobby already holds it, so nothing downloads. |
Behind a Velocity proxy, moving between servers that send the same pack reloads nothing: Velocity drops a pack whose hash the player already holds.
What a follower never does
- It never builds: not on start, not after
/bettermodel reload, and/sntexturepack buildis refused. - It refuses
/sntexturepack import ... apply. - It never writes
data/assignments/. - It opens no port.
hosting.*is ignored.
Its own texturepack/ is replaced by the main's next content. The replaced folders are kept once in cache/link/previous/.
/sntexturepack link shows the role, the hashes in use and the last check. /sntexturepack link sync checks the main right now. When the main cannot be reached, followers keep sending the pack they have and log one line. With bettermodel.link-models: true (the default) the main also shares BetterModel's models/ and players/ folders: a follower swaps them in, reloads BetterModel and compares its model fingerprint with the main's. A difference (another BetterModel build, or a plugin that adds models on one server only) is one warning line, because the bones would then use other values than the main's pack. A follower with link-models: false keeps its own models. Update the followers to 1.23.0 or newer before the main: an older follower refuses a bundle that carries models and keeps its last pack until it is updated (or set link-models: false on the main until every follower is).
Bedrock (Geyser)
Players who join through Geyser can see the custom content too. Geyser needs a Bedrock resource pack and its own mapping files, and /sntexturepack bedrock makes both from your content:
- Build the pack first (
/sntexturepack build), then run/sntexturepack bedrockon the server that builds the pack (the main, when servers are linked). It reloads first, likebuild. - Open
plugins/SnTexturePack/output/bedrock/. It holds up to three folders:packs/sntexturepack.mcpack: the Bedrock resource pack.custom_mappings/sntexturepack_items.json, plussntexturepack_blocks.jsonwhen you have blocks.extensions/, only when BetterModel has models:SnTexturePackGeyser.jar(our Geyser extension) andsntexturepack/models.json(the models it draws).
- Copy the folders into Geyser's folder:
plugins/Geyser-Velocity/on a Velocity proxy, or the server folder of a Geyser Standalone. Keepenable-custom-content: truein Geyser's config. - Restart Geyser (the proxy, or the Geyser Standalone server).
Run the command and copy again after you change the content. The pack version follows the content, so Bedrock players download the new pack on their next join.
| Content | On Bedrock |
|---|---|
| Flat items | Their icon, in the inventory and in hand (item/handheld items are held like tools) |
| 3D items and furniture items | The model in hand and on the head, with the model's own display settings. The inventory icon is the model as the Java inventory shows it |
| Armor | The piece icon, and the set's body texture worn on the player. A helmet with a 3D model: is worn as its model on the head, as on Java |
| Blocks | Note block and tripwire blocks with their faces or their model |
| Glyphs | The same size as on Java (an animated glyph shows its first frame). Images taller than a text line, such as logos and chat dialog images, show too, overflowing the line as on Java |
| Menu backgrounds | Drawn on the Bedrock chest screen behind the slots, with the menu title |
| Furniture | Each placed piece shows on an invisible armor stand wearing its item |
| Sounds | The same sound ids |
| Items of merged packs | Every item a merged pack adds (another plugin's cosmetics, a ready-made pack) is converted like one of yours: its icon, and its 3D model in hand and on the head |
| BetterModel models | Each model is a Bedrock entity: it moves, turns its head, plays its animations and hides the bones BetterModel hides |
Not on Bedrock: text shaders and effects, the HUD, plates and flat player heads.
Merged packs: the items of the packs you merge (merge/, merge.paths, another plugin's pack) are read from the pack of your last build, so build first and convert after. An item is found by its custom model data and by its item model, and gets both Geyser mappings, so a hat on the head, an item in the hand or a backpack on its armor stand shows on Bedrock as it does on Java. A dyed leather cosmetic keeps its color: the color is painted into its Bedrock texture. When a pack gives an item model and nothing tells which item carries it, it goes on the items of bedrock.merged.item-model-items (paper by default). bedrock.merged.skip-namespaces leaves whole namespaces out; by default the bone pieces of BetterModel and ModelEngine, which no player ever holds.
The icon of a 3D item of a merged pack is drawn at bedrock.merged.model-icon-size pixels (32 by default, from 16 to 64; your own 3D items use 64). Bedrock keeps every item icon, vanilla ones included, on one shared sheet, and hundreds of 64 pixel icons outgrow it: vanilla items then turn invisible in inventories. Lower the value if that happens on your server.
BetterModel models: Java draws a model with display entities, which Bedrock does not have. The conversion turns every .bbmodel of plugins/BetterModel/models into a Bedrock entity inside the same .mcpack, and our Geyser extension (the extensions folder, Geyser 2.12.1 or newer) shows the mob that carries a model as that entity. Geyser moves it like any mob; the plugin only tells the extension which animations play and which bones are hidden. A model with no entity behind it (the NPC of another plugin, drawn at a place of its own) has no mob to show, so the plugin gives it one for Bedrock players only: a marker armor stand that is never saved, hidden from every player and shown only to the Bedrock players BetterModel shows that model to. It stands where the model stands and faces where it faces, and the plugin that owns the model keeps deciding who sees it. Nothing changes for Java players, and a Geyser without the extension shows what it showed before. Convert and copy again after you add or change a model: when the copy in Geyser is older than your models, that model is left alone and the console says so. Set bedrock.models.enabled: false to turn it off.
Not shown: meshes (a Bedrock entity is made of cubes), bones that hold an item or a player limb, every frame but the first of an animated texture, a model on a player (a disguise), ModelEngine models, and a model with no entity that its plugin does not show to Bedrock players (a pet plugin that sends them a substitute of its own). A model with no entity is drawn where BetterModel says it stands, so one whose plugin moves it by other means and still shows it to Bedrock players stays at the place it was created. The head of a model an armor stand carries stays as its animations leave it: Geyser sends an armor stand's facing as its head pitch, so there is no look to follow. Two animations that move the same bone at the same time add up on Bedrock.
Long names: Bedrock on consoles refuses a pack that has a file path of 80 characters or more. A Bedrock name longer than 42 characters is shortened by itself; the report names any path that is still too long.
Items are matched by their custom model data on every server, and also by their item_model on servers 1.21.2 and newer. Items that other plugins hand out with custom model data only show too. One limit: Geyser matches a custom model data value as "this value or higher", while Java matches it exactly. A stack whose value is not one of yours but sits just above one of yours on the same material shows your item on Bedrock.
Glyphs: Bedrock draws one pixel of a font cell as one text pixel and centers the cell on the text line, so every glyph keeps its Java size: its height, and its width scaled the same way. Each glyph goes in the smallest cell (16, 32, 64 or 128 px) that holds its width and its rows from the baseline (ascent), and gets its own Bedrock character on pages U+F000 to U+F7FF, which vanilla Bedrock never uses: 16 px cells on pages F0, F1 and F5 to F7 (1264 characters), 32, 64 and 128 px cells on F2, F3 and F4 (256 each). A character is assigned once in data/assignments/glyphs.yml (<id>#bc<cell>) and stays with its glyph; only when a cell size runs short are the characters of glyphs no longer in the content (renamed or deleted) freed, as many as needed. Run /sntexturepack bedrock again after such a build. Automatic Java glyph characters skip that range. Bedrock keeps its own symbols. A glyph no cell holds (taller or wider than 128 px) is a menu background on Bedrock. A one line icon (height up to 16) whose PNG is larger than the drawn size is redrawn at that size as pixel art: hard edges, only colors the PNG holds, and each pixel chosen with its neighbors in view so outlines close and straight edges stay straight. Taller glyphs are shrunk by area averaging. Bedrock draws one font pixel per text pixel on every page, so an emoji has exactly its Java height in pixels there and cannot be HD; very fine detail (a flag with thin stripes) cannot survive at 8 px. bedrock.icon-height (default 0, the Java height) draws those icons taller on Bedrock, for example 12, centered on their line: never taller than the PNG, and an icon that would not fit its cell keeps its Java height. Java players are not affected. Run /sntexturepack bedrock on the main after changing it.
Text layer (bedrock.text-layer, on by default): texts sent to Bedrock players are rewritten after the glyph tags. Bedrock players are detected by their Floodgate UUID (most significant bits 0). Every glyph becomes its Bedrock character, negative shifts are removed, positive shifts become invisible spacers of the same width, and plate characters are removed. A menu background becomes a marker (sntp:XXXX;) at the start of the text, which the chest screen reads; anywhere else the marker shows as plain text. Java players get exactly the texts they got before. A Bedrock player whose UUID is a Java one (a Floodgate account linked to a Java account, or Geyser without Floodgate) gets the Java texts.
Menu backgrounds: when your content has a menu background, the Bedrock pack carries a patch of Bedrock's chest screen. A chest whose title holds a marker hides the vanilla title, draws the background at its Java size, and shows the title text where Java draws it, without the marker. Bedrock places the chest grid, the player inventory and the hotbar a few pixels lower than Java, so the background is cut into those three bands and each band moves by its own amount. On phones such a chest keeps the desktop layout. The visible part of each background is centered on the menu by itself, the way a Java menu places it, so imported menus need no setting. bedrock.menu-offset (pixels [right, down], default [0, 0]) only moves a background drawn off-center on purpose. Use bedrock.menu-layer to draw the image over more or less of the menu. Convert and copy again after changing them.
Furniture: Geyser shows no item displays, so each placed piece also gets an invisible armor stand wearing the piece's item on its head. Only Bedrock players see it; Java players never do. It turns with the piece, is removed with it, and is never saved with the world (it comes back when its chunk loads). bedrock.furniture-stand-offset (blocks [right, up, forward]) moves the stand so the item sits where the piece is, and bedrock.furniture-stands: false turns the stands off.
Using the values in other plugins
Other plugins need the numbers and keys SnTexturePack hands out. You only need a built pack. You have two ways to read the values.
/sntexturepack info <id>prints the values of one id. Click a value to copy it.output/values.ymllists every id. It is rewritten after every build and never edited by hand.
# output/values.yml (an excerpt: your numbers differ, and the real file also has comments)
items:
"sntp:aqua_helmet":
material: "LEATHER_HELMET"
custom-model-data: 100004
item-model: "sntp:aqua_helmet"
equipment-model: "sntp:aqua"
piece: "helmet"
"sntp:ruby":
material: "PAPER"
custom-model-data: 100002
item-model: "sntp:ruby"
armor:
"sntp:aqua":
equipment-model: "sntp:aqua"
fallback-color: "#33CCFF"
layer-1: "sntp:aqua/layer_1"
layer-2: "sntp:aqua/layer_2"
pieces: ["sntp:aqua_helmet"]
blocks:
"sntp:ruby_ore":
block-type: "NOTE_BLOCK"
state: 12
block-data: "minecraft:note_block[instrument=harp,note=12,powered=false]"
item: "sntp:ruby_ore"
glyphs:
heart:
unicode: \uE000
tag: "<glyph:heart>"
placeholders: ["<heart>", ":love:"]
placeholder: "%sntp_glyph_heart%"
chat: true
# char: the raw character, always the last line of a glyph block
sounds:
"sntp:coin":
event: "sntp:coin"
files: ["sntp:coin/pickup"]
stream: false
effects:
fire:
hex: "#FF8A3C"
tag: "<fx:fire>Burning text</fx>"
placeholder: "%sntp_effect_fire%"
effects: ["shake", "blink"]
example: "Burning text"| You need | Paste this value |
|---|---|
| An item in another plugin | material with custom-model-data, or the item-model key. |
| A worn armor model | equipment-model. |
| A glyph in a text field | tag, placeholder, or unicode in double quotes. |
| A sound | event. |
| A placed block | block-type, state or block-data, and item. |
| A text effect | hex, tag or placeholder. |
- Keep the quotes when you paste a value into a yml.
unicodeis the escape that a double-quoted yml string turns into the character.charis the raw character and comes last in a glyph block.- Clients 1.21.3 and older read the custom model data. Newer clients read the item model. Items made by
givecarry the item model on Paper 1.21.3 and newer. placeholders.aliasregisters a second PlaceholderAPI identifier that answers like%sntp_...%. Set it tomypackto make menus that use%mypack_...%work.
More features
Flat player heads
Two flat player heads are built into the pack. A player head with one of these item models shows its owner's face flat, on every client from 1.17.
heads:
flat:
enabled: true
item-model: "sntp:2d_player_head"
large-item-model: "sntp:2d_player_head_large"The large head is twice the size in menus. Other plugins put the item model on a PLAYER_HEAD item. Run /sntexturepack info sntp:2d_player_head for its values.
Translation overrides
Files in texturepack/lang/ replace vanilla texts, such as the pause menu, with <glyph:id> and <shift:N> resolved.
texturepack/lang/
global.json
es_es.json{
"menu.game": "<glyph:heart> Game Menu"
}global.jsonapplies to every language a client can select.<code>.json, such ases_es.json, applies to that language only. It wins overglobal.jsonkey by key.- A file directly in
lang/wins over one in a subfolder. - A tag that names no glyph stays as typed, and one build line names the keys.
Replace vanilla files
A file in texturepack/vanilla/ replaces the vanilla file at the same path. Start the path with the namespace, with no assets/ in front.
texturepack/vanilla/
minecraft/textures/item/diamond_sword.png
minecraft/textures/gui/sprites/hud/hotbar.png- The first file changes every diamond sword.
- The second file is a custom hotbar. Clients 1.17 to 1.20.1 get it copied onto their
widgets.pngsheet. - Old
textures/items/andtextures/blocks/folders are moved toitem/andblock/, and the build says so. - Where a path already exists in your content, your content wins.
Browse menus
/sntexturepack open [section]browses everything the pack adds: a section lists its files (one button each, also when there is only one), a file lists its entries. The built-in flat heads show asflat-heads(lang keystatus.flat-heads-file). Hover an entry to see the same values asinfo. A click gives you an item, prints a glyph's tags in chat or plays a sound./sntexturepack emojishows the chat glyphs the player may use.- The menus are the ymls in
guis/. They are managed by SnLib, and every text and icon is yours to change.
Item updater
The item updater gives stored items the custom model data that clients 1.21.3 and older need. It also puts the armor trim on custom armor pieces. Its switches are under item-updater in config.yml.
If a menu from another plugin stops recognising its buttons, set item-updater.on-inventory-open: false.
Troubleshooting
| Symptom | What to check |
|---|---|
| Nothing changed in game | Run /sntexturepack build: it reloads first. A plain reload never rebuilds the pack. |
An entry is missing from /sntexturepack list | Read the console. A skipped entry gets one line that names the file and the id. |
| A texture is not found | The line shows the exact path it expects, such as texture 'ruby' not found, expected items/ruby.png. |
| A texture is removed | A texture above validation.max-texture-size (1024 pixels) is removed and reported. |
Raw tags such as <core_check> in your own inventory while in creative | Since 1.29.2 creative players on Java 1.20.5 or newer see everything drawn, their own inventory too: each drawn copy carries its original text, which is put back when the creative client hands the item to the server, so nothing drawn is ever saved. Older clients through ViaVersion and Bedrock players in creative see menus drawn and their own inventory raw (the safe side). Install ViaVersion on the backend, not only on the proxy, so old clients are told apart. |
| Players never get the pack | Check hosting.public-url, the open port and, on Pterodactyl, the allocation. |
| 1.17 or 1.18.0 players stay on the pack loading screen | Update to 1.27.3 or newer and rebuild. Older versions shipped a text shader those two clients cannot read, so they reloaded the pack forever. |
| Players on phones (Android launchers) get "error loading the pack" | Update to 1.30.1 or newer and rebuild. Older versions shipped a text shader that GLES graphics (phones, some launchers) cannot compile, so those clients dropped the pack. |
| The frame rate collapses whenever text fills the screen (name tags, chat) | The pack was built by 1.30.2, whose text shaders draw slowly on NVIDIA cards. Update to 1.30.3 or newer and rebuild. |
| Players stay a long time on the pack loading screen | The text shaders grow with every effect in effects.yml, and some graphics cards take long to compile them. Remove effects you do not use and rebuild; as a test, text-shaders.enabled: false builds a pack without them. |
1.21.9 or newer clients log Couldn't load ... pack metadata for the server pack | Update to 1.30.1 or newer and rebuild: its pack.mcmeta follows the 1.21.9 format rules. |
| Custom blocks change look | Set both Paper block update options to true. |
| A client sees still glyphs | Clients newer than 26.3 and some shader packs show the first frame. |
| Other plugins' boss bars have no bar | The HUD made hud.bossbar-color transparent. Pick a color nobody uses and rebuild, or turn hud.enabled off. |
| Boxes where a plate or a lowered text should be | The player has no resource pack, or the pack was not rebuilt after adding the plate or a new <down:N>. |
| The HUD or a nameplate shows nothing | Both are off by default: check hud.enabled and nameplates.enabled, the line's permission and worlds, and that the player is not on Bedrock. |
| You need to see what is sent | Run /sntexturepack debug. The sending lines show every push, status answer and download. |