From 22e05bcbb83d17ddcd004f1c6602a6ee3a4ce775 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 31 Jan 2019 14:18:27 +0200 Subject: [PATCH] Added recipes for most new food items --- .../com/minelittlepony/unicopia/UItems.java | 9 ++-- .../assets/unicopia/recipes/cider.json | 48 ++++++++++++++++++ .../assets/unicopia/recipes/cider_2.json | 49 +++++++++++++++++++ .../recipes/daffodil_daisy_sandwich_safe.json | 30 ++++++++++++ .../daffodil_daisy_sandwich_toxic.json | 32 ++++++++++++ .../unicopia/recipes/hay_burger_safe.json | 34 +++++++++++++ .../unicopia/recipes/hay_burger_toxic.json | 38 ++++++++++++++ .../assets/unicopia/recipes/hay_fries.json | 20 ++++++++ .../assets/unicopia/recipes/juice.json | 39 +++++++++++++++ .../assets/unicopia/recipes/mug.json | 25 ++++++++++ .../assets/unicopia/recipes/salad_fair.json | 34 +++++++++++++ .../assets/unicopia/recipes/salad_lethal.json | 41 ++++++++++++++++ .../assets/unicopia/recipes/salad_safe.json | 29 +++++++++++ .../assets/unicopia/recipes/salad_toxic.json | 39 +++++++++++++++ 14 files changed, 464 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/assets/unicopia/recipes/cider.json create mode 100644 src/main/resources/assets/unicopia/recipes/cider_2.json create mode 100644 src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_safe.json create mode 100644 src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_toxic.json create mode 100644 src/main/resources/assets/unicopia/recipes/hay_burger_safe.json create mode 100644 src/main/resources/assets/unicopia/recipes/hay_burger_toxic.json create mode 100644 src/main/resources/assets/unicopia/recipes/hay_fries.json create mode 100644 src/main/resources/assets/unicopia/recipes/juice.json create mode 100644 src/main/resources/assets/unicopia/recipes/mug.json create mode 100644 src/main/resources/assets/unicopia/recipes/salad_fair.json create mode 100644 src/main/resources/assets/unicopia/recipes/salad_lethal.json create mode 100644 src/main/resources/assets/unicopia/recipes/salad_safe.json create mode 100644 src/main/resources/assets/unicopia/recipes/salad_toxic.json diff --git a/src/main/java/com/minelittlepony/unicopia/UItems.java b/src/main/java/com/minelittlepony/unicopia/UItems.java index 708a3e68..0946cb2e 100644 --- a/src/main/java/com/minelittlepony/unicopia/UItems.java +++ b/src/main/java/com/minelittlepony/unicopia/UItems.java @@ -143,10 +143,13 @@ public class UItems { ).setFoodDelegate(new ItemEdible(new FlowerToxicityDeterminent(BlockFlower.EnumFlowerColor.RED))) .setTranslationKey("rose"); - public static final Item daffodil_daisy_sandwich = new ItemEdible(Unicopia.MODID, "daffodil_daisy_sandwich", 3, 2, CookedToxicityDeterminent.instance); - public static final Item hay_burger = new ItemEdible(Unicopia.MODID, "hay_burger", 3, 4, CookedToxicityDeterminent.instance); - public static final Item hay_fries = new ItemEdible(Unicopia.MODID, "hay_fries", 1, 5, CookedToxicityDeterminent.instance); + public static final Item daffodil_daisy_sandwich = new ItemEdible(Unicopia.MODID, "daffodil_daisy_sandwich", 3, 2, CookedToxicityDeterminent.instance) + .setHasSubtypes(true); + public static final Item hay_burger = new ItemEdible(Unicopia.MODID, "hay_burger", 3, 4, CookedToxicityDeterminent.instance) + .setHasSubtypes(true); + public static final Item hay_fries = new ItemEdible(Unicopia.MODID, "hay_fries", 1, 5, stack -> Toxicity.SAFE); public static final Item salad = new ItemEdible(Unicopia.MODID, "salad", 4, 2, CookedToxicityDeterminent.instance) + .setHasSubtypes(true) .setContainerItem(Items.BOWL); public static final Item wheat_worms = new ItemEdible(Unicopia.MODID, "wheat_worms", 1, 0, stack -> Toxicity.SEVERE); diff --git a/src/main/resources/assets/unicopia/recipes/cider.json b/src/main/resources/assets/unicopia/recipes/cider.json new file mode 100644 index 00000000..2ab5367c --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/cider.json @@ -0,0 +1,48 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "SBS", + "NAN", + " S " + ], + "key": { + "S": [ + { + "item": "minecraft:stick" + } + ], + "B": [ + { + "item": "unicopia:burned_juice" + } + ], + "N": [ + { + "item": "minecraft:iron_nugget" + } + ], + "A": [ + { + "item": "minecraft:apple", + "data": 0 + }, + { + "item": "minecraft:apple", + "data": 1 + }, + { + "item": "minecraft:apple", + "data": 2 + }, + { + "item": "minecraft:apple", + "data": 3 + } + ] + }, + "result": { + "item": "unicopia:apple_cider", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/cider_2.json b/src/main/resources/assets/unicopia/recipes/cider_2.json new file mode 100644 index 00000000..4377a501 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/cider_2.json @@ -0,0 +1,49 @@ +{ + "type": "minecraft:crafting_shaped", + + "pattern": [ + "A B", + " J ", + " M " + ], + "key": { + "M": [ + { + "item": "unicopia:mug" + } + ], + "J": [ + { + "item": "unicopia:juice", "data": 0 + } + ], + "B": [ + { + "item": "unicopia:burned_juice", "data": 0 + } + ], + "A": [ + { + "item": "minecraft:apple", + "data": 0 + }, + { + "item": "minecraft:apple", + "data": 1 + }, + { + "item": "minecraft:apple", + "data": 2 + }, + { + "item": "minecraft:apple", + "data": 3 + } + ] + }, + "result": { + "item": "unicopia:apple_cider", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_safe.json b/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_safe.json new file mode 100644 index 00000000..40f42aaa --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_safe.json @@ -0,0 +1,30 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " B ", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bread" + } + ], + "F": [ + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:daffodil_daisy_sandwich", + "data": 0, + "count": 2 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_toxic.json b/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_toxic.json new file mode 100644 index 00000000..bb405d5e --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/daffodil_daisy_sandwich_toxic.json @@ -0,0 +1,32 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " B ", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bread" + } + ], + "F": [ + { "item": "minecraft:red_flower", "data": 0 }, + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:red_flower", "data": 8 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:daffodil_daisy_sandwich", + "data": 2, + "count": 2 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/hay_burger_safe.json b/src/main/resources/assets/unicopia/recipes/hay_burger_safe.json new file mode 100644 index 00000000..464bed55 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/hay_burger_safe.json @@ -0,0 +1,34 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "AAA", + "FTF", + "AAA" + ], + "key": { + "A": [ + { + "item": "unicopia:alfalfa_leaves" + } + ], + "T": [ + { "item": "unicopia:tomato", "data": 0 }, + { "item": "unicopia:cloudsdale_tomato", "data": 0 } + ], + "F": [ + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:hay_burger", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/hay_burger_toxic.json b/src/main/resources/assets/unicopia/recipes/hay_burger_toxic.json new file mode 100644 index 00000000..1cbdf58d --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/hay_burger_toxic.json @@ -0,0 +1,38 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "AAA", + "FTF", + "AAA" + ], + "key": { + "A": [ + { + "item": "unicopia:alfalfa_leaves" + } + ], + "T": [ + { "item": "unicopia:tomato", "data": 0 }, + { "item": "unicopia:tomato", "data": 1 }, + { "item": "unicopia:cloudsdale_tomato", "data": 0 }, + { "item": "unicopia:cloudsdale_tomato", "data": 1 } + ], + "F": [ + { "item": "minecraft:red_flower", "data": 0 }, + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:red_flower", "data": 8 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:hay_burger", + "data": 2, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/hay_fries.json b/src/main/resources/assets/unicopia/recipes/hay_fries.json new file mode 100644 index 00000000..60de7f51 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/hay_fries.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " AA", + "AAA", + "AA " + ], + "key": { + "A": [ + { + "item": "unicopia:alfalfa_leaves" + } + ] + }, + "result": { + "item": "unicopia:hay_fries", + "data": 0, + "count": 7 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/juice.json b/src/main/resources/assets/unicopia/recipes/juice.json new file mode 100644 index 00000000..15890244 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/juice.json @@ -0,0 +1,39 @@ +{ + "type": "minecraft:crafting_shaped", + + "pattern": [ + "AAA", + "AAA", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:glass_bottle" + } + ], + "A": [ + { + "item": "minecraft:apple", + "data": 0 + }, + { + "item": "minecraft:apple", + "data": 1 + }, + { + "item": "minecraft:apple", + "data": 2 + }, + { + "item": "minecraft:apple", + "data": 3 + } + ] + }, + "result": { + "item": "unicopia:juice", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/mug.json b/src/main/resources/assets/unicopia/recipes/mug.json new file mode 100644 index 00000000..381b4038 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/mug.json @@ -0,0 +1,25 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "# #", + "* *", + " # " + ], + "key": { + "#": [ + { + "item": "minecraft:stick" + } + ], + "*": [ + { + "item": "minecraft:iron_nugget" + } + ] + }, + "result": { + "item": "unicopia:mug", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/salad_fair.json b/src/main/resources/assets/unicopia/recipes/salad_fair.json new file mode 100644 index 00000000..c974e367 --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/salad_fair.json @@ -0,0 +1,34 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "FFF", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bowl" + } + ], + "F": [ + { "item": "minecraft:double_plant", "data": 0 }, + { "item": "minecraft:double_plant", "data": 1 }, + { "item": "minecraft:double_plant", "data": 5 }, + { "item": "unicopia:alfalfa_leaves" }, + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:salad", + "data": 2, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/salad_lethal.json b/src/main/resources/assets/unicopia/recipes/salad_lethal.json new file mode 100644 index 00000000..8b6f687c --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/salad_lethal.json @@ -0,0 +1,41 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "FFF", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bowl" + } + ], + "F": [ + { "item": "minecraft:golden_apple", "data": 0 }, + { "item": "unicopia:zap_apple", "data": 0 }, + { "item": "unicopia:corrupted_gem" }, + { "item": "minecraft:double_plant", "data": 0 }, + { "item": "minecraft:double_plant", "data": 1 }, + { "item": "minecraft:double_plant", "data": 3 }, + { "item": "minecraft:double_plant", "data": 4 }, + { "item": "minecraft:double_plant", "data": 5 }, + { "item": "unicopia:alfalfa_leaves" }, + { "item": "minecraft:red_flower", "data": 0 }, + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:red_flower", "data": 8 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:salad", + "data": 3, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/salad_safe.json b/src/main/resources/assets/unicopia/recipes/salad_safe.json new file mode 100644 index 00000000..40e716bd --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/salad_safe.json @@ -0,0 +1,29 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "FFF", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bowl" + } + ], + "F": [ + { "item": "minecraft:double_plant", "data": 0 }, + { "item": "unicopia:alfalfa_leaves" }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:salad", + "data": 0, + "count": 1 + } +} diff --git a/src/main/resources/assets/unicopia/recipes/salad_toxic.json b/src/main/resources/assets/unicopia/recipes/salad_toxic.json new file mode 100644 index 00000000..c17fb03a --- /dev/null +++ b/src/main/resources/assets/unicopia/recipes/salad_toxic.json @@ -0,0 +1,39 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "FFF", + "FFF", + " B " + ], + "key": { + "B": [ + { + "item": "minecraft:bowl" + } + ], + "F": [ + { "item": "minecraft:double_plant", "data": 0 }, + { "item": "minecraft:double_plant", "data": 1 }, + { "item": "minecraft:double_plant", "data": 3 }, + { "item": "minecraft:double_plant", "data": 4 }, + { "item": "minecraft:double_plant", "data": 5 }, + { "item": "unicopia:alfalfa_leaves" }, + { "item": "unicopia:wheat_worms" }, + { "item": "minecraft:red_flower", "data": 0 }, + { "item": "minecraft:red_flower", "data": 1 }, + { "item": "minecraft:red_flower", "data": 2 }, + { "item": "minecraft:red_flower", "data": 3 }, + { "item": "minecraft:red_flower", "data": 4 }, + { "item": "minecraft:red_flower", "data": 5 }, + { "item": "minecraft:red_flower", "data": 6 }, + { "item": "minecraft:red_flower", "data": 7 }, + { "item": "minecraft:red_flower", "data": 8 }, + { "item": "minecraft:yellow_flower", "data": 0 } + ] + }, + "result": { + "item": "unicopia:salad", + "data": 3, + "count": 1 + } +}