2
1
Fork 1
mirror of https://github.com/ACGaming/Spackenmobs synced 2024-11-25 16:22:36 +01:00

Merge pull request #5 from leytilera/1.12

Add freak out sounds to MZTEWolf
This commit is contained in:
ACGaming 2022-04-11 17:27:05 +02:00 committed by GitHub
commit bd27590cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package mod.acgaming.spackenmobs.entities;
import java.util.UUID;
import mod.acgaming.spackenmobs.misc.ModSoundEvents;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityCreeper;
@ -10,6 +11,7 @@ import net.minecraft.entity.passive.AbstractHorse;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.SoundEvent;
import net.minecraft.world.World;
public class EntityMZTEWolf extends EntityWolf
@ -21,6 +23,12 @@ public class EntityMZTEWolf extends EntityWolf
this.setTamed(false);
}
@Override
protected SoundEvent getAmbientSound()
{
return ModSoundEvents.ENTITY_MZTEWOLF_AMBIENT;
}
@Override
public EntityMZTEWolf createChild(EntityAgeable ageable)
{

View file

@ -56,4 +56,6 @@ public class ModSoundEvents
public static final SoundEvent ENTITY_GISELA_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.gisela.ambient"));
public static final SoundEvent ENTITY_GISELA_HURT = new SoundEvent(new ResourceLocation("spackenmobs:entities.gisela.hurt"));
public static final SoundEvent ENTITY_MZTEWOLF_AMBIENT = new SoundEvent(new ResourceLocation("spackenmobs:entities.mztewolf.ambient"));
}

View file

@ -324,5 +324,9 @@ public class RegistryHandler
event.getRegistry().register(ModSoundEvents.ENTITY_GISELA_AMBIENT);
ModSoundEvents.ENTITY_GISELA_HURT.setRegistryName(new ResourceLocation("spackenmobs:entities.gisela.hurt"));
event.getRegistry().register(ModSoundEvents.ENTITY_GISELA_HURT);
//MZTEWolf
ModSoundEvents.ENTITY_MZTEWOLF_AMBIENT.setRegistryName(new ResourceLocation("spackenmobs:entities.mztewolf.ambient"));
event.getRegistry().register(ModSoundEvents.ENTITY_MZTEWOLF_AMBIENT);
}
}

View file

@ -1060,6 +1060,21 @@
},
{
"name": "spackenmobs:mztewolf/say3"
},
{
"name": "spackenmobs:mztewolf/say4"
},
{
"name": "spackenmobs:mztewolf/say5"
},
{
"name": "spackenmobs:mztewolf/say6"
},
{
"name": "spackenmobs:mztewolf/say7"
},
{
"name": "spackenmobs:mztewolf/say8"
}
]
}