Scrap added to fishing junk loot table.

This commit is contained in:
drcrazy 2022-06-12 12:30:23 +03:00
parent 907aae5fb6
commit ea40f55430

View file

@ -89,8 +89,10 @@ public class ModLoot {
LootPoolEntry rubber = ItemEntry.builder(Parts.RUBBER).weight(10).build();
LootPoolEntry treeTap = ItemEntry.builder(TRContent.TREE_TAP).weight(10)
.apply(SetDamageLootFunction.builder(UniformLootNumberProvider.create(0.0f, 0.9f))).build();
LootPoolEntry scrap = ItemEntry.builder(Parts.SCRAP).weight(10).build();
LootPool poolFishingJunk = LootPool.builder().with(rubber).with(treeTap).with(scrap).build();
LootPool poolFishingJunk = LootPool.builder().with(rubber).with(treeTap).build();
LootTableEvents.MODIFY.register((resourceManager, lootManager, id, tableBuilder, source) -> {
String stringId = id.toString();
@ -144,7 +146,6 @@ public class ModLoot {
tableBuilder.pool(poolFishingJunk);
}
}
return;
});
}