Change ceiling fan recipe
This commit is contained in:
parent
55724bb0a2
commit
7b3aedbc94
4 changed files with 26 additions and 43 deletions
|
@ -12,7 +12,9 @@
|
||||||
* Improved Radio
|
* Improved Radio
|
||||||
* Re-made texture and model to better fit the USSR aesthetic
|
* Re-made texture and model to better fit the USSR aesthetic
|
||||||
* Added ability to waterlog radios
|
* Added ability to waterlog radios
|
||||||
* Re-made ceiling fan texture and model to better fit the USSR aesthetic
|
* Improved ceiling fan
|
||||||
|
* Re-made texture and model to better fit the USSR aesthetic
|
||||||
|
* Changed crafting recipe to match new model
|
||||||
* Added golden lamp crafting recipe
|
* Added golden lamp crafting recipe
|
||||||
* Several tiny fixes
|
* Several tiny fixes
|
||||||
* Light bulb break noise is now in correct category
|
* Light bulb break noise is now in correct category
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
{
|
{
|
||||||
"parent": "minecraft:recipes/root",
|
"parent": "minecraft:recipes/root",
|
||||||
"criteria": {
|
"criteria": {
|
||||||
|
"has_iron_ingot": {
|
||||||
|
"conditions": {
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"items": [
|
||||||
|
"minecraft:iron_ingot"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"trigger": "minecraft:inventory_changed"
|
||||||
|
},
|
||||||
"has_iron_nugget": {
|
"has_iron_nugget": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"items": [
|
"items": [
|
||||||
|
@ -13,42 +25,17 @@
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:inventory_changed"
|
"trigger": "minecraft:inventory_changed"
|
||||||
},
|
},
|
||||||
"has_stick": {
|
|
||||||
"conditions": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"items": [
|
|
||||||
"minecraft:stick"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"trigger": "minecraft:inventory_changed"
|
|
||||||
},
|
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "new_soviet:ceiling_fan"
|
"recipe": "new_soviet:ceiling_fan"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
},
|
|
||||||
"has_white_wool": {
|
|
||||||
"conditions": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"items": [
|
|
||||||
"minecraft:white_wool"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"trigger": "minecraft:inventory_changed"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requirements": [
|
"requirements": [
|
||||||
[
|
[
|
||||||
"has_iron_nugget",
|
"has_iron_nugget",
|
||||||
"has_stick",
|
"has_iron_ingot",
|
||||||
"has_white_wool",
|
|
||||||
"has_the_recipe"
|
"has_the_recipe"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,19 +2,16 @@
|
||||||
"type": "minecraft:crafting_shaped",
|
"type": "minecraft:crafting_shaped",
|
||||||
"category": "misc",
|
"category": "misc",
|
||||||
"key": {
|
"key": {
|
||||||
|
"I": {
|
||||||
|
"item": "minecraft:iron_ingot"
|
||||||
|
},
|
||||||
"N": {
|
"N": {
|
||||||
"item": "minecraft:iron_nugget"
|
"item": "minecraft:iron_nugget"
|
||||||
},
|
|
||||||
"S": {
|
|
||||||
"item": "minecraft:stick"
|
|
||||||
},
|
|
||||||
"W": {
|
|
||||||
"item": "minecraft:white_wool"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pattern": [
|
"pattern": [
|
||||||
" S ",
|
" I ",
|
||||||
"WNW"
|
"NNN"
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "new_soviet:ceiling_fan"
|
"item": "new_soviet:ceiling_fan"
|
||||||
|
|
|
@ -175,17 +175,14 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
||||||
|
|
||||||
private void ceilingFanRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output) {
|
private void ceilingFanRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output) {
|
||||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, output, 1)
|
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, output, 1)
|
||||||
.pattern(" S ")
|
.pattern(" I ")
|
||||||
.pattern("WNW")
|
.pattern("NNN")
|
||||||
.input('S', Items.STICK)
|
.input('I', Items.IRON_INGOT)
|
||||||
.input('N', Items.IRON_NUGGET)
|
.input('N', Items.IRON_NUGGET)
|
||||||
.input('W', Items.WHITE_WOOL)
|
|
||||||
.criterion(RecipeProvider.hasItem(Items.IRON_NUGGET),
|
.criterion(RecipeProvider.hasItem(Items.IRON_NUGGET),
|
||||||
RecipeProvider.conditionsFromItem(Items.IRON_NUGGET))
|
RecipeProvider.conditionsFromItem(Items.IRON_NUGGET))
|
||||||
.criterion(RecipeProvider.hasItem(Items.STICK),
|
.criterion(RecipeProvider.hasItem(Items.IRON_INGOT),
|
||||||
RecipeProvider.conditionsFromItem(Items.STICK))
|
RecipeProvider.conditionsFromItem(Items.IRON_INGOT))
|
||||||
.criterion(RecipeProvider.hasItem(Items.WHITE_WOOL),
|
|
||||||
RecipeProvider.conditionsFromItem(Items.WHITE_WOOL))
|
|
||||||
.offerTo(exporter);
|
.offerTo(exporter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue