Change whitewash recipe

This commit is contained in:
Andrew-71 2024-04-28 10:45:42 +03:00
parent bd86cf764c
commit 2606dc1f66
4 changed files with 40 additions and 17 deletions

View file

@ -78,7 +78,8 @@ Due to sheer amount of changes, many may be undocumented. We hope you enjoy this
* Now uses screwdriver to change sound
* Sound names now translatable
* Added a questionable sound option
* At least 2 new advancements
* Whitewash can now be applied to concrete and some other blocks with a brush
* Added new advancements
* Bug fixes
* Added many of the missing crafting recipes
* Stone-cutting recipe for slabs now gives 2 blocks
@ -91,4 +92,5 @@ Due to sheer amount of changes, many may be undocumented. We hope you enjoy this
* Technical changes
* Changed parts of file structure for models and textures
* Removed some unused textures intended for later updates
* Moved to newer Fabric, Loom etc. versions. Took a while to figure out how to update Gradle :D
* Moved to newer Fabric, Loom etc. versions. Took a while to figure out how to update Gradle :D
* Source-sets main and client have been merged to fix mixins

View file

@ -1,12 +1,24 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_bucket": {
"conditions": {
"items": [
{
"items": [
"new_soviet:whitewash_item"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_quartz": {
"conditions": {
"items": [
{
"items": [
"minecraft:quartz"
"new_soviet:whitewash_item"
]
}
]
@ -24,7 +36,7 @@
"items": [
{
"items": [
"minecraft:white_dye"
"new_soviet:whitewash_item"
]
}
]
@ -36,6 +48,7 @@
[
"has_quartz",
"has_white_dye",
"has_bucket",
"has_the_recipe"
]
],

View file

@ -1,21 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"key": {
"X": {
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "minecraft:quartz"
},
"Y": {
{
"item": "minecraft:quartz"
},
{
"item": "minecraft:white_dye"
},
{
"item": "minecraft:white_dye"
},
{
"item": "minecraft:bucket"
}
},
"pattern": [
"XY",
"YX"
],
"result": {
"count": 6,
"item": "new_soviet:whitewash_item"
},
"show_notification": true
}
}

View file

@ -1146,6 +1146,11 @@ public class RecipeGenerator extends FabricRecipeProvider {
.criterion(FabricRecipeProvider.hasItem(Items.WHEAT), FabricRecipeProvider.conditionsFromItem(NSE_Items.GRAIN_PATTERN))
.offerTo(exporter);
crissCrossRecipe(exporter, NSE_Items.WHITEWASH_ITEM, Items.QUARTZ, Items.WHITE_DYE, 6);
ShapelessRecipeJsonBuilder.create(RecipeCategory.MISC, NSE_Items.WHITEWASH_ITEM)
.input(Items.QUARTZ, 2).input(Items.WHITE_DYE, 2).input(Items.BUCKET)
.criterion(FabricRecipeProvider.hasItem(Items.QUARTZ), FabricRecipeProvider.conditionsFromItem(NSE_Items.WHITEWASH_ITEM))
.criterion(FabricRecipeProvider.hasItem(Items.WHITE_DYE), FabricRecipeProvider.conditionsFromItem(NSE_Items.WHITEWASH_ITEM))
.criterion(FabricRecipeProvider.hasItem(Items.BUCKET), FabricRecipeProvider.conditionsFromItem(NSE_Items.WHITEWASH_ITEM))
.offerTo(exporter);
}
}