Reduce spawn rates of LITERALLY EVERYTHING

This commit is contained in:
Sollace 2024-02-05 21:36:32 +00:00
parent 1b5910aab1
commit 4e8f683737
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 8 additions and 13 deletions

View file

@ -8,7 +8,6 @@ import com.minelittlepony.unicopia.item.cloud.CloudShapingRecipe;
import net.fabricmc.fabric.api.loot.v2.LootTableEvents;
import net.minecraft.loot.LootTable;
import net.minecraft.loot.context.LootContextTypes;
import net.minecraft.recipe.CuttingRecipe;
import net.minecraft.recipe.Ingredient;
import net.minecraft.recipe.RecipeSerializer;
@ -59,15 +58,11 @@ public interface URecipes {
LootTable table = manager.getLootTable(modId);
if (table != LootTable.EMPTY) {
if (table.getType() == LootContextTypes.ARCHAEOLOGY) {
supplier.modifyPools(poolBuilder -> {
for (var pool : table.pools) {
poolBuilder.with(List.of(pool.entries));
}
});
} else {
supplier.pools(List.of(table.pools));
}
}
});
}

View file

@ -3,14 +3,14 @@
"pools": [
{
"rolls": {
"min": 2.0,
"max": 4.0,
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
},
"entries": [
{
"type": "minecraft:item",
"weight": 2,
"weight": 1,
"name": "unicopia:grogars_bell"
}
]