Browse Source

Added axes and furnaces as workstations

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 5 năm trước cách đây
mục cha
commit
c83d7cc5e4
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java

+ 9 - 1
src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java

@@ -77,6 +77,7 @@ import net.minecraft.item.*;
 import net.minecraft.potion.PotionUtil;
 import net.minecraft.recipe.*;
 import net.minecraft.tag.BlockTags;
+import net.minecraft.tag.Tag;
 import net.minecraft.text.LiteralText;
 import net.minecraft.util.Identifier;
 import net.minecraft.util.math.MathHelper;
@@ -99,7 +100,7 @@ public class DefaultPlugin implements REIPluginV0 {
     public static final Identifier PLUGIN = new Identifier("roughlyenoughitems", "default_plugin");
     public static final Identifier COMPOSTING = new Identifier("minecraft", "plugins/composting");
     public static final Identifier FUEL = new Identifier("minecraft", "plugins/fuel");
-    public static final Identifier BEACON = new Identifier("roughlyenoughitems", "plugins/beacon");
+    public static final Identifier BEACON = new Identifier("minecraft", "plugins/beacon");
     public static final Identifier INFO = new Identifier("roughlyenoughitems", "plugins/information");
     private static final Identifier DISPLAY_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/display.png");
     private static final Identifier DISPLAY_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/display_dark.png");
@@ -376,10 +377,17 @@ public class DefaultPlugin implements REIPluginV0 {
         recipeHelper.registerWorkingStations(SMOKING, EntryStack.create(Items.SMOKER));
         recipeHelper.registerWorkingStations(BLASTING, EntryStack.create(Items.BLAST_FURNACE));
         recipeHelper.registerWorkingStations(CAMPFIRE, EntryStack.create(Items.CAMPFIRE));
+        recipeHelper.registerWorkingStations(FUEL, EntryStack.create(Items.FURNACE), EntryStack.create(Items.SMOKER), EntryStack.create(Items.BLAST_FURNACE));
         recipeHelper.registerWorkingStations(BREWING, EntryStack.create(Items.BREWING_STAND));
         recipeHelper.registerWorkingStations(STONE_CUTTING, EntryStack.create(Items.STONECUTTER));
         recipeHelper.registerWorkingStations(COMPOSTING, EntryStack.create(Items.COMPOSTER));
         recipeHelper.registerWorkingStations(BEACON, EntryStack.create(Items.BEACON));
+        Tag<Item> axes = MinecraftClient.getInstance().getNetworkHandler().getTagManager().items().get(new Identifier("fabric", "axes"));
+        if (axes != null) {
+            for (Item item : axes.values()) {
+                recipeHelper.registerWorkingStations(STRIPPING, EntryStack.create(item));
+            }
+        }
         recipeHelper.removeAutoCraftButton(FUEL);
         recipeHelper.removeAutoCraftButton(COMPOSTING);
         recipeHelper.removeAutoCraftButton(BEACON);