Compare commits

...
2 Commits
Author SHA1 Message Date
OrderedSet86andUltraProdigy 3d90755aea Remove inert EMTDungeonChestGenerator (#123)
Co-authored-by: UltraProdigy <[email protected]>
2026-11-10 07:52:43 +00:00
UltraProdigy 15463a5a68 ci: run build and test on release branches 2026-11-09 00:56:57 -05:00
3 changed files with 23 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
+15 -5
View File
@@ -20,6 +20,10 @@ public class EMTConfigHandler {
public static final String RESEARCH = "Research";
public static final String VALUES = "Numeric Values";
public static final String OUTPUTS = "Essentia Generator Outputs";
private static final String IGNORED_UNDER_GTNH = "Ignored when GTNH (dreamcraft) is installed: "
+ "dungeon loot is controlled by config/TooMuchLoot/loot/dungeonChest.xml in GTNH.";
public static Configuration config;
public static int etherealProcessorBaseSpeed;
public static int etherealProcessorBonus;
@@ -187,19 +191,25 @@ public class EMTConfigHandler {
"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", true, "There is a recipe 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. " + IGNORED_UNDER_GTNH).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();
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.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();
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.getInt();
removeAmberAndCinnabarMacerating = config
.get(
RANDOM,
@@ -4,11 +4,17 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraftforge.common.ChestGenHooks;
import cpw.mods.fml.common.Loader;
import emt.init.EMTItems;
public class EMTDungeonChestGenerator {
public static void generateLoot() {
// GTNH replaces the whole dungeonChest table from config/TooMuchLoot/loot/dungeonChest.xml at
// FMLServerStartingEvent, which discards everything registered here. Edit that file instead.
if (Loader.isModLoaded("dreamcraft")) {
return;
}
if (!EMTConfigHandler.thorHammerResearch) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(