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
|
||||
* Re-made texture and model to better fit the USSR aesthetic
|
||||
* 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
|
||||
* Several tiny fixes
|
||||
* Light bulb break noise is now in correct category
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_nugget": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
|
@ -13,42 +25,17 @@
|
|||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_stick": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:stick"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "new_soviet:ceiling_fan"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
},
|
||||
"has_white_wool": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:white_wool"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_nugget",
|
||||
"has_stick",
|
||||
"has_white_wool",
|
||||
"has_iron_ingot",
|
||||
"has_the_recipe"
|
||||
]
|
||||
],
|
||||
|
|
|
@ -2,19 +2,16 @@
|
|||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"N": {
|
||||
"item": "minecraft:iron_nugget"
|
||||
},
|
||||
"S": {
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"W": {
|
||||
"item": "minecraft:white_wool"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
" S ",
|
||||
"WNW"
|
||||
" I ",
|
||||
"NNN"
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:ceiling_fan"
|
||||
|
|
|
@ -175,17 +175,14 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
|
||||
private void ceilingFanRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output) {
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, output, 1)
|
||||
.pattern(" S ")
|
||||
.pattern("WNW")
|
||||
.input('S', Items.STICK)
|
||||
.pattern(" I ")
|
||||
.pattern("NNN")
|
||||
.input('I', Items.IRON_INGOT)
|
||||
.input('N', Items.IRON_NUGGET)
|
||||
.input('W', Items.WHITE_WOOL)
|
||||
.criterion(RecipeProvider.hasItem(Items.IRON_NUGGET),
|
||||
RecipeProvider.conditionsFromItem(Items.IRON_NUGGET))
|
||||
.criterion(RecipeProvider.hasItem(Items.STICK),
|
||||
RecipeProvider.conditionsFromItem(Items.STICK))
|
||||
.criterion(RecipeProvider.hasItem(Items.WHITE_WOOL),
|
||||
RecipeProvider.conditionsFromItem(Items.WHITE_WOOL))
|
||||
.criterion(RecipeProvider.hasItem(Items.IRON_INGOT),
|
||||
RecipeProvider.conditionsFromItem(Items.IRON_INGOT))
|
||||
.offerTo(exporter);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue