Skip to content

Commit 76aaa4d

Browse files
Modify coffee berry structure loot
Coffee berries no longer generate in shipwreck loot The amount of coffee berries that can generate in jungle pyramid loot has been increased to 1 to 3
1 parent b139aad commit 76aaa4d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/net/chikorita_lover/caffeinated/Caffeinated.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ public void onInitialize() {
5757

5858
LootTableEvents.MODIFY.register((key, tableBuilder, source, registries) -> {
5959
if (key.equals(LootTables.JUNGLE_TEMPLE_CHEST)) {
60-
tableBuilder.pool(LootPool.builder().with(ItemEntry.builder(CaffeinatedItems.COFFEE_BERRIES)).with(EmptyEntry.builder()));
61-
}
62-
if (key.equals(LootTables.SHIPWRECK_SUPPLY_CHEST)) {
63-
LootModificationUtils.modifyPool(tableBuilder, 0, builder -> builder.with(ItemEntry.builder(CaffeinatedItems.COFFEE_BERRIES).weight(2).apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 5.0F)))));
60+
tableBuilder.pool(LootPool.builder().with(ItemEntry.builder(CaffeinatedItems.COFFEE_BERRIES).apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 3.0F)))).with(EmptyEntry.builder()));
6461
}
6562
if (key.equals(LootTables.VILLAGE_SAVANNA_HOUSE_CHEST)) {
6663
LootModificationUtils.modifyPool(tableBuilder, 0, builder -> builder.with(ItemEntry.builder(CaffeinatedItems.COFFEE_BERRIES).weight(5).apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 7.0F)))));

0 commit comments

Comments
 (0)