Skip to content

Commit

Permalink
Fix Item Tag Datagen
Browse files Browse the repository at this point in the history
All Datagen is completely working now!
  • Loading branch information
EmpressAutumn committed Dec 2, 2024
1 parent ca38d16 commit 5b9edda
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
5 changes: 5 additions & 0 deletions common/src/main/generated/data/fabric/tags/item/axes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"titanium:titanium_axe"
]
}
5 changes: 5 additions & 0 deletions common/src/main/generated/data/fabric/tags/item/hoes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"titanium:titanium_hoe"
]
}
5 changes: 5 additions & 0 deletions common/src/main/generated/data/fabric/tags/item/pickaxes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"titanium:titanium_pickaxe"
]
}
5 changes: 5 additions & 0 deletions common/src/main/generated/data/fabric/tags/item/shovels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"titanium:titanium_shovel"
]
}
5 changes: 5 additions & 0 deletions common/src/main/generated/data/fabric/tags/item/swords.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"titanium:titanium_sword"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ public static void gatherData(GatherDataEvent event) {
new TitaniumAdvancementGenerator()
)));
generator.addProvider(true, new TitaniumBlockStateProvider(output, exFileHelper));
generator.addProvider(true, new TitaniumBlockTagProvider(output, completableFuture, exFileHelper));
generator.addProvider(true, blockTagsProvider);
generator.addProvider(true, new TitaniumItemModelProvider(output, exFileHelper));
//generator.addProvider(true, new TitaniumItemTagProvider(output, completableFuture, blockTagsProvider.contentsGetter(), exFileHelper));
generator.addProvider(true, new TitaniumItemTagProvider(output, completableFuture, blockTagsProvider.contentsGetter(), exFileHelper));
generator.addProvider(true, new LootTableProvider(output, Collections.emptySet(), List.of(
new LootTableProvider.SubProviderEntry(TitaniumBlockLootTables::new, LootContextParamSets.BLOCK),
new LootTableProvider.SubProviderEntry(TitaniumChestLootTables::new, LootContextParamSets.CHEST)
), completableFuture));
generator.addProvider(true, new TitaniumRecipeProvider(output, completableFuture));
generator.addProvider(true, new TitaniumWorldGenProvider(output, completableFuture));

// Not working: TitaniumItemTagProvider
// Loot Tables are not finished
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.util.concurrent.CompletableFuture;

public class TitaniumItemTagProvider extends ItemTagsProvider {

public TitaniumItemTagProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, CompletableFuture<TagLookup<Block>> completableFuture, @Nullable ExistingFileHelper exFileHelper) {
super(output, lookupProvider, completableFuture, Titanium.MOD_ID, exFileHelper);
}
Expand Down

0 comments on commit 5b9edda

Please sign in to comment.