Skip to content

Commit f8935af

Browse files
committed
fix: possessed weak shulker loot table
Closes #1172
1 parent 407341a commit f8935af

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

src/generated/resources/data/occultism/loot_table/entities/possessed_weak_shulker.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
"entries": [
1313
{
1414
"type": "minecraft:item",
15-
"conditions": [
16-
{
17-
"chance": 0.1,
18-
"condition": "minecraft:random_chance"
19-
}
20-
],
2115
"functions": [
2216
{
2317
"add": false,
@@ -30,7 +24,13 @@
3024
}
3125
],
3226
"name": "minecraft:shulker_shell"
33-
},
27+
}
28+
],
29+
"rolls": 1.0
30+
},
31+
{
32+
"bonus_rolls": 0.0,
33+
"entries": [
3434
{
3535
"type": "minecraft:item",
3636
"functions": [

src/main/java/com/klikli_dev/occultism/datagen/loot/OccultismEntityLoot.java

+8-13
Original file line numberDiff line numberDiff line change
@@ -305,20 +305,15 @@ public LootTable.Builder weakShulkerTable(){
305305
return LootTable.lootTable()
306306
.withPool(
307307
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))))
321311
.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))))
322317
);
323318
}
324319
}

0 commit comments

Comments
 (0)