generated from Tellios-Projects/Tellios-Template
-
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.
- Loading branch information
Showing
12 changed files
with
111 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,6 @@ hs_err_*.log | |
replay_*.log | ||
*.hprof | ||
*.jfr | ||
|
||
# datagen | ||
src/main/generated/.cache |
2 changes: 0 additions & 2 deletions
2
src/main/generated/.cache/6fa3adb4fca924d179eb4b8a8e4283507f3797a1
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/generated/.cache/7c1de345afb5bf681e6a8125d617dc2e7d65aa2d
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
src/main/generated/.cache/e43a29f4397b72b7523d5fcc156ae2acd12a63ac
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
src/main/generated/data/expandedmobdrops/advancement/recipes/building_blocks/fat_block.json
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,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_fat": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "expandedmobdrops:fat" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "expandedmobdrops:fat_block" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_fat" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"expandedmobdrops:fat_block" | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/generated/data/expandedmobdrops/recipe/fat_block.json
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,17 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "building", | ||
"key": { | ||
"#": { | ||
"item": "expandedmobdrops:fat" | ||
} | ||
}, | ||
"pattern": [ | ||
"##", | ||
"##" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "expandedmobdrops:fat_block" | ||
} | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
.../expandedmobdrops/data/ModelProvider.java → ...edmobdrops/data/client/ModelProvider.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
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
22 changes: 22 additions & 0 deletions
22
src/main/java/net/leafenzo/expandedmobdrops/data/server/RecipeProvider.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,22 @@ | ||
package net.leafenzo.expandedmobdrops.data.server; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider; | ||
import net.leafenzo.expandedmobdrops.block.EMDBlocks; | ||
import net.leafenzo.expandedmobdrops.item.EMDItems; | ||
import net.minecraft.data.server.recipe.RecipeExporter; | ||
import net.minecraft.recipe.book.RecipeCategory; | ||
import net.minecraft.registry.RegistryWrapper; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class RecipeProvider extends FabricRecipeProvider { | ||
public RecipeProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) { | ||
super(output, registriesFuture); | ||
} | ||
|
||
@Override | ||
public void generate(RecipeExporter exporter) { | ||
offer2x2CompactingRecipe(exporter, RecipeCategory.BUILDING_BLOCKS, EMDBlocks.FAT_BLOCK, EMDItems.FAT); | ||
} | ||
} |
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