From 2d990e8a6c8d1e616a639016666c60e5a1a06949 Mon Sep 17 00:00:00 2001 From: WanderingHero Date: Mon, 22 Dec 2025 18:30:15 -0500 Subject: [PATCH 1/4] Revert "Fix dungeon chests spawning with the one ring. (#105)" This reverts commit 41ba26b62d49652390e1e6771cc1f21a4bd281e7. --- src/main/java/emt/util/EMTDungeonChestGenerator.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/emt/util/EMTDungeonChestGenerator.java b/src/main/java/emt/util/EMTDungeonChestGenerator.java index fafd522..12e52f8 100644 --- a/src/main/java/emt/util/EMTDungeonChestGenerator.java +++ b/src/main/java/emt/util/EMTDungeonChestGenerator.java @@ -17,5 +17,13 @@ public class EMTDungeonChestGenerator { 1, EMTConfigHandler.chanceTaintedMjolnir)); } + if (!EMTConfigHandler.oneRingSpawn) { + ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem( + new WeightedRandomChestContent( + new ItemStack(EMTItems.onering), + 0, + 1, + EMTConfigHandler.chanceOneRing)); + } } } From 24a50d3755b612f12250db51612daa8523b547d9 Mon Sep 17 00:00:00 2001 From: WanderingHero Date: Mon, 22 Dec 2025 19:22:06 -0500 Subject: [PATCH 2/4] Slight consistancy buff --- src/main/java/emt/item/ItemOneRing.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/emt/item/ItemOneRing.java b/src/main/java/emt/item/ItemOneRing.java index 2e85f8e..f5bfd95 100644 --- a/src/main/java/emt/item/ItemOneRing.java +++ b/src/main/java/emt/item/ItemOneRing.java @@ -147,7 +147,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (!player.worldObj.isRemote) { // EMT.LOGGER.info( String.format( "Total Corruption: %d ItemWarpLevel: %d", corruption, getItemWarpLevel( // stack, false ) )); - if (random.nextInt(60) == 0) { + if (random.nextInt(55) == 0) { player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 2000, 4, false)); player.addPotionEffect(new PotionEffect(Potion.resistance.id, 2000, 4, false)); @@ -175,7 +175,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (random.nextBoolean()) player.addPotionEffect(new PotionEffect(Potion.blindness.id, 500, 4, false)); else player.addPotionEffect(new PotionEffect(Potion.confusion.id, 500, 4, false)); } - if (corruption > 30 && random.nextInt(75) == 0) { + if (corruption > 30 && random.nextInt(90) == 0) { ((EntityPlayer) player) .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring falters")); player.removePotionEffect(14); @@ -191,8 +191,8 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (corruption >= 150 && corruption < 8000 && random.nextInt(150) == 0) { ((EntityPlayer) player) .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your arms feel heavy")); - player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 800, 4, false)); - player.addPotionEffect(new PotionEffect(Potion.weakness.id, 800, 4, false)); + player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 600, 4, false)); + player.addPotionEffect(new PotionEffect(Potion.weakness.id, 600, 4, false)); } if (corruption >= 700 && corruption < 8000 && random.nextInt(150) == 0) { player.removePotionEffect(11); From c8bbf86101ed1b174b2d416127a73c1f66e7f27d Mon Sep 17 00:00:00 2001 From: WanderingHero Date: Mon, 22 Dec 2025 20:39:23 -0500 Subject: [PATCH 3/4] Rework Rework --- src/main/java/emt/item/ItemOneRing.java | 37 +++++++++++++++++++------ 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/src/main/java/emt/item/ItemOneRing.java b/src/main/java/emt/item/ItemOneRing.java index f5bfd95..8af6dc2 100644 --- a/src/main/java/emt/item/ItemOneRing.java +++ b/src/main/java/emt/item/ItemOneRing.java @@ -150,7 +150,17 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (random.nextInt(55) == 0) { player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 2000, 4, false)); player.addPotionEffect(new PotionEffect(Potion.resistance.id, 2000, 4, false)); - + player.addPotionEffect(new PotionEffect(Potion.hunger.id, 2000, 0, false)); + if (corruption > 3000) { + player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 2000, 1, false)); + player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 2000, 1, false)); + } + if (corruption > 1000) { + player.addPotionEffect(new PotionEffect(Potion.damageBoost.id, 2000, 1, false)); + } + if (corruption > 6000) { + player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 2000, 1, false)); + } } if (corruption == 0) { player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 2000, 4, false)); @@ -168,7 +178,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun + "increase, and strange things will start happening.")); } // First effect should become active after ~1 Minute - if (corruption > 60 && corruption < 300 && random.nextInt(100) == 0) { + if (corruption > 60 && corruption < 400 && random.nextInt(100) == 0) { ((EntityPlayer) player) .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring somehow feels heavy")); player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 200, 3, false)); @@ -180,7 +190,11 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring falters")); player.removePotionEffect(14); player.removePotionEffect(11); - player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 800, 2, false)); + player.removePotionEffect(5); + player.removePotionEffect(1); + player.removePotionEffect(8); + player.removePotionEffect(3); + player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 400, 3, false)); /* * Wtf? Remove ForgeData tag? There are more mods using this tag than just emt! ((EntityPlayer) * player).writeToNBT(tag); tag.removeTag( NBT_TAG_FORGE_DATA ); ((EntityPlayer) @@ -197,7 +211,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (corruption >= 700 && corruption < 8000 && random.nextInt(150) == 0) { player.removePotionEffect(11); player.motionY += 2d; - } else if (corruption >= 1500 && random.nextInt(800) == 0) { + } else if (corruption >= 1000 && random.nextInt(500) == 0) { player.removePotionEffect(11); player.addPotionEffect(new PotionEffect(Potion.wither.id, 100, 4, false)); } @@ -208,15 +222,17 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun ((EntityPlayer) player).addChatMessage( new ChatComponentText(EMTTextHelper.PURPLE + "The Ring suddenly starts to glow purple")); } - if (random.nextInt(150) == 0) { // randomly every 2.5 minutes - ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 30, true); // adds 30 temp warp + if (random.nextInt(300) == 0) { // randomly every 5 minutes + ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 15, true); // adds 15 temp warp ((EntityPlayer) player).addChatMessage( new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple")); } if (corruption >= 180) { // if you wear it for 3 minutes if (random.nextInt(100) == 0) { - ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 30 + random.nextInt(70), true); // adds - // 30-100 + ((EntityPlayer) player) + .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring corrupts")); + ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 10 + random.nextInt(20), true); // adds + // 10-30 // temp // warp, // but @@ -252,7 +268,10 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun public void onUnequipped(ItemStack stack, EntityLivingBase player) { player.removePotionEffect(14); player.removePotionEffect(11); - + player.removePotionEffect(5); + player.removePotionEffect(1); + player.removePotionEffect(8); + player.removePotionEffect(3); /* * Wtf? Remove ForgeData tag? There are more mods using this tag than just emt! ((EntityPlayer) * player).writeToNBT(tag); tag.removeTag( NBT_TAG_FORGE_DATA ); ((EntityPlayer) player).readFromNBT(tag); From d4b24806b3d6f887b9c063be33ede55d40ebfc28 Mon Sep 17 00:00:00 2001 From: WanderingHero Date: Mon, 22 Dec 2025 21:21:58 -0500 Subject: [PATCH 4/4] slight changes --- src/main/java/emt/item/ItemOneRing.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/emt/item/ItemOneRing.java b/src/main/java/emt/item/ItemOneRing.java index 8af6dc2..3e26d99 100644 --- a/src/main/java/emt/item/ItemOneRing.java +++ b/src/main/java/emt/item/ItemOneRing.java @@ -185,7 +185,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun if (random.nextBoolean()) player.addPotionEffect(new PotionEffect(Potion.blindness.id, 500, 4, false)); else player.addPotionEffect(new PotionEffect(Potion.confusion.id, 500, 4, false)); } - if (corruption > 30 && random.nextInt(90) == 0) { + if (corruption > 30 && random.nextInt(80) == 0) { ((EntityPlayer) player) .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring falters")); player.removePotionEffect(14); @@ -222,13 +222,13 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun ((EntityPlayer) player).addChatMessage( new ChatComponentText(EMTTextHelper.PURPLE + "The Ring suddenly starts to glow purple")); } - if (random.nextInt(300) == 0) { // randomly every 5 minutes + if (random.nextInt(300) == 2) { // randomly every 5 minutes ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 15, true); // adds 15 temp warp ((EntityPlayer) player).addChatMessage( new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple")); } if (corruption >= 180) { // if you wear it for 3 minutes - if (random.nextInt(100) == 0) { + if (random.nextInt(290) == 1) { ((EntityPlayer) player) .addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring corrupts")); ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 10 + random.nextInt(20), true); // adds