From 281ab32e959450f1d84c6dd3a2aa266393d3b63e Mon Sep 17 00:00:00 2001 From: DreamMasterXXL Date: Sun, 20 Sep 2020 18:29:56 +0200 Subject: [PATCH 1/4] change(EMT)disable the one ring as chest loot change(EMT)change text in config --- src/main/java/emt/util/EMTConfigHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emt/util/EMTConfigHandler.java b/src/main/java/emt/util/EMTConfigHandler.java index 08bff27..bfd17e7 100644 --- a/src/main/java/emt/util/EMTConfigHandler.java +++ b/src/main/java/emt/util/EMTConfigHandler.java @@ -151,7 +151,7 @@ public class EMTConfigHandler { nightVisionOff = config.get(RANDOM, "Disable nightvision helmets", false, "This was added because of mods making you totally blind if using nightvision. For example, enable that when in the Deep Dark.").getBoolean(nightVisionOff); enchanting = config.get(RANDOM, "Enable enchanting tools", false, "Warning: the enchantability is low.").getBoolean(enchanting); smoke = config.get(RANDOM, "Disable smoke effect for boots", false, "This effect only appears when the player isn't on the ground").getBoolean(smoke); - oneRingSpawn = config.get(RANDOM, "Disable One Ring in dungeon chests", false, "There is no other way to get this item.").getBoolean(oneRingSpawn); + oneRingSpawn = config.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.").getBoolean(oneRingSpawn); chanceTaintedMjolnir = config.get(RANDOM, "Tainted Mjolnir spawning change", 25, "If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt(); chanceOneRing = config.get(RANDOM, "One Ring spawning chance", 15, "If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt(); removeAmberAndCinnabarMacerating = config.get(RANDOM, "Clear Amber/Cinnabar Macerating", true, "This is here because of conflicts between mods that add the same input and different outputs").getBoolean(removeAmberAndCinnabarMacerating); From 0e26ab800f3a8c59db1e29c8ac1cb8141b6512f3 Mon Sep 17 00:00:00 2001 From: DreamMasterXXL Date: Sun, 20 Sep 2020 19:04:35 +0200 Subject: [PATCH 2/4] update(EMT)bump version --- build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.properties b/build.properties index 7362ad8..e28ebeb 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ package_group=emt mc_version=1.7.10 forge_version=10.13.4.1614 -mod_version=1.2.7.8 +mod_version=1.2.7.9 mod_name=ElectroMagicTools \ No newline at end of file From 228508a755f5ff9cebbf3a78759d36025ad5e9ef Mon Sep 17 00:00:00 2001 From: Prometheus0000 Date: Mon, 12 Oct 2020 11:09:19 -0400 Subject: [PATCH 3/4] Makes the One Ring add warp to the player as well --- src/main/java/emt/item/ItemOneRing.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/java/emt/item/ItemOneRing.java b/src/main/java/emt/item/ItemOneRing.java index 8effa81..a479e2f 100644 --- a/src/main/java/emt/item/ItemOneRing.java +++ b/src/main/java/emt/item/ItemOneRing.java @@ -17,6 +17,7 @@ import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IIcon; +import thaumcraft.api.ThaumcraftApiHelper; import thaumcraft.api.IRunicArmor; import thaumcraft.api.IWarpingGear; @@ -164,11 +165,24 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun player.addPotionEffect(new PotionEffect(Potion.wither.id, 100, 4, false)); } - if (corruption >= 300) { - if (random.nextInt(100) == 0) { + if (corruption >= 300) { //worn more than 5 minutes + if (random.nextInt(100) == 0) { //every 100 seconds getItemWarpLevel(stack, true); ((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "The Ring suddenly starts to glow purple")); } + if (random.nextInt(300) == 0) { //randomly every 5 minutes + ThaumcraftApiHelper.addWarpToPlayer(player, 1, false); //adds 1 perm warp + ThaumcraftApiHelper.addStickyWarpToPlayer(player, random.nextInt(1)); //adds 0-1 sticky warp + ((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple")); + } + if (corruption >= 3600) { //if you wear it for more than an hour total + if (random.nextInt(300) == 0) { + ThaumcraftApiHelper.addWarpToPlayer(player, 5 + random.nextInt(5), false); //adds 5-10 perm warp + ThaumcraftApiHelper.addStickyWarpToPlayer(player, 5 + random.nextInt(5)); //adds 5-10 sticky warp + ThaumcraftApiHelper.addWarpToPlayer(player, 10 + random.nextInt(40), true); //adds 10-50 temp warp, but this is ultra easy to remove + ((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body resonates with the Ring and suddenly starts to glow purple ominously")); + } + } } } forgeTag.setInteger(NBT_TAG_MIND_CORRUPTION, ++corruption); From eea1549684edb50325bd7a878b2102c48741d8cd Mon Sep 17 00:00:00 2001 From: DreamMasterXXL Date: Mon, 12 Oct 2020 19:55:00 +0200 Subject: [PATCH 4/4] fix(EMT)derp --- src/main/java/emt/item/ItemOneRing.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/emt/item/ItemOneRing.java b/src/main/java/emt/item/ItemOneRing.java index a479e2f..94f08df 100644 --- a/src/main/java/emt/item/ItemOneRing.java +++ b/src/main/java/emt/item/ItemOneRing.java @@ -171,15 +171,15 @@ 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 - ThaumcraftApiHelper.addWarpToPlayer(player, 1, false); //adds 1 perm warp - ThaumcraftApiHelper.addStickyWarpToPlayer(player, random.nextInt(1)); //adds 0-1 sticky warp + ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 1, false); //adds 1 perm warp + ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, random.nextInt(1)); //adds 0-1 sticky warp ((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body suddenly starts to glow purple")); } if (corruption >= 3600) { //if you wear it for more than an hour total if (random.nextInt(300) == 0) { - ThaumcraftApiHelper.addWarpToPlayer(player, 5 + random.nextInt(5), false); //adds 5-10 perm warp - ThaumcraftApiHelper.addStickyWarpToPlayer(player, 5 + random.nextInt(5)); //adds 5-10 sticky warp - ThaumcraftApiHelper.addWarpToPlayer(player, 10 + random.nextInt(40), true); //adds 10-50 temp warp, but this is ultra easy to remove + ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5), false); //adds 5-10 perm warp + ThaumcraftApiHelper.addStickyWarpToPlayer((EntityPlayer) player, 5 + random.nextInt(5)); //adds 5-10 sticky warp + ThaumcraftApiHelper.addWarpToPlayer((EntityPlayer) player, 10 + random.nextInt(40), true); //adds 10-50 temp warp, but this is ultra easy to remove ((EntityPlayer) player).addChatMessage(new ChatComponentText(EMTTextHelper.PURPLE + "Your body resonates with the Ring and suddenly starts to glow purple ominously")); } }