Commit f8935af 1 parent 407341a commit f8935af Copy full SHA for f8935af
File tree 2 files changed +15
-20
lines changed
generated/resources/data/occultism/loot_table/entities
main/java/com/klikli_dev/occultism/datagen/loot
2 files changed +15
-20
lines changed Original file line number Diff line number Diff line change 12
12
"entries" : [
13
13
{
14
14
"type" : " minecraft:item" ,
15
- "conditions" : [
16
- {
17
- "chance" : 0.1 ,
18
- "condition" : " minecraft:random_chance"
19
- }
20
- ],
21
15
"functions" : [
22
16
{
23
17
"add" : false ,
30
24
}
31
25
],
32
26
"name" : " minecraft:shulker_shell"
33
- },
27
+ }
28
+ ],
29
+ "rolls" : 1.0
30
+ },
31
+ {
32
+ "bonus_rolls" : 0.0 ,
33
+ "entries" : [
34
34
{
35
35
"type" : " minecraft:item" ,
36
36
"functions" : [
Original file line number Diff line number Diff line change @@ -305,20 +305,15 @@ public LootTable.Builder weakShulkerTable(){
305
305
return LootTable .lootTable ()
306
306
.withPool (
307
307
LootPool .lootPool ()
308
- .setRolls (ConstantValue .exactly (1.0F )
309
- )
310
- .add (
311
- LootItem .lootTableItem (Items .SHULKER_SHELL )
312
- .apply (SetItemCountFunction .setCount (UniformGenerator .between (1.0F , 1.0F ))
313
- )
314
- .when (LootItemRandomChanceCondition .randomChance (0.1F ))
315
- )
316
- .add (
317
- LootItem .lootTableItem (Items .CHORUS_FRUIT )
318
- .apply (SetItemCountFunction .setCount (UniformGenerator .between (1.0F , 3.0F ))
319
- )
320
- )
308
+ .setRolls (ConstantValue .exactly (1.0F ))
309
+ .add (LootItem .lootTableItem (Items .SHULKER_SHELL )
310
+ .apply (SetItemCountFunction .setCount (UniformGenerator .between (1.0F , 1.0F ))))
321
311
.when (LootItemRandomChanceCondition .randomChance (0.1F ))
312
+ ) .withPool (
313
+ LootPool .lootPool ()
314
+ .setRolls (ConstantValue .exactly (1.0F ))
315
+ .add (LootItem .lootTableItem (Items .CHORUS_FRUIT )
316
+ .apply (SetItemCountFunction .setCount (UniformGenerator .between (1.0F , 3.0F ))))
322
317
);
323
318
}
324
319
}
You can’t perform that action at this time.
0 commit comments