-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added datagen stuff and rose loot table
-Rose now drops itself when broken -Potted Rose now drops a pot and a rose when broken -Datagen Stuff added (most of them commented out on the DataGenerator class due to them not being used) *Contents of the "generated" folder have not been added (at least yet) bc idk if im supposed to. I have plans to make a Github Actions script that runs datagen for me on the repo. Until then, if you download this repo you will have to run datagen manually before building.
- Loading branch information
flatkat
committed
Jul 20, 2024
1 parent
2e65f63
commit 3bb6e32
Showing
6 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/net/flatkat/ancient_forgotten/datagen/ModBlockTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.flatkat.ancient_forgotten.datagen; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.registry.RegistryWrapper; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class ModBlockTagProvider extends FabricTagProvider.BlockTagProvider { | ||
|
||
public ModBlockTagProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) { | ||
super(output, registriesFuture); | ||
} | ||
|
||
@Override | ||
protected void configure(RegistryWrapper.WrapperLookup arg) { | ||
|
||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/net/flatkat/ancient_forgotten/datagen/ModItemTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package net.flatkat.ancient_forgotten.datagen; | ||
|
||
public class ModItemTagProvider { | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/net/flatkat/ancient_forgotten/datagen/ModLootTableProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.flatkat.ancient_forgotten.datagen; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLootTableProvider; | ||
import net.flatkat.ancient_forgotten.block.ModBlocks; | ||
|
||
public class ModLootTableProvider extends FabricBlockLootTableProvider { | ||
|
||
public ModLootTableProvider(FabricDataOutput dataOutput) { | ||
super(dataOutput); | ||
} | ||
|
||
@Override | ||
public void generate() { | ||
addDrop(ModBlocks.ROSE); | ||
addPottedPlantDrops(ModBlocks.POTTED_ROSE); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/net/flatkat/ancient_forgotten/datagen/ModModelProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package net.flatkat.ancient_forgotten.datagen; | ||
|
||
public class ModModelProvider { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/net/flatkat/ancient_forgotten/datagen/ModRecipeProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package net.flatkat.ancient_forgotten.datagen; | ||
|
||
public class ModRecipeProvider { | ||
} |