Skip to content

Commit

Permalink
feat: Add Blender recipe, slight change to printer recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Dec 31, 2023
1 parent 80b03e1 commit 86c8b91
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@ public ModRecipeProvider(FabricDataOutput output) {
public void buildRecipes(Consumer<FinishedRecipe> exporter) {
ShapedRecipeBuilder.shaped(RecipeCategory.DECORATIONS, ModBlocks.printer)
.pattern("ICI")
.pattern("ILI")
.pattern("GLG")
.pattern("IRI")
.define('C', Items.COPPER_INGOT)
.define('G', Items.GLASS_PANE)
.define('I', Items.IRON_INGOT)
.define('L', Items.LIGHTNING_ROD)
.define('R', Items.REDSTONE)
.unlockedBy("has_redstone", has(Items.REDSTONE))
.save(exporter);

ShapedRecipeBuilder.shaped(RecipeCategory.DECORATIONS, ModBlocks.blender)
.pattern("III")
.pattern("GFG")
.pattern("III")
.define('G', Items.GLASS_PANE)
.define('I', Items.IRON_INGOT)
.define('F', Items.FLINT)
.unlockedBy("has_flint", has(Items.FLINT))
.save(exporter);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
"variants": {
"": {
"facing=east": {
"model": "forbiddensmoothies:block/blender",
"y": 90
},
"facing=north": {
"model": "forbiddensmoothies:block/blender"
},
"facing=south": {
"model": "forbiddensmoothies:block/blender",
"y": 180
},
"facing=west": {
"model": "forbiddensmoothies:block/blender",
"y": 270
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_flint": {
"conditions": {
"items": [
{
"items": [
"minecraft:flint"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "forbiddensmoothies:blender"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_flint",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"forbiddensmoothies:blender"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"F": {
"item": "minecraft:flint"
},
"G": {
"item": "minecraft:glass_pane"
},
"I": {
"item": "minecraft:iron_ingot"
}
},
"pattern": [
"III",
"GFG",
"III"
],
"result": {
"item": "forbiddensmoothies:blender"
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"C": {
"item": "minecraft:copper_ingot"
},
"G": {
"item": "minecraft:glass_pane"
},
"I": {
"item": "minecraft:iron_ingot"
},
Expand All @@ -17,7 +20,7 @@
},
"pattern": [
"ICI",
"ILI",
"GLG",
"IRI"
],
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
public class ForbiddenSmoothies {

// TODO fancy in-world rendering
// TODO Blender
// TODO better textures for the models
// TODO Slightly different blender UI?

public static final String MOD_ID = "forbiddensmoothies";
public static final Logger logger = LogManager.getLogger(MOD_ID);
Expand Down

0 comments on commit 86c8b91

Please sign in to comment.