mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Reduce spawn rates of LITERALLY EVERYTHING
This commit is contained in:
parent
1b5910aab1
commit
4e8f683737
2 changed files with 8 additions and 13 deletions
|
@ -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));
|
||||
}
|
||||
supplier.modifyPools(poolBuilder -> {
|
||||
for (var pool : table.pools) {
|
||||
poolBuilder.with(List.of(pool.entries));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue