Skip to content

Commit

Permalink
crab emerge sound
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Oct 16, 2023
1 parent c921742 commit bc45f77
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.common.collect.ImmutableMap;
import net.frozenblock.wilderwild.entity.Crab;
import net.frozenblock.wilderwild.registry.RegisterSounds;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.entity.Pose;
Expand All @@ -23,8 +24,7 @@ protected boolean canStillUse(ServerLevel level, E entity, long gameTime) {
@Override
protected void start(ServerLevel level, @NotNull E crab, long gameTime) {
crab.setPose(Pose.EMERGING);
//TODO: CRAB EMERGE SOUNDS
crab.playSound(SoundEvents.WARDEN_EMERGE, 0.25f, 5.0f);
crab.playSound(RegisterSounds.ENTITY_CRAB_EMERGE, 0.5F, 1.0F);
crab.resetDiggingTicks();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ public final class RegisterSounds {
public static final SoundEvent ENTITY_CRAB_HURT = register("entity.crab.hurt");
public static final SoundEvent ENTITY_CRAB_DEATH = register("entity.crab.death");
public static final SoundEvent ENTITY_CRAB_DIG = register("entity.crab.dig");
public static final SoundEvent ENTITY_CRAB_EMERGE = register("entity.crab.emerge");
public static final SoundEvent ENTITY_TUMBLEWEED_BOUNCE = register("entity.tumbleweed.bounce");
public static final SoundEvent ENTITY_TUMBLEWEED_BREAK = register("entity.tumbleweed.break");
public static final SoundEvent ENTITY_TUMBLEWEED_DAMAGE = register("entity.tumbleweed.damage");
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/wilderwild/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
"subtitles.entity.crab.hurt": "Crab hurts",
"subtitles.entity.crab.death": "Crab dies",
"subtitles.entity.crab.dig": "Crab digs",
"subtitles.entity.crab.emerge": "Crab emerges",
"subtitles.entity.potion.magic": "Effect emanates",
"subtitles.entity.potion.linger": "Effect lingers",
"subtitles.entity.snowball.land": "Snowball lands",
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/assets/wilderwild/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,12 @@
],
"subtitle": "subtitles.entity.crab.dig"
},
"entity.crab.emerge": {
"sounds": [
"wilderwild:mob/crab/emerge"
],
"subtitle": "subtitles.entity.crab.emerge"
},
"entity.tumbleweed.bounce": {
"sounds": [
"wilderwild:mob/tumbleweed/bounce1",
Expand Down
Binary file not shown.

0 comments on commit bc45f77

Please sign in to comment.