fix missing step sound for spinosaurus and giganotosaurus

This commit is contained in:
2026-06-01 13:38:44 -04:00
parent 8a5b5f0834
commit 37e54f181d
3 changed files with 15 additions and 1 deletions
@@ -11,6 +11,7 @@ import net.cmr.jurassicrevived.entity.client.GiganotosaurusVariant;
import net.cmr.jurassicrevived.entity.client.GiganotosaurusVariant; import net.cmr.jurassicrevived.entity.client.GiganotosaurusVariant;
import net.cmr.jurassicrevived.sound.ModSounds; import net.cmr.jurassicrevived.sound.ModSounds;
import net.minecraft.Util; import net.minecraft.Util;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataAccessor;
import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.EntityDataSerializers;
@@ -35,6 +36,7 @@ import net.minecraft.world.item.Items;
import net.minecraft.world.level.Level; import net.minecraft.world.level.Level;
import net.minecraft.world.level.ServerLevelAccessor; import net.minecraft.world.level.ServerLevelAccessor;
import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import software.bernie.geckolib.animatable.GeoEntity; import software.bernie.geckolib.animatable.GeoEntity;
/*? if <=1.20.1 {*/ /*? if <=1.20.1 {*/
@@ -316,6 +318,11 @@ public class GiganotosaurusEntity extends DinoEntityBase implements GeoEntity {
return ModSounds.GIGANOTOSAURUS_HURT.get(); return ModSounds.GIGANOTOSAURUS_HURT.get();
} }
@Override
protected void playStepSound(BlockPos pos, BlockState blockIn) {
this.playSound(ModSounds.STOMP.get(), 0.5F, 1.0F);
}
@Override @Override
protected @Nullable SoundEvent getDeathSound() { protected @Nullable SoundEvent getDeathSound() {
return ModSounds.GIGANOTOSAURUS_DEATH.get(); return ModSounds.GIGANOTOSAURUS_DEATH.get();
@@ -11,6 +11,7 @@ import net.cmr.jurassicrevived.entity.client.AlbertosaurusVariant;
import net.cmr.jurassicrevived.entity.client.SpinosaurusVariant; import net.cmr.jurassicrevived.entity.client.SpinosaurusVariant;
import net.cmr.jurassicrevived.sound.ModSounds; import net.cmr.jurassicrevived.sound.ModSounds;
import net.minecraft.Util; import net.minecraft.Util;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataAccessor;
import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.EntityDataSerializers;
@@ -34,6 +35,7 @@ import net.minecraft.world.item.Items;
import net.minecraft.world.level.Level; import net.minecraft.world.level.Level;
import net.minecraft.world.level.ServerLevelAccessor; import net.minecraft.world.level.ServerLevelAccessor;
import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import software.bernie.geckolib.animatable.GeoEntity; import software.bernie.geckolib.animatable.GeoEntity;
/*? if <=1.20.1 {*/ /*? if <=1.20.1 {*/
@@ -315,6 +317,11 @@ public class SpinosaurusEntity extends DinoEntityBase implements GeoEntity {
return ModSounds.SPINOSAURUS_HURT.get(); return ModSounds.SPINOSAURUS_HURT.get();
} }
@Override
protected void playStepSound(BlockPos pos, BlockState blockIn) {
this.playSound(ModSounds.STOMP.get(), 0.5F, 1.0F);
}
@Override @Override
protected @Nullable SoundEvent getDeathSound() { protected @Nullable SoundEvent getDeathSound() {
return ModSounds.SPINOSAURUS_DEATH.get(); return ModSounds.SPINOSAURUS_DEATH.get();
+1 -1
View File
@@ -10,7 +10,7 @@ fabric.loom.multiProjectOptimisation=true
mod.name=Jurassic Revived mod.name=Jurassic Revived
mod.id=jurassicrevived mod.id=jurassicrevived
mod.group=net.cmr.jurassicrevived mod.group=net.cmr.jurassicrevived
mod.version=0.209.0 mod.version=0.210.0
mod.author=CMR Team, Eli Gibbs mod.author=CMR Team, Eli Gibbs
mod.description=A Minecraft mod that brings dinosaurs back to life using ancient DNA and modern technology\nBreed, study, and build your own prehistoric park with a wide variety of creatures... mod.description=A Minecraft mod that brings dinosaurs back to life using ancient DNA and modern technology\nBreed, study, and build your own prehistoric park with a wide variety of creatures...
mod.license=CC-BY-ND-4.0 mod.license=CC-BY-ND-4.0