Skip to content

Commit

Permalink
Merge pull request #1287 from littlecube8152/remove-bonus-chest
Browse files Browse the repository at this point in the history
Remove Bonus Chest
  • Loading branch information
bruberu authored Feb 5, 2025
2 parents 5ff6eda + 7a478b7 commit b661eda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion groovy/postInit/gameplay/LootTweaks.groovy
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import com.cleanroommc.groovyscript.event.LootTablesLoadedEvent;

def lootTables = ["minecraft:chests/simple_dungeon", "minecraft:chests/village_blacksmith", "minecraft:chests/spawn_bonus_chest", "minecraft:chests/stronghold_library"]
def lootTables = ["minecraft:chests/simple_dungeon", "minecraft:chests/village_blacksmith", "minecraft:chests/stronghold_library"]
def bonusChestTable = "minecraft:chests/spawn_bonus_chest"
def bonusChestPools = ["main", "pool1", "pool2", "pool3", "sgcraft0", "sgcraft1", "sgcraft2", "sgcraft3"]

event_manager.listen { LootTablesLoadedEvent event ->
for (def lt in lootTables) {
event.loot.getTable(lt).removePool("sgcraft0");
}
for (def pool in bonusChestPools) {
event.loot.getTable(bonusChestTable).removePool(pool);
}
}
4 changes: 0 additions & 4 deletions groovy/postInit/gameplay/StartingAge.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ for (mat_name in GrindstoneOreList)
def mat_cap = mat.toCamelCaseString()
mat_cap = mat_cap.substring(0, 1).toUpperCase() + mat_cap.substring(1);

log.info(mat)
log.info(mat_cap)
log.info(mat.oreMultiplier())

builder.withInput(item("gregtech:ore_" + mat + "_0") * 2)
builder.withOutput(metaitem('crushed' + mat_cap) * (int)(mat.oreMultiplier() * 3))
builder.withTurns(5)
Expand Down

0 comments on commit b661eda

Please sign in to comment.