Skip to content

Move Shields recipes to "Equipment" tab in crafting table #59

Description

@Kavaltheone

Hello.
I don't know how to do pull requests, so please add a line
json.addProperty("category", "equipment");
at 81 line in /java/com/github/crimsondawn45/basicshields/util/ModRecipe.java
Without this it defines "Misc" category by default and it looks strange when vanilla shield is in Equipment and other shileds are in other tab with tables, food, etc.
It will look like

public static JsonObject createShieldRecipe(ArrayList<TagKey<Item>> tags, Identifier output) {
        //Creating a new json object, where we will store our recipe.
        JsonObject json = new JsonObject();
        //The "type" of the recipe we are creating. In this case, a shaped recipe.
        json.addProperty("type", "minecraft:crafting_shaped");
        //This creates:
        //"type": "minecraft:crafting_shaped"
        json.addProperty("category", "equipment");
        //This creates:
        //"category": "equipment"
       ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions