File tree Expand file tree Collapse file tree
generated/resources/data/oreganized/loot_tables/blocks
main/java/galena/oreganized/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ],
Original file line number Diff line number Diff line change 2828import net .minecraft .world .level .storage .loot .predicates .LootItemBlockStatePropertyCondition ;
2929import net .minecraft .world .level .storage .loot .predicates .MatchTool ;
3030import net .minecraft .world .level .storage .loot .providers .number .ConstantValue ;
31+ import net .minecraft .world .level .storage .loot .providers .number .UniformGenerator ;
3132
3233import java .util .List ;
3334import 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 ),
You can’t perform that action at this time.
0 commit comments