From fd62b16747511f148cbcbab15f8c5f7f6f59a3ff Mon Sep 17 00:00:00 2001 From: TWME <65117253+TWME-TW@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:24:28 +0800 Subject: [PATCH] Add Beetroot --- .../java/cm/ptks/craftflowers/flower/FlowerRegistry.java | 7 +++++++ src/main/java/cm/ptks/craftflowers/languages/Messages.java | 1 + src/main/resources/lang/en_us.yml | 7 +++++++ src/main/resources/lang/zh_tw.yml | 7 +++++++ 4 files changed, 22 insertions(+) diff --git a/src/main/java/cm/ptks/craftflowers/flower/FlowerRegistry.java b/src/main/java/cm/ptks/craftflowers/flower/FlowerRegistry.java index e7ef0f7..127bcfc 100644 --- a/src/main/java/cm/ptks/craftflowers/flower/FlowerRegistry.java +++ b/src/main/java/cm/ptks/craftflowers/flower/FlowerRegistry.java @@ -272,6 +272,13 @@ public class FlowerRegistry { new AgingFlower(Material.CARROT, Messages.FLOWER.CARROT, Material.CARROTS, 7) ))); + registerFlower(new FlowerGroup(Material.BEETROOT,Messages.FLOWER.BEETROOT, Arrays.asList( + new AgingFlower(Material.BEETROOT,Messages.FLOWER.BEETROOT,Material.BEETROOTS,0), + new AgingFlower(Material.BEETROOT,Messages.FLOWER.BEETROOT,Material.BEETROOTS,1), + new AgingFlower(Material.BEETROOT,Messages.FLOWER.BEETROOT,Material.BEETROOTS,2), + new AgingFlower(Material.BEETROOT,Messages.FLOWER.BEETROOT,Material.BEETROOTS,3) + ))); + registerFlower(new Flower(Material.PUMPKIN_SEEDS,Messages.FLOWER.ATTACHED_PUMPKIN_STEM,Material.ATTACHED_PUMPKIN_STEM)); registerFlower(new FlowerGroup(Material.PUMPKIN_SEEDS,Messages.FLOWER.PUMPKIN_STEM,Arrays.asList( diff --git a/src/main/java/cm/ptks/craftflowers/languages/Messages.java b/src/main/java/cm/ptks/craftflowers/languages/Messages.java index 6cc895e..8cbcc8d 100644 --- a/src/main/java/cm/ptks/craftflowers/languages/Messages.java +++ b/src/main/java/cm/ptks/craftflowers/languages/Messages.java @@ -188,6 +188,7 @@ public final static class FLOWER { public static final String WHEAT = "FLOWER.WHEAT"; public static final String POTATO = "FLOWER.POTATO"; public static final String CARROT = "FLOWER.CARROT"; + public static final String BEETROOT = "FLOWER.BEETROOT"; public static final String ATTACHED_PUMPKIN_STEM = "FLOWER.ATTACHED_PUMPKIN_STEM"; public static final String PUMPKIN_STEM = "FLOWER.PUMPKIN_STEM"; public static final String ATTACHED_MELON_STEM = "FLOWER.ATTACHED_MELON_STEM"; diff --git a/src/main/resources/lang/en_us.yml b/src/main/resources/lang/en_us.yml index 60e9c4f..5101672 100644 --- a/src/main/resources/lang/en_us.yml +++ b/src/main/resources/lang/en_us.yml @@ -204,6 +204,13 @@ FLOWER: CARROT_6: "§2Carrot" CARROT_7: "§2Carrot" + BEETROOT: "§2Beetroot" + BEETROOT_AGE: + BEETROOT_0: "§2Beetroot" + BEETROOT_1: "§2Beetroot" + BEETROOT_2: "§2Beetroot" + BEETROOT_3: "§2Beetroot" + ATTACHED_PUMPKIN_STEM: "§2Attached Pumpkin Stem" PUMPKIN_STEM: "§2Pumpkin Stem" diff --git a/src/main/resources/lang/zh_tw.yml b/src/main/resources/lang/zh_tw.yml index 7e02554..6a86238 100644 --- a/src/main/resources/lang/zh_tw.yml +++ b/src/main/resources/lang/zh_tw.yml @@ -207,6 +207,13 @@ FLOWER: CARROT_6: "§2胡蘿蔔" CARROT_7: "§2胡蘿蔔" + BEETROOT: "§2Beetroot" + BEETROOT_AGE: + BEETROOT_0: "§2Beetroot" + BEETROOT_1: "§2Beetroot" + BEETROOT_2: "§2Beetroot" + BEETROOT_3: "§2Beetroot" + ATTACHED_PUMPKIN_STEM: "§2Attached Pumpkin Stem" PUMPKIN_STEM: "§2Pumpkin Stem"