File tree Expand file tree Collapse file tree
generated/resources/data/werewolves/loot_table/entities
main/java/de/teamlapen/werewolves/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 "entries" : [
3232 {
3333 "type" : " minecraft:item" ,
34- "name" : " werewolves:dark_pelt" ,
35- "weight" : 40
36- },
37- {
38- "type" : " minecraft:item" ,
39- "name" : " werewolves:white_pelt"
34+ "name" : " werewolves:dark_pelt"
4035 }
4136 ],
42- "name" : " pelt " ,
37+ "name" : " dark_pelt " ,
4338 "rolls" : {
4439 "type" : " minecraft:uniform" ,
4540 "max" : 2.0 ,
5651 "condition" : " minecraft:random_chance_with_enchanted_bonus" ,
5752 "enchanted_chance" : {
5853 "type" : " minecraft:linear" ,
59- "base" : 0.115 ,
54+ "base" : 0.04 ,
6055 "per_level_above_first" : 0.015
6156 },
6257 "enchantment" : " minecraft:looting" ,
63- "unenchanted_chance" : 0.1
58+ "unenchanted_chance" : 0.025
59+ }
60+ ],
61+ "entries" : [
62+ {
63+ "type" : " minecraft:item" ,
64+ "name" : " werewolves:white_pelt"
65+ }
66+ ],
67+ "name" : " white_pelt" ,
68+ "rolls" : 1.0
69+ },
70+ {
71+ "bonus_rolls" : 0.0 ,
72+ "conditions" : [
73+ {
74+ "condition" : " minecraft:killed_by_player"
75+ },
76+ {
77+ "condition" : " minecraft:random_chance_with_enchanted_bonus" ,
78+ "enchanted_chance" : {
79+ "type" : " minecraft:linear" ,
80+ "base" : 0.075 ,
81+ "per_level_above_first" : 0.025
82+ },
83+ "enchantment" : " minecraft:looting" ,
84+ "unenchanted_chance" : 0.05
6485 }
6586 ],
6687 "entries" : [
Original file line number Diff line number Diff line change @@ -230,16 +230,19 @@ public void generate() {
230230 .add (LootItem .lootTableItem (ModItems .WEREWOLF_TOOTH .get ()))
231231 .setRolls (UniformGenerator .between (1 , 2 )))
232232 .withPool (LootPool .lootPool ()
233- .name ("pelt " )
233+ .name ("dark_pelt " )
234234 .when (LootItemKilledByPlayerCondition .killedByPlayer ())
235235 .setRolls (UniformGenerator .between (1 , 2 ))
236- .add (LootItem .lootTableItem (ModItems .DARK_PELT .get ()).setWeight (40 ))
237- .add (LootItem .lootTableItem (ModItems .WHITE_PELT .get ()).setWeight (1 )))
236+ .add (LootItem .lootTableItem (ModItems .DARK_PELT .get ())))
237+ .withPool (LootPool .lootPool ()
238+ .name ("white_pelt" )
239+ .when (LootItemKilledByPlayerCondition .killedByPlayer ())
240+ .when (LootItemRandomChanceWithEnchantedBonusCondition .randomChanceAndLootingBoost (this .registries , 0.025f , 0.015f ))
241+ .add (LootItem .lootTableItem (ModItems .WHITE_PELT .get ())))
238242 .withPool (LootPool .lootPool ()
239243 .name ("vampire_book" )
240244 .when (LootItemKilledByPlayerCondition .killedByPlayer ())
241- .when (LootItemRandomChanceWithEnchantedBonusCondition .randomChanceAndLootingBoost (this .registries , 0.1f , 0.015f ))
242- .setRolls (ConstantValue .exactly (1 ))
245+ .when (LootItemRandomChanceWithEnchantedBonusCondition .randomChanceAndLootingBoost (this .registries , 0.05f , 0.025f ))
243246 .add (LootItem .lootTableItem (ModItems .V .VAMPIRE_BOOK .get ()).apply (AddBookNbtFunction .builder ()).setWeight (1 ))
244247 )
245248 );
You can’t perform that action at this time.
0 commit comments