Skip to content

Commit

Permalink
tags done
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Oct 6, 2024
1 parent 33e91b7 commit 8ea5804
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DynamicDataPack extends DynServerResourcesGenerator {
public DynamicDataPack() {
super(new net.mehvahdjukaar.moonlight.api.resources.pack.DynamicDataPack(ResourceLocation.fromNamespaceAndPath(MorePlatesMod.MODID,"generated_pack"), Pack.Position.TOP, false, false));
this.dynamicPack.setGenerateDebugResources(PlatHelper.isDev());
this.dynamicPack.addNamespaces(MorePlatesMod.MODID, "c");
this.dynamicPack.addNamespaces("c");
}


Expand Down Expand Up @@ -71,7 +71,7 @@ public void regenerateDynamicAssets(ResourceManager manager) {

SimpleTagBuilder tagBuilder = SimpleTagBuilder.of(ResourceLocation.fromNamespaceAndPath("c", "plates/"+rawName.replace("_plate", "")));
tagBuilder.addEntry(item);
this.dynamicPack.addTag(tagBuilder, Registries.ITEM);
dynamicPack.addTag(tagBuilder, Registries.ITEM);
System.out.println("Adding tag: "+tagBuilder.getId() + " with entry: "+item);

Item ingot = inputItem.getItem();
Expand Down

0 comments on commit 8ea5804

Please sign in to comment.