🦋 Debugging for the 1.2.
All checks were successful
Auto Build / Build (push) Successful in 2m40s

This commit is contained in:
2025-12-06 16:40:12 +01:00
parent d6103b078b
commit 97b73b0c55
17 changed files with 182 additions and 101 deletions

View File

@@ -59,10 +59,13 @@ enum class CustomItems(
BlasTechDL44(true, {
ItemStack.of(Material.CROSSBOW).apply {
itemMeta =
(itemMeta as DamageableCrossbow).apply {
(itemMeta as CrossbowMeta).apply {
addChargedProjectile(GunBullet.item)
displayName(Component.text("BlasTech DL-44", NamedTextColor.GOLD))
addEnchant(Enchantment.INFINITY, 1, true)
}
itemMeta =
(itemMeta as Damageable).apply {
setMaxDamage(1)
}
}
@@ -87,9 +90,9 @@ enum class CustomItems(
DeathPotion(true, {
ItemStack.of(Material.POTION).apply {
itemMeta =
(itemMeta as DamageablePotion).apply {
(itemMeta as PotionMeta).apply {
setMaxStackSize(1)
setMaxDamage(1)
customName(
Component.text("Potion de poison", NamedTextColor.DARK_PURPLE),
)
@@ -105,14 +108,18 @@ enum class CustomItems(
),
)
}
itemMeta =
(itemMeta as Damageable).apply {
setMaxDamage(1)
}
}
}),
HealPotion(true, {
ItemStack.of(Material.POTION).apply {
itemMeta =
(itemMeta as DamageablePotion).apply {
(itemMeta as PotionMeta).apply {
setMaxStackSize(1)
setMaxDamage(1)
customName(
Component.text("Potion de vie", NamedTextColor.DARK_PURPLE),
)
@@ -124,6 +131,10 @@ enum class CustomItems(
color = Color.RED
lore(listOf(Component.text("Click droit pour utiliser.", NamedTextColor.GOLD)))
}
itemMeta =
(itemMeta as Damageable).apply {
setMaxDamage(1)
}
}
}),
SpawnLocTool(true, {
@@ -230,10 +241,6 @@ enum class CustomItems(
}
}
interface DamageableCrossbow :
Damageable,
CrossbowMeta
interface DamageablePotion :
Damageable,
PotionMeta {