Skip to content

Commit

Permalink
SimpleEntrySet: Corrected the Location of loot_tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelbayria committed Dec 24, 2024
1 parent 6c8104d commit 2774985
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,12 @@ protected BlockTypeResTransformer<T> makeBlockStateTransformer(SimpleModule modu
protected BlockTypeResTransformer<T> makeLootTableTransformer(SimpleModule module, ResourceManager manager) {
String oldTypeName = baseType.get().getTypeName();
return BlockTypeResTransformer.<T>create(module.modId, manager)
// Modifying the JSON filenames & path
.setIDModifier((text, blockId, type) ->
BlockTypeResTransformer.replaceFullGenericType(text, type, blockId, oldTypeName, null, 2))
// Modifying the JSON files' content
.addModifier((text, blockId, type) ->
BlockTypeResTransformer.replaceFullGenericType(text, type, blockId, oldTypeName, module.modId, 2))
.addModifier((text, blockId, type) ->
ResourcesUtils.convertItemIDinText(text, baseType.get(), type))
.IDReplaceType(oldTypeName);
ResourcesUtils.convertItemIDinText(text, baseType.get(), type));
}

//ok...
Expand Down

0 comments on commit 2774985

Please sign in to comment.