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 * Now uses screwdriver to change sound
* Sound names now translatable * Sound names now translatable
* Added a questionable sound option * 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 * Bug fixes
* Added many of the missing crafting recipes * Added many of the missing crafting recipes
* Stone-cutting recipe for slabs now gives 2 blocks * Stone-cutting recipe for slabs now gives 2 blocks
@ -92,3 +93,4 @@ Due to sheer amount of changes, many may be undocumented. We hope you enjoy this
* Changed parts of file structure for models and textures * Changed parts of file structure for models and textures
* Removed some unused textures intended for later updates * 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", "parent": "minecraft:recipes/root",
"criteria": { "criteria": {
"has_bucket": {
"conditions": {
"items": [
{
"items": [
"new_soviet:whitewash_item"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_quartz": { "has_quartz": {
"conditions": { "conditions": {
"items": [ "items": [
{ {
"items": [ "items": [
"minecraft:quartz" "new_soviet:whitewash_item"
] ]
} }
] ]
@ -24,7 +36,7 @@
"items": [ "items": [
{ {
"items": [ "items": [
"minecraft:white_dye" "new_soviet:whitewash_item"
] ]
} }
] ]
@ -36,6 +48,7 @@
[ [
"has_quartz", "has_quartz",
"has_white_dye", "has_white_dye",
"has_bucket",
"has_the_recipe" "has_the_recipe"
] ]
], ],

View file

@ -1,21 +1,24 @@
{ {
"type": "minecraft:crafting_shaped", "type": "minecraft:crafting_shapeless",
"category": "building", "category": "misc",
"key": { "ingredients": [
"X": { {
"item": "minecraft:quartz" "item": "minecraft:quartz"
}, },
"Y": { {
"item": "minecraft:white_dye" "item": "minecraft:quartz"
}
}, },
"pattern": [ {
"XY", "item": "minecraft:white_dye"
"YX" },
{
"item": "minecraft:white_dye"
},
{
"item": "minecraft:bucket"
}
], ],
"result": { "result": {
"count": 6,
"item": "new_soviet:whitewash_item" "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)) .criterion(FabricRecipeProvider.hasItem(Items.WHEAT), FabricRecipeProvider.conditionsFromItem(NSE_Items.GRAIN_PATTERN))
.offerTo(exporter); .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);
} }
} }