Create new tag - AlonsoAliaga/AlonsoTags GitHub Wiki
How to create new tags?
Tags will appear in the same order of creationg, to create new rewards simply follow the following format:
Tags:
#Tag identifier. This MUST BE UNIQUE for the same tag.
#You can setup your tags in one server and then copy tags.yml
#to others. Make sure they are the same in all server.
new-tag:
#You can use any material you want. Due to API changes and to be able to keep compatibility 1.8 - 1.16 durability
#is not supported in any version. Only materials. You can also use "CUSTOM_HEAD" to make the item a custom head with texture.
#If "CUSTOM_HEAD" is necessary to specify "Texture", otherwise default texture will be used.
#An additional material type was added. "RANDOM" will select a random material when server starts. IT WON'T DISPLAY A RANDOM MATERIAL EVERY TIME YOU OPEN THE GUI.
#Random material will be selected JUST ON RESTART/RELOAD.
#DURABILITY IS AVAILABLE ONLY IN PREMIUM VERSION!
Material: CUSTOM_HEAD
#This is only available in 1.14+
#This option allows you to use a CUSTOM textures for this item (using a texture pack)
#Leave it as 0 if you don't plan to use it or don't know how. THIS WILL NOT WORK IF MATERIAL IS CUSTOM_HEAD
Custom-model-data: 0
#Texture MUST be specified if material is CUSTOM_HEAD otherwise our default texture will be used.
Texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzMwZmVhNDQzNDlmMDczZjNmOTNjZTg2ZWM5ZWVlODJmODRhMWM1ZTI5NjdlYjFjMTliN2MzNWY5YTVlNWY5OSJ9fX0="
#Pattern is only necessary if material is a valid banner material.
#For compatibility and to make it easy for owners to make banners you MUST use banner materials from 1.13+
#It means you MUST use materials like: WHITE_BANNER, RED_BANNER, PINK_BANNER, etc..
#To make it even easier for you to create banners you can use this website: https://minecraft.tools/en/banner.php
#How to get this? Go to the page above and create one banner or get one from gallery.
#If you create a banner click on "Craft this banner". You'll see now give commands for 1.13+ and legacy version.
#PICK THE ONE FOR YOUR VERSION! If you use 1.8 - 1.12 then pick "/give command syntax (1.8 to 1.12):" otherwise use "/give command syntax (1.13+):" command.
#IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!
#You must copy ONLY what it inside braces { }.
#Example: /give @p minecraft:banner 1 0 {BlockEntityTag:{Patterns:[{Color:15,Pattern:"mc"}]}} => You only use '{BlockEntityTag:{Patterns:[{Color:15,Pattern:"mc"}]}}'
#Example: /give @p minecraft:black_banner{BlockEntityTag:{Patterns:[{Color:0,Pattern:"mc"}]}} => You only use '{BlockEntityTag:{Patterns:[{Color:0,Pattern:"mc"}]}}'
#REMEMBER, ONLY WHATS INSIDE BRACES! { }
#If string contains " you must escape them by adding a backslash before as in the example below. DO NOT ESCAPE FIRST AND LAST ONE.
#Quick reminder, the material you need to use is in the 1.13+ command version. Material is BLACK_BANNER in the example.
Pattern: "{BlockEntityTag:{Patterns:[{Color:11,Pattern:\"flo\"},{Color:15,Pattern:\"mr\"},{Color:15,Pattern:\"cbo\"},{Color:1,Pattern:\"mc\"},{Color:15,Pattern:\"tt\"}]}}"
#Should the tag be dyeable? DEFAULT or not specified it will be considered as false.
#If true, color gui will be opened if tag is selected.
Dyeable: true
#Default color for the tag. Remember that this will be the default color and all players with access
#to the tag will have access to it.
Default-color: "&6"
#Should flags be hidden for this tag icon?
#If true all flags will be hidden, including unbreakable, potion effects, patterns, damage, speed, etc
Hide-flags: true
#Tag that will be displayed. Don't use spaces before or after the tag. You can use spaces IN the tag.
#Example: Don't do this: " &6[MY TAG] ", just do "&6[MY TAG]"
#REMEMBER: If you set Dyeable to true, you MUST include {COLOR} string in Tag to
Tag: "{COLOR}[NEW]"
#Recommended to add "{COLOR}" before the text. This will be replaced with color red to show player doesn't have access to the tag.
Displayname: "&7&l{COLOR}Starter Tag"
#Recognition title. CURRENTLY NOT USED. IGNORE IT.
#{COLOR} is allowed here if tag is Dyeable.
Recognition-title: "&f{COLOR}❤ New player in YourNetwork! ❤"
#Permission required for this tag. Set to "none" to not require permission.
Permission: "none"
#Price for the tag. Set to 0 if tag can't be purchased. If permission is "none" too tag will be free.
Price: 0
Cost:
#Type? Available types: LEVEL,VAULT,TOKEN_MANAGER,PLAYER_POINTS,MATERIAL
Type: "VAULT"
#Material if type is MATERIAL?
Material: "DIAMOND"
#Should this item be unbreakable? (Only available in some versions)
Unbreakable: false
Lore:
Locked:
- "&7Free tag for all starters."
- "&7Preview: &f{TAG}"
- "&7Recognition title:"
- "&f{RECOGNITION-TITLE}"
- "{DYEABLE}"
- ""
- "{RIGHT-CLICK-TO-PREVIEW-MESSAGE}"
- "&cUnlock automatically."
Unlocked:
- "&7Free tag for all starters."
- "&7Preview: &f{TAG}"
- "&7Recognition title:"
- "&f{RECOGNITION-TITLE}"
- "{DYEABLE}"
- ""
- "{RIGHT-CLICK-TO-PREVIEW-MESSAGE}"
- "&eClick to select."
Selected:
- "&7Free tag for all starters."
- "&7Preview: &f{TAG}"
- "&7Recognition title:"
- "&f{RECOGNITION-TITLE}"
- "{DYEABLE}"
- ""
- "&aSelected."
No-permission-message: "&cYou don't have permission to use this tag!"
Not-enough-money-message: "&cYou don't have enough money to purchase this tag!"
Purchase-commands:
#These commands are run when a tag is purchased! (Free tags are included)
#Read more about commands on https://alonsoaliaga.com/AlonsoTags/command-modifiers
- "[MESSAGE]&aThis is a 'Post' command run before tag is set! (This is a message)"
Select-commands:
#These commands are run BEFORE the tag is changed!
#Read more about commands on https://alonsoaliaga.com/AlonsoTags/command-modifiers
Pre:
- "[MESSAGE]&aThis is a 'Pre' command run before tag is set! (This is a message)"
#These commands are run AFTER the tag is changed!
#Read more about commands on https://alonsoaliaga.com/AlonsoTags/command-modifiers
Post:
- "[MESSAGE]&aThis is a 'Post' command run before tag is set! (This is a message)"
Run /alonsotags reload and run /tags to view new tags!