Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Beifengs spawning on the surface. #1103

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/main/java/net/ltxprogrammer/changed/entity/beast/Beifeng.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package net.ltxprogrammer.changed.entity.beast;

import net.ltxprogrammer.changed.entity.HairStyle;
import net.ltxprogrammer.changed.entity.PatronOC;
import net.ltxprogrammer.changed.entity.TransfurCause;
import net.ltxprogrammer.changed.entity.*;
import net.ltxprogrammer.changed.util.Color3;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.ai.attributes.AttributeMap;
Expand All @@ -13,7 +11,7 @@

import java.util.List;

public class Beifeng extends AbstractLatexWolf implements DarkLatexEntity, PatronOC {
public class Beifeng extends AbstractCaveEntity implements DarkLatexEntity, PatronOC {
public Beifeng(EntityType<? extends Beifeng> p_19870_, Level p_19871_) {
super(p_19870_, p_19871_);
}
Expand All @@ -25,6 +23,14 @@ protected void setAttributes(AttributeMap attributes) {
attributes.getInstance(ForgeMod.SWIM_SPEED.get()).setBaseValue(1.0);
}

@Override
public LatexType getLatexType() {
return LatexType.NEUTRAL;
}

@Override
public TransfurMode getTransfurMode() { return TransfurMode.NONE; }

@Override
public Color3 getDripColor() {
return level.random.nextInt(10) > 3 ? Color3.BLUE : Color3.WHITE;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/changed/lang/sv_se.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"gamerule.changed:doPale": "Är Pale aktiverad",

"key.changed.variant_ability": "Aktiv variantförmåga",
"key.changed.use_ability": "Använda variantförmåga",
"key.changed.use_ability": "Använd variantförmåga",
"key.changed.extra_jump": "Extra hopp",

"container.changed.extra_hands": "Extra händermeny",
Expand Down