-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
011c4bd
commit 32399af
Showing
5 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
...ain/java/top/dragonmounts/objects/entity/entitytameabledragon/breeds/DragonBreedDark.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,77 @@ | ||
package top.dragonmounts.objects.entity.entitytameabledragon.breeds; | ||
|
||
import net.minecraft.init.Blocks; | ||
import net.minecraft.util.DamageSource; | ||
import net.minecraft.util.EnumParticleTypes; | ||
import net.minecraft.util.SoundEvent; | ||
import net.minecraft.util.math.Vec3d; | ||
import net.minecraft.world.World; | ||
import top.dragonmounts.inits.ModSounds; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.EntityTameableDragon; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.BreathNode; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.effects.PoisonBreathFX; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.sound.SoundEffectName; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.sound.SoundState; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.weapons.BreathWeapon; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.breath.weapons.BreathWeaponPoison; | ||
import top.dragonmounts.objects.entity.entitytameabledragon.helper.DragonLifeStage; | ||
import top.dragonmounts.objects.items.EnumItemBreedTypes; | ||
|
||
public class DragonBreedDark extends DragonBreed { | ||
DragonBreedDark() { | ||
super("dark", 0X5e5602); | ||
|
||
setImmunity(DamageSource.MAGIC); | ||
setImmunity(DamageSource.HOT_FLOOR); | ||
setImmunity(DamageSource.LIGHTNING_BOLT); | ||
setImmunity(DamageSource.WITHER); | ||
|
||
setHabitatBlock(Blocks.SOUL_SAND); | ||
setHabitatBlock(Blocks.NETHER_WART_BLOCK); | ||
} | ||
|
||
@Override | ||
public void onEnable(EntityTameableDragon dragon) {} | ||
|
||
@Override | ||
public void onDisable(EntityTameableDragon dragon) {} | ||
|
||
@Override | ||
public void onDeath(EntityTameableDragon dragon) {} | ||
|
||
@Override | ||
public void spawnClientNodeEntity(World world, Vec3d position, Vec3d direction, BreathNode.Power power, float partialTicks) { | ||
world.spawnEntity(new PoisonBreathFX(world, position, direction, power, partialTicks)); | ||
} | ||
|
||
@Override | ||
public SoundEvent getLivingSound(EntityTameableDragon dragon) { | ||
return dragon.isBaby() ? ModSounds.ENTITY_DRAGON_HATCHLING_GROWL : ModSounds.ZOMBIE_DRAGON_GROWL; | ||
} | ||
|
||
|
||
// @Override | ||
// public boolean isInfertile() { | ||
// return true; | ||
// } | ||
|
||
@Override | ||
public SoundEffectName getBreathWeaponSoundEffect(DragonLifeStage stage, SoundState state) { | ||
return state.ice;// why | ||
} | ||
|
||
@Override | ||
public EnumParticleTypes getSneezeParticle() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public BreathWeapon createBreathWeapon(EntityTameableDragon dragon) { | ||
return new BreathWeaponPoison(dragon); | ||
} | ||
|
||
@Override | ||
public EnumItemBreedTypes getItemBreed(EntityTameableDragon dragon) { | ||
return EnumItemBreedTypes.DARK; | ||
} | ||
} |
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
Binary file added
BIN
+2.05 KB
src/main/resources/assets/dragonmounts/textures/entities/dragon/dark/egg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
src/main/resources/assets/dragonmounts/textures/entities/dragon/dark/egg.png.mcmeta
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,11 @@ | ||
{ | ||
"animation": { | ||
"frametime": 8, | ||
"interpolate": true, | ||
"frames": [ | ||
0, | ||
1, | ||
2 | ||
] | ||
} | ||
} |