2
1
Fork 1
mirror of https://github.com/ACGaming/Spackenmobs synced 2024-05-19 20:04:10 +02:00

Compare commits

...

3 commits

Author SHA1 Message Date
ACGaming bd27590cd2
Merge pull request #5 from leytilera/1.12
Add freak out sounds to MZTEWolf
2022-04-11 17:27:05 +02:00
Timo Ley 82537fe2f8 Implement MZTEWolf ambient sound 2022-04-10 22:00:00 +02:00
Timo Ley 8f9af57e7c Add MZTEWolf SoundEvent 2022-04-10 17:25:27 +02:00
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"
}
]
}