Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Create BRICK Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Aug 31, 2023
1 parent 1247fd2 commit 119c7d5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.bukkit.inventory.ItemStack
import org.bukkit.metadata.FixedMetadataValue
import org.bukkit.util.Vector
import us.teaminceptus.plasmaenchants.api.*
import us.teaminceptus.plasmaenchants.api.PTarget.AXES
import us.teaminceptus.plasmaenchants.api.PTarget.SWORDS
import us.teaminceptus.plasmaenchants.api.PType.Companion.ATTACKING
import us.teaminceptus.plasmaenchants.api.PType.Companion.INTERACT
Expand All @@ -28,6 +29,13 @@ enum class PArtifacts1_20(
val target = event.entity as? LivingEntity ?: return@Action
target.velocity = target.velocity.add(event.damager.location.direction.multiply(1.5))
}, ItemStack(Material.BAMBOO_BLOCK, 64), Material.BAMBOO
),

BRICK(
AXES, Action(ATTACKING) { event ->
val target = event.entity as? LivingEntity ?: return@Action
target.velocity = target.velocity.add(Vector(0.0, -0.06, 0.0))
}, ItemStack(Material.BRICK, 64), Material.DECORATED_POT
)

;
Expand Down

0 comments on commit 119c7d5

Please sign in to comment.