-
Notifications
You must be signed in to change notification settings - Fork 0
kits & cosmetics
Esta página explica todas las opciones disponibles de kits y hats en el archivo config.yml.
Los kits permiten entregar una colección de objetos al jugador.
kits:
<id>:
cooldown: <segundos>
items:
- MATERIAL
- MATERIAL:cantidadThis page explains all available configuration options for kits and hats in the config.yml file.
Kits allow you to give players a collection of items.
kits:
<id>:
cooldown: <seconds>
items:
- MATERIAL
- MATERIAL:amountList of items the player will receive.
items:
- DIAMOND_SWORD
- BREAD:10
- APPLE:5If no amount is specified, the plugin will give 1 item.
kits:
starter:
cooldown: 3600
items:
- STONE_SWORD
- BREAD:10
- COOKED_BEEF:16Each cosmetic is represented by an item that can perform different actions when specific events occur.
cosmetics:
magic_hat:
material: PAPER
name: "&dMagic Hat"
lore:
- "&7A powerful hat."The item's material.
It must be a valid Bukkit/Paper material name.
Example:
material: PAPERComplete list of materials:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
The display name of the item.
Supports color codes using &.
name: "&6Magic Wand"The item's description.
Each line must be placed in a separate list entry.
lore:
- "&7First line"
- "&eSecond line"The item's Custom Model Data.
Allows you to use custom models for custom hats!
custom_model_data: 1234This option is optional.
Minecraft's modern Item Model (1.21.4+).
Allows you to use custom models for custom hats!
item_model: "minecraft:magic_wand"This option is optional.
The following events can be used for sounds, particles, and effects.
Triggered when the player moves.
Triggered when the player attacks an entity.
Triggered when the player takes damage.
Triggered when the cosmetic is equipped.
Allows sounds to be played when an event occurs.
sounds:
onmove:
cooldown: 40
list:
- block.anvil.useCooldown in ticks.
Minecraft uses:
- 20 ticks = 1 second
Example:
cooldown: 40Equivalent to 2 seconds.
Optional list of conditions using PlaceholderAPI.
All conditions must be met before the action is executed.
conditions:
- "%player_health% > 10"
- "%player_level% >= 20"Supported operators:
>
<
>=
<=
==
!=
List of sounds to play.
list:
- block.anvil.use
- entity.player.levelupComplete list of sounds:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
Spawns particles when an event occurs.
particles:
onmove:
cooldown: 10
type: CLOUD
count: 5Cooldown in ticks.
Conditions using PlaceholderAPI.
conditions:
- "%player_health% >= 10"The particle type.
type: FLAMEComplete list:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Particle.html
The number of particles to spawn.
count: 20Allows potion effects to be applied to the player.
effects:
onmove:
cooldown: 40
list:
- speed:1:40Each effect uses the following format:
effect:amplifier:duration
Example:
speed:2:200
This means:
- Speed II
- 200 ticks (10 seconds)
Cooldown in ticks.
Conditions using PlaceholderAPI.
conditions:
- "%player_health% > 5"List of effects.
list:
- speed:1:40
- jump_boost:2:100
- resistance:1:200Complete list of effects:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
Conditions use PlaceholderAPI.
Examples:
conditions:
- "%player_health% > 10"
- "%player_food_level% >= 15"
- "%player_level% == 30"Supported operators:
>
<
>=
<=
==
!=
If all conditions evaluate to true, the action will be executed.
cosmetics:
magic_hat:
material: PAPER
name: "&dMagic Hat"
lore:
- "&7An example cosmetic."
custom_model_data: 100
sounds:
onmove:
cooldown: 40
list:
- block.amethyst_block.chime
particles:
onmove:
cooldown: 5
type: ENCHANT
count: 10
effects:
onmove:
cooldown: 40
list:
- speed:1:40Lista de objetos que recibirá el jugador.
items:
- DIAMOND_SWORD
- BREAD:10
- APPLE:5Si no se especifica una cantidad, el plugin entregará 1 objeto.
kits:
starter:
cooldown: 3600
items:
- STONE_SWORD
- BREAD:10
- COOKED_BEEF:16Cada cosmético corresponde a un objeto que ejecutará diferentes acciones cuando ocurra un evento.
cosmetics:
sombrero_magico:
material: PAPER
name: "&dSombrero mágico"
lore:
- "&7Un poderoso sombrero."Material del objeto.
Debe utilizar un nombre válido de Bukkit/Paper.
Ejemplo:
material: PAPERLista completa de materiales:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
Nombre visible del objeto.
Acepta códigos de color utilizando &.
name: "&6Varita Mágica"Descripción del objeto.
Cada línea debe ir en una entrada distinta.
lore:
- "&7Primera línea"
- "&eSegunda línea"Custom Model Data del Resource Pack. Permite utilizar modelos personalizados para los sombreros custom!
custom_model_data: 1234Este valor es opcional.
Modelo moderno de Minecraft (1.21.4+). Permite utilizar modelos personalizados para los sombreros custom!
item_model: "minecraft:magic_wand"Este valor es opcional.
Los siguientes eventos pueden utilizarse en sonidos, partículas y efectos.
Se ejecuta cuando el jugador se mueve.
Se ejecuta cuando el jugador golpea una entidad.
Se ejecuta cuando el jugador recibe daño.
Se ejecuta cuando el jugador equipa el cosmético.
Permite reproducir sonidos cuando ocurre un evento.
sounds:
onmove:
cooldown: 40
list:
- block.anvil.useTiempo de reutilización en ticks.
Minecraft utiliza:
- 20 ticks = 1 segundo
Ejemplo:
cooldown: 40Equivale a 2 segundos.
Lista opcional de condiciones utilizando PlaceholderAPI.
Todas las condiciones deben cumplirse para ejecutar la acción.
conditions:
- "%player_health% > 10"
- "%player_level% >= 20"Operadores soportados:
>
<
>=
<=
==
!=
Lista de sonidos que se reproducirán.
list:
- block.anvil.use
- entity.player.levelupLista completa de sonidos:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
Genera partículas cuando ocurre un evento.
particles:
onmove:
cooldown: 10
type: CLOUD
count: 5Tiempo de reutilización en ticks.
Condiciones utilizando PlaceholderAPI.
conditions:
- "%player_health% >= 10"Tipo de partícula.
type: FLAMELista completa:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Particle.html
Cantidad de partículas que aparecerán.
count: 20Permite aplicar efectos de poción al jugador.
effects:
onmove:
cooldown: 40
list:
- speed:1:40Cada efecto utiliza el siguiente formato:
efecto:nivel:duración
Ejemplo:
speed:2:200
Significa:
- Speed II
- 200 ticks (10 segundos)
Tiempo de reutilización en ticks.
Condiciones utilizando PlaceholderAPI.
conditions:
- "%player_health% > 5"Lista de efectos.
list:
- speed:1:40
- jump_boost:2:100
- resistance:1:200Lista completa de efectos:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
Las condiciones utilizan PlaceholderAPI.
Ejemplos:
conditions:
- "%player_health% > 10"
- "%player_food_level% >= 15"
- "%player_level% == 30"Operadores disponibles:
>
<
>=
<=
==
!=
Si todas las condiciones son verdaderas, la acción se ejecutará.
cosmetics:
magic_hat:
material: PAPER
name: "&dSombrero mágico"
lore:
- "&7Un cosmético de ejemplo"
custom_model_data: 100
sounds:
onmove:
cooldown: 40
list:
- block.amethyst_block.chime
particles:
onmove:
cooldown: 5
type: ENCHANT
count: 10
effects:
onmove:
cooldown: 40
list:
- speed:1:40