Template documentation
Converts banner pattern names between those used in GUIs and those used in item NBT.
Syntax
Parameters are:
- fromNBT - Use this as first parameter if converting from NBT to GUI names
- name - The name of the pattern. Put this as the first parameter if converting from GUI names to NBT, otherwise put it as second parameter after "fromNBT". (See examples below)
Example
{{ BannerPatternTranslate | fromNBT | stripe_bottom }} generates:
base
{{ BannerPatternTranslate | base }} generates:
stripe_bottom
TemplateData
Converts banner pattern names between those used in GUIs and those used in item NBT
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Either "fromNBT" or the GUI name of the pattern | String | required |
| 2 | 2 | The NBT name of the pattern - only when first parameter is "fromNBT" | String | optional |