Skip to content

Commit

Permalink
updated drowned sound 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
baguchi committed Feb 20, 2024
1 parent 911599a commit 321bb1e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ halplibe_version=3.4.1
dragonfly_version=1.4.4-7.1
terrain_api_version=1.4.2-7.1
# Mod
mod_version=2.2.1
mod_version=2.3.0
mod_group=baguchan
mod_name=better_with_aquatic
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
import net.minecraft.client.render.block.model.BlockModelDispatcher;
import net.minecraft.client.render.block.model.BlockModelRenderBlocks;
import turniplabs.halplibe.helper.EntityHelper;
import turniplabs.halplibe.helper.SoundHelper;
import turniplabs.halplibe.util.ClientStartEntrypoint;
import useless.dragonfly.helper.ModelHelper;
import useless.dragonfly.model.entity.BenchEntityModel;

import static baguchan.better_with_aquatic.BetterWithAquatic.MOD_ID;


public class BetterWithAquaticClient implements ClientStartEntrypoint {

public static final BenchEntityModel modelDrowned = ModelHelper.getOrCreateEntityModel(BetterWithAquatic.MOD_ID, "entity/drowned.geo.json", DrownedModel.class);
public static final BenchEntityModel modelDrowned = ModelHelper.getOrCreateEntityModel(MOD_ID, "entity/drowned.geo.json", DrownedModel.class);

public static final BenchEntityModel modelFrog = ModelHelper.getOrCreateEntityModel(BetterWithAquatic.MOD_ID, "entity/frog.geo.json", FrogModel.class);
public static final BenchEntityModel modelFrog = ModelHelper.getOrCreateEntityModel(MOD_ID, "entity/frog.geo.json", FrogModel.class);


@Override
Expand All @@ -27,7 +30,10 @@ public void beforeClientStart() {
EntityHelper.Client.assignEntityRenderer(EntityAnglerFish.class, new RenderAnglerFish(new AnglerFishModel(), 0.4F));
EntityHelper.Client.assignEntityRenderer(EntityDrowned.class, new DrownedRenderer(modelDrowned, 0.5f));
EntityHelper.Client.assignEntityRenderer(EntityFrog.class, new FrogRenderer(modelFrog, 0.3f));

SoundHelper.Client.addSound(MOD_ID, "mob/drowned/drowned_idle.wav");
SoundHelper.Client.addSound(MOD_ID, "mob/drowned/drowned_death.wav");
SoundHelper.Client.addSound(MOD_ID, "mob/drowned/drowned_hurt.wav");
SoundHelper.Client.addSound(MOD_ID, "mob/drowned/drowned_hurt_extra.wav");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ public String getDefaultEntityTexture() {
return "/assets/better_with_aquatic/entity/drowned.png";
}

@Override
public String getLivingSound() {
return "better_with_aquatic.mob.drowned.drowned_idle";
}

@Override
protected String getHurtSound() {
if (random.nextBoolean()) {
return "better_with_aquatic.mob.drowned.drowned_hurt_extra";
}
return "better_with_aquatic.mob.drowned.drowned_hurt";
}

@Override
protected String getDeathSound() {
return "better_with_aquatic.mob.drowned.drowned_death";
}

@Override
public void tick() {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 321bb1e

Please sign in to comment.