diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/lorenz/mod/config/Features.java | 5 | ||||
-rw-r--r-- | src/main/java/at/lorenz/mod/dungeon/DungeonCleanEnd.kt | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/at/lorenz/mod/config/Features.java b/src/main/java/at/lorenz/mod/config/Features.java index 2cc8f6535..917ab3483 100644 --- a/src/main/java/at/lorenz/mod/config/Features.java +++ b/src/main/java/at/lorenz/mod/config/Features.java @@ -161,6 +161,11 @@ public class Features { @ConfigOption(name = "Clean End", desc = "Hide entities and particles after the boss in Floor 1 - 6 has died.") @ConfigEditorBoolean public boolean cleanEnd = false; + + @Expose + @ConfigOption(name = "Ignore Guardians", desc = "Ignore F3 and M3 guardians from the clean end feature when sneaking. Makes it easier to kill them after the boss died already. Thanks hypixel.") + @ConfigEditorBoolean + public boolean cleanEndF3IgnoreGuardians = false; } public static class Items { diff --git a/src/main/java/at/lorenz/mod/dungeon/DungeonCleanEnd.kt b/src/main/java/at/lorenz/mod/dungeon/DungeonCleanEnd.kt index 9d9f1b4d7..04326c598 100644 --- a/src/main/java/at/lorenz/mod/dungeon/DungeonCleanEnd.kt +++ b/src/main/java/at/lorenz/mod/dungeon/DungeonCleanEnd.kt @@ -10,6 +10,7 @@ import at.lorenz.mod.utils.LorenzUtils.matchRegex import net.minecraft.client.Minecraft import net.minecraft.client.entity.EntityOtherPlayerMP import net.minecraft.entity.item.EntityArmorStand +import net.minecraft.entity.monster.EntityGuardian import net.minecraft.network.play.server.S1CPacketEntityMetadata import net.minecraft.network.play.server.S2APacketParticles import net.minecraftforge.event.world.WorldEvent @@ -91,6 +92,18 @@ class DungeonCleanEnd { if (entity == Minecraft.getMinecraft().thePlayer) return + if (LorenzMod.feature.dungeon.cleanEndF3IgnoreGuardians) { + if (DungeonData.isOneOf("F3", "M3")) { + if (entity is EntityGuardian) { + if (entity.entityId != lastBossId) { + if (Minecraft.getMinecraft().thePlayer.isSneaking) { + return + } + } + } + } + } + if (chestsSpawned) { if (entity is EntityArmorStand) { if (!entity.hasCustomName()) { |