@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user