Skip to content

Commit 845437a

Browse files
committed
make molten lead bars drop less nuggets
1 parent 475217e commit 845437a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/generated/resources/data/oreganized/loot_tables/blocks/lead_bars.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545
"functions": [
4646
{
4747
"add": false,
48-
"count": 6.0,
48+
"count": {
49+
"type": "minecraft:uniform",
50+
"max": 3.0,
51+
"min": 2.0
52+
},
4953
"function": "minecraft:set_count"
5054
}
5155
],

src/main/java/galena/oreganized/data/OLootTables.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import net.minecraft.world.level.storage.loot.predicates.LootItemBlockStatePropertyCondition;
2929
import net.minecraft.world.level.storage.loot.predicates.MatchTool;
3030
import net.minecraft.world.level.storage.loot.providers.number.ConstantValue;
31+
import net.minecraft.world.level.storage.loot.providers.number.UniformGenerator;
3132

3233
import java.util.List;
3334
import java.util.Map;
@@ -104,7 +105,7 @@ protected void generate() {
104105
.add(AlternativesEntry.alternatives(
105106
LootItem.lootTableItem(OBlocks.LEAD_BARS.get()).when(HAS_SILK_TOUCH),
106107
LootItem.lootTableItem(OItems.LEAD_NUGGET.get())
107-
.apply(SetItemCountFunction.setCount(ConstantValue.exactly(6)))
108+
.apply(SetItemCountFunction.setCount((UniformGenerator.between(2F, 3F))))
108109
.when(LootItemBlockStatePropertyCondition.hasBlockStateProperties(OBlocks.LEAD_BARS.get())
109110
.setProperties(StatePropertiesPredicate.Builder.properties().hasProperty(IMeltableBlock.GOOPYNESS_3, 2))
110111
),

0 commit comments

Comments
 (0)