From 4536bc7304eb56f422d00b2f820aeb316e8f4aed Mon Sep 17 00:00:00 2001 From: zxq5 Date: Wed, 1 Jul 2026 19:39:59 +0100 Subject: [PATCH] fixed build --- .../kotlin-compiler-4031853294287459636.salive | 0 build.gradle.kts | 3 +++ src/main/kotlin/dev/zxq5/items/Dragonite.kt | 16 ---------------- 3 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 .kotlin/sessions/kotlin-compiler-4031853294287459636.salive diff --git a/.kotlin/sessions/kotlin-compiler-4031853294287459636.salive b/.kotlin/sessions/kotlin-compiler-4031853294287459636.salive deleted file mode 100644 index e69de29..0000000 diff --git a/build.gradle.kts b/build.gradle.kts index c014450..b52c012 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -78,11 +78,14 @@ tasks.jar { val projectName = project.name inputs.property("projectName", projectName) + duplicatesStrategy = DuplicatesStrategy.EXCLUDE from("LICENSE") { rename { "${it}_$projectName" } } } + + // configure the maven publication publishing { publications { diff --git a/src/main/kotlin/dev/zxq5/items/Dragonite.kt b/src/main/kotlin/dev/zxq5/items/Dragonite.kt index 7c0cdf9..476decb 100644 --- a/src/main/kotlin/dev/zxq5/items/Dragonite.kt +++ b/src/main/kotlin/dev/zxq5/items/Dragonite.kt @@ -50,22 +50,6 @@ object Dragonite { val SWORD = register("dragon_sword", ::DragoniteSword, Item.Properties() .sword(ToolMaterial.NETHERITE, 3.0F, -2.4F) - .component(DataComponents.BLOCKS_ATTACKS, BlocksAttacks( - 0.25f, // 5 tick warmup - 1.0f, // standard disable cooldown - listOf( - BlocksAttacks.DamageReduction( - 90.0f, // horizontalBlockingAngle — 90° arc each side (180° total, same as vanilla) - Optional.empty(), // type — empty = blocks all damage types - 0.0f, // base — flat damage reduction - 1.0f // factor — multiplier (1.0 = block 100% of damage) - ) - ), // full block — check if this constant exists, else build the list manually - BlocksAttacks.ItemDamageFunction.DEFAULT, // check for this constant too - Optional.empty(), // no bypass - Optional.empty(), // default block sound - Optional.empty() // default disable sound - )) ) val HELMET = register( "dragon_helmet",