Skip to content

Commit

Permalink
make molten lead bars drop less nuggets
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Sep 21, 2024
1 parent 475217e commit 845437a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
"functions": [
{
"add": false,
"count": 6.0,
"count": {
"type": "minecraft:uniform",
"max": 3.0,
"min": 2.0
},
"function": "minecraft:set_count"
}
],
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/galena/oreganized/data/OLootTables.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import net.minecraft.world.level.storage.loot.predicates.LootItemBlockStatePropertyCondition;
import net.minecraft.world.level.storage.loot.predicates.MatchTool;
import net.minecraft.world.level.storage.loot.providers.number.ConstantValue;
import net.minecraft.world.level.storage.loot.providers.number.UniformGenerator;

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

0 comments on commit 845437a

Please sign in to comment.