@@ -8,7 +8,12 @@ import net.minecraft.world.item.ItemStack
8
8
9
9
object ReboundEnchantmentMixinLogic {
10
10
11
- fun logic (player : ServerPlayer , stack : ItemStack , baseDamage : Float , magicDamage : Float , yOffset : Int ) {
11
+ fun logic (player : ServerPlayer , stack : ItemStack , baseDamage : Float , magicDamage : Float ) {
12
+ shootScythe(player, stack, baseDamage, magicDamage, 25 )
13
+ shootScythe(player, stack, baseDamage, magicDamage, - 25 )
14
+ }
15
+
16
+ private fun shootScythe (player : ServerPlayer , stack : ItemStack , baseDamage : Float , magicDamage : Float , yRotOffset : Int ) {
12
17
val entity = ScytheBoomerangEntity (
13
18
player.level(),
14
19
player.position().x,
@@ -22,7 +27,7 @@ object ReboundEnchantmentMixinLogic {
22
27
(entity as IchoriumScytheGhost ).setGhost(true )
23
28
24
29
entity.shootFromRotation(
25
- player, player.xRot, player.yRot + yOffset , 0.0f ,
30
+ player, player.xRot, player.yRot + yRotOffset , 0.0f ,
26
31
(1.5f + player.getAttributeValue(AttributeRegistry .SCYTHE_PROFICIENCY .get()) * 0.125f ).toFloat(), 0f
27
32
)
28
33
player.level().addFreshEntity(entity)
0 commit comments