Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
278 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"inspirations:milk", | ||
"inspirations:flowing_milk" | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
...resources/data/inspirations/advancements/recipes/cauldron/cauldron/empty_milk_bucket.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", | ||
"rewards": { | ||
"recipes": [ | ||
"inspirations:cauldron/empty_milk_bucket" | ||
] | ||
}, | ||
"criteria": { | ||
"has_item": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"item": "minecraft:milk_bucket" | ||
} | ||
] | ||
} | ||
}, | ||
"has_the_recipe": { | ||
"trigger": "minecraft:recipe_unlocked", | ||
"conditions": { | ||
"recipe": "inspirations:cauldron/empty_milk_bucket" | ||
} | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
.../resources/data/inspirations/advancements/recipes/cauldron/cauldron/fill_milk_bucket.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", | ||
"rewards": { | ||
"recipes": [ | ||
"inspirations:cauldron/fill_milk_bucket" | ||
] | ||
}, | ||
"criteria": { | ||
"has_item": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"item": "minecraft:milk_bucket" | ||
} | ||
] | ||
} | ||
}, | ||
"has_the_recipe": { | ||
"trigger": "minecraft:recipe_unlocked", | ||
"conditions": { | ||
"recipe": "inspirations:cauldron/fill_milk_bucket" | ||
} | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
] | ||
} |
41 changes: 41 additions & 0 deletions
41
src/generated/resources/data/inspirations/recipes/cauldron/empty_milk_bucket.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,41 @@ | ||
{ | ||
"type": "inspirations:cauldron", | ||
"conditions": [ | ||
{ | ||
"prop": "recipes_module", | ||
"type": "inspirations:config" | ||
}, | ||
{ | ||
"prop": "cauldron_recipes", | ||
"type": "inspirations:config" | ||
} | ||
], | ||
"input": { | ||
"item": { | ||
"item": "minecraft:milk_bucket" | ||
}, | ||
"contents": { | ||
"type": "inspirations:fluid", | ||
"tag": "forge:milk" | ||
}, | ||
"level": { | ||
"max": 2 | ||
} | ||
}, | ||
"output": { | ||
"item": { | ||
"item": "minecraft:bucket" | ||
}, | ||
"container": { | ||
"empty": true | ||
}, | ||
"contents": { | ||
"type": "inspirations:fluid", | ||
"name": "inspirations:milk" | ||
}, | ||
"level": { | ||
"set": 3 | ||
} | ||
}, | ||
"sound": "minecraft:item.bucket.empty" | ||
} |
34 changes: 34 additions & 0 deletions
34
src/generated/resources/data/inspirations/recipes/cauldron/fill_milk_bucket.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,34 @@ | ||
{ | ||
"type": "inspirations:cauldron", | ||
"conditions": [ | ||
{ | ||
"prop": "recipes_module", | ||
"type": "inspirations:config" | ||
}, | ||
{ | ||
"prop": "cauldron_recipes", | ||
"type": "inspirations:config" | ||
} | ||
], | ||
"input": { | ||
"item": { | ||
"item": "minecraft:milk_bucket" | ||
}, | ||
"contents": { | ||
"type": "inspirations:fluid", | ||
"tag": "forge:milk" | ||
}, | ||
"level": { | ||
"min": 3 | ||
} | ||
}, | ||
"output": { | ||
"item": { | ||
"item": "minecraft:milk_bucket" | ||
}, | ||
"level": { | ||
"set": 0 | ||
} | ||
}, | ||
"sound": "minecraft:item.bucket.fill" | ||
} |
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
24 changes: 24 additions & 0 deletions
24
src/main/java/knightminer/inspirations/common/datagen/InspirationsFluidTagsProvider.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,24 @@ | ||
package knightminer.inspirations.common.datagen; | ||
|
||
import knightminer.inspirations.Inspirations; | ||
import knightminer.inspirations.library.InspirationsTags; | ||
import knightminer.inspirations.recipes.InspirationsRecipes; | ||
import net.minecraft.data.DataGenerator; | ||
import net.minecraft.data.FluidTagsProvider; | ||
|
||
public class InspirationsFluidTagsProvider extends FluidTagsProvider { | ||
public InspirationsFluidTagsProvider(DataGenerator gen) { | ||
super(gen); | ||
this.modId = Inspirations.modID; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Inspirations Fluid Tags"; | ||
} | ||
|
||
@Override | ||
protected void registerTags() { | ||
this.getOrCreateBuilder(InspirationsTags.Fluids.MILK).add(InspirationsRecipes.milk, InspirationsRecipes.milk.getFlowingFluid()); | ||
} | ||
} |
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
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
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
26 changes: 26 additions & 0 deletions
26
src/main/resources/data/inspirations/recipes/compat/rats/cheese_from_milk.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,26 @@ | ||
{ | ||
"type": "inspirations:cauldron_transform", | ||
"conditions": [ | ||
{ | ||
"prop": "extended_cauldron_recipes", | ||
"type": "inspirations:config" | ||
}, | ||
{ | ||
"modid": "rats", | ||
"type": "forge:mod_loaded" | ||
} | ||
], | ||
"input": { | ||
"type": "inspirations:fluid", | ||
"tag": "forge:milk" | ||
}, | ||
"level": { | ||
"min": 3 | ||
}, | ||
"output": { | ||
"type": "inspirations:custom", | ||
"name": "rats:cheese" | ||
}, | ||
"time": 150, | ||
"sound": "minecraft:block.slime_block.place" | ||
} |
Oops, something went wrong.