File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
fabric/1.21/src/main/java/top/offsetmonkey538/loottablemodifier/fabric/v121/datagen Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ protected void generate(HolderLookup.Provider lookup) {
145145 LootModifier .builder ()
146146 .conditionally (
147147 TablePredicate .builder ()
148- .name (Blocks .DIRT .getLootTable ().toString ())
148+ .name (Blocks .DIRT .getLootTable ().location (). toString ())
149149 )
150150 .action (
151151 EntryAddAction .builder ()
@@ -174,7 +174,7 @@ protected void generate(HolderLookup.Provider lookup) {
174174 id ("remove_glowstone_and_gunpowder_from_witch" ),
175175 LootModifier .builder ()
176176 .conditionally (
177- TablePredicate .builder ().name (EntityType .WITCH .getDefaultLootTable ().toString ())
177+ TablePredicate .builder ().name (EntityType .WITCH .getDefaultLootTable ().location (). toString ())
178178 .and (
179179 EntryItemPredicate .builder (new ItemWrapper (BuiltInRegistries .ITEM .wrapAsHolder (Items .GLOWSTONE_DUST )))
180180 .or (EntryItemPredicate .builder (new ItemWrapper (BuiltInRegistries .ITEM .wrapAsHolder (Items .GUNPOWDER ))))
@@ -189,7 +189,7 @@ protected void generate(HolderLookup.Provider lookup) {
189189 LootModifier .builder ()
190190 .conditionally (
191191 TablePredicate .builder ()
192- .name (EntityType .SQUID .getDefaultLootTable ().toString ())
192+ .name (EntityType .SQUID .getDefaultLootTable ().location (). toString ())
193193 .and (EntryItemPredicate .builder (new ItemWrapper (BuiltInRegistries .ITEM .wrapAsHolder (Items .INK_SAC ))))
194194 )
195195 .action (
You can’t perform that action at this time.
0 commit comments