Commit 845437a 1 parent 475217e commit 845437a Copy full SHA for 845437a
File tree 2 files changed +7
-2
lines changed
generated/resources/data/oreganized/loot_tables/blocks
main/java/galena/oreganized/data
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 45
45
"functions" : [
46
46
{
47
47
"add" : false ,
48
- "count" : 6.0 ,
48
+ "count" : {
49
+ "type" : " minecraft:uniform" ,
50
+ "max" : 3.0 ,
51
+ "min" : 2.0
52
+ },
49
53
"function" : " minecraft:set_count"
50
54
}
51
55
],
Original file line number Diff line number Diff line change 28
28
import net .minecraft .world .level .storage .loot .predicates .LootItemBlockStatePropertyCondition ;
29
29
import net .minecraft .world .level .storage .loot .predicates .MatchTool ;
30
30
import net .minecraft .world .level .storage .loot .providers .number .ConstantValue ;
31
+ import net .minecraft .world .level .storage .loot .providers .number .UniformGenerator ;
31
32
32
33
import java .util .List ;
33
34
import java .util .Map ;
@@ -104,7 +105,7 @@ protected void generate() {
104
105
.add (AlternativesEntry .alternatives (
105
106
LootItem .lootTableItem (OBlocks .LEAD_BARS .get ()).when (HAS_SILK_TOUCH ),
106
107
LootItem .lootTableItem (OItems .LEAD_NUGGET .get ())
107
- .apply (SetItemCountFunction .setCount (ConstantValue . exactly ( 6 )))
108
+ .apply (SetItemCountFunction .setCount (( UniformGenerator . between ( 2F , 3F ) )))
108
109
.when (LootItemBlockStatePropertyCondition .hasBlockStateProperties (OBlocks .LEAD_BARS .get ())
109
110
.setProperties (StatePropertiesPredicate .Builder .properties ().hasProperty (IMeltableBlock .GOOPYNESS_3 , 2 ))
110
111
),
You can’t perform that action at this time.
0 commit comments