-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MagicHarp
committed
Oct 13, 2024
1 parent
06c51df
commit dfeb6bb
Showing
11 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/org/confluence/mod/effect/harmful/TentacleSpikesEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.confluence.mod.effect.harmful; | ||
|
||
import net.minecraft.world.effect.MobEffect; | ||
import net.minecraft.world.effect.MobEffectCategory; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class TentacleSpikesEffect extends MobEffect { | ||
private static int tickCount = 0; | ||
|
||
public TentacleSpikesEffect() { | ||
super(MobEffectCategory.HARMFUL, 0xFF0000); | ||
} | ||
|
||
@Override | ||
public void applyEffectTick(@NotNull LivingEntity pLivingEntity, int pAmplifier) { | ||
float damage; | ||
|
||
if (tickCount % 35 == 0){ | ||
tickCount = 0; | ||
damage = pAmplifier + 2.0F; | ||
pLivingEntity.hurt(pLivingEntity.level().damageSources().magic(), damage); | ||
} | ||
|
||
++tickCount; | ||
|
||
} | ||
|
||
@Override | ||
public boolean isDurationEffectTick(int pDuration, int pAmplifier) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/org/confluence/mod/item/sword/TentacleMaceSword.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.confluence.mod.item.sword; | ||
|
||
import net.minecraft.world.item.SwordItem; | ||
import net.minecraft.world.item.Tier; | ||
import org.confluence.mod.datagen.limit.CustomItemModel; | ||
import org.confluence.mod.datagen.limit.Image24x; | ||
import org.confluence.mod.datagen.limit.ReversalImage16x; | ||
|
||
public class TentacleMaceSword extends SwordItem implements ReversalImage16x { | ||
public TentacleMaceSword(Tier tier, int rawDamage, float rawSpeed, Properties properties) { | ||
super(tier, rawDamage, rawSpeed, properties); | ||
} | ||
} |
Binary file added
BIN
+404 Bytes
src/main/resources/assets/confluence/textures/item/tentacle_mace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters