@@ -78,11 +78,14 @@ tasks.jar {
|
|||||||
val projectName = project.name
|
val projectName = project.name
|
||||||
inputs.property("projectName", projectName)
|
inputs.property("projectName", projectName)
|
||||||
|
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
from("LICENSE") {
|
from("LICENSE") {
|
||||||
rename { "${it}_$projectName" }
|
rename { "${it}_$projectName" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// configure the maven publication
|
// configure the maven publication
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|||||||
@@ -50,22 +50,6 @@ object Dragonite {
|
|||||||
val SWORD = register("dragon_sword", ::DragoniteSword,
|
val SWORD = register("dragon_sword", ::DragoniteSword,
|
||||||
Item.Properties()
|
Item.Properties()
|
||||||
.sword(ToolMaterial.NETHERITE, 3.0F, -2.4F)
|
.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(
|
val HELMET = register(
|
||||||
"dragon_helmet",
|
"dragon_helmet",
|
||||||
|
|||||||
Reference in New Issue
Block a user