### Example Items Category Config Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md A complete YAML configuration for an items category, showing all sections: type, icon, position, items, and GUI settings. Place this file in the `/categories/` folder with a filename matching the category ID. ```yaml type: "items" icon: item: diamond_sword name:"&cCombat" lore: - "" - "&7Weapons, armor, arrows, and combat utilities." - "" - "&bLeft Click &fto browse recipes" - "" position: column: 6 row: 3 page: 1 items: - item: "#minecraft:swords" display-no-perm: false - item: "bow" display-no-perm: false - item: "shield" display-no-perm: false gui: custom-slots: [] title: "&8Combat Recipes | Page &6%page%&8/&6%max_page%" mask: items: - black_stained_glass_pane pattern: - "111111111" - "1iiiiiii1" - "1iiiiiii1" - "1iiiiiii1" - "1iiiiiii1" - "111111111" buttons: back: row: 6 column: 5 item: barrier name:"&cBack" lore: [] next-page: item: active: orange_stained_glass_pane name:"&aNext page" inactive: black_stained_glass_pane name:"" lore: active: [] inactive: [] row: 6 column: 6 prev-page: item: active: orange_stained_glass_pane name:"&aPrevious page" inactive: black_stained_glass_pane name:"" lore: active: [] inactive: [] row: 6 column: 4 slot: lore: - "" - "&bLeft Click&f to see the recipe" - "" ``` -------------------------------- ### /ecocrafting open-trade Command Examples Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Shows how to use the /ecocrafting open-trade command to open a trade GUI without a villager. Pass a comma-separated list of recipe IDs to include multiple trades in one GUI. Trades appear in the order listed. ```text /ecocrafting open-trade emerald_book Notch /ecocrafting open-trade emerald_book,diamond_deal,xp_bottle Notch ``` -------------------------------- ### Common Recipe Configuration YAML Example Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md A YAML configuration block showing the common fields for every EcoCrafting recipe type. Includes optional fields for category, effects, conditions, price, craft limits, permissions, and locking. Note that price scales with craft amount, and unlock conditions are checked periodically. ```yaml enabled: true # category: main # optional - category ID to assign this recipe to in the GUI type: crafting_table # workstation type (see table above) output: netherite_sword name:"&6Example Sword" # eco item lookup format lore: [] # optional extra lore on the output item give-result-item: true # Defaults to true when omitted. false = no item is given. Effects fire on every craft either way. # effects: # - id: give_xp # args: # amount: 100 # conditions: [] # price: # optional - requires the player to pay a price to craft this recipe # value: "100" # expression, supports placeholders # type: "coins" # price factory name (coins, xpl, etc.), or an item name to charge an item price instead # display: "&a%value% coins" # optional - falls back to lang.yml's price-display section for this type if omitted # craft-limits: # Optional. Caps how many times this recipe can be crafted. # player: 5 # Crafts each player can make. -1 is unlimited. # global: 100 # Crafts the whole server can make. -1 is unlimited. permission: "" # optional - see Permissions section below locked-by-default: false # hide recipe until unlocked per-player show-when-locked: false # if true, show recipe in GUI even when locked locked-lore: - "&cUnlock this recipe to craft it." visibility-conditions: [] # libreforge - hide from GUI if not met crafting-conditions: [] # libreforge - block crafting if not met unlock-conditions: [] # libreforge - unlock automatically when met. Empty means unlock only by effect or command. ``` -------------------------------- ### Brewing Stand Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a brewing stand recipe with base item in bottle slots, ingredient in the top slot, and brew time in ticks (20 = 1 second). Note: shift-click only sends items that vanilla considers valid for those slots; custom items must be clicked manually. ```yaml type: brewing_stand base: glass_bottle # item in the bottle slots (can be an existing potion) ingredient: nether_wart # item in the ingredient slot (top) brew-time: 20 # ticks to brew (20 = 1 second) ``` -------------------------------- ### Furnace Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a furnace recipe with input item, cook time in ticks (200 = 10 seconds, vanilla default), and experience orbs dropped when the result is taken. ```yaml type: furnace input: raw_iron # item placed in the smelting slot cook-time: 200 # ticks (200 = 10 seconds, vanilla default) experience: 0.7 # XP orbs dropped when result is taken ``` -------------------------------- ### GUI Section Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md Configures the category's GUI: title, mask pattern (using `i` for item slots and numbers for glass panes), and buttons (back, next-page, prev-page, slot). ```yaml gui: title: "&8My Category | Page &6%page%&8/&6%max_page%" mask: items: - black_stained_glass_pane # Material list (indexed 1, 2, 3...) pattern: - "111111111" # 9 chars per row, number = material index, i = item slot - "1iiiiiii1" - "1iiiiiii1" - "1iiiiiii1" - "1iiiiiii1" - "111111111" buttons: back: row: 6 column: 5 item: barrier name:"&cBack" lore: [] next-page: item: active: orange_stained_glass_pane name:"&aNext page" inactive: black_stained_glass_pane name:"" row: 6 column: 6 prev-page: item: active: orange_stained_glass_pane name:"&aPrevious page" inactive: black_stained_glass_pane name:"" row: 6 column: 4 slot: lore: - "" - "&bLeft Click&f to see the recipe" - "" custom-slots: [] ``` -------------------------------- ### Crafting Table Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a 3x3 crafting table recipe. The recipe list is read left-to-right, top-to-bottom, with empty slots as empty strings. Options include shapeless for any slot order, symmetry for auto-registering rotations/mirrors, and support-crafter to also fire in the vanilla Crafter block. ```yaml type: crafting_table # 3x3 grid, left-to-right top-to-bottom. Empty slots = "". recipe: - diamond - diamond - diamond - diamond - netherite_ingot - diamond - diamond - diamond - diamond shapeless: false # true = any slot order symmetry: false # true = register all rotations/mirrors automatically support-crafter: false # true = also fires in the vanilla Crafter block ``` -------------------------------- ### Icon Section Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md Configures the icon displayed in the category browser GUI. Uses the eco item lookup format. ```yaml icon: item: diamond_sword name:"&cCombat" # Icon shown in the category browser GUI lore: - "&7Description shown to players" ``` -------------------------------- ### Smithing Table Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a smithing table recipe with template, base, and addition items. ```yaml type: smithing_table template: netherite_upgrade_smithing_template base: diamond_sword addition: netherite_ingot ``` -------------------------------- ### Smoker Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a smoker recipe. The smoker is 2x faster for food, with vanilla cook time of 100 ticks. ```yaml type: smoker input: potato cook-time: 100 # ticks (smoker is 2× faster for food) experience: 0.35 ``` -------------------------------- ### craft-limits YAML configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md YAML configuration for setting per-player and global craft limits. -1 is unlimited (default), 0 disables crafting. Each craft counts once; shift-clicking crafts only what is left. Villager trades with limits must be made one at a time. Limits reset via /ecocrafting resetlimits. ```yaml craft-limits: player: 5 # Crafts each player can make. -1 is unlimited. global: 100 # Crafts the whole server can make. -1 is unlimited. ``` -------------------------------- ### Default config.yml for EcoCrafting Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/plugin-config.md The complete default configuration file for the EcoCrafting plugin. It includes settings for debug mode, storage, unlock conditions, item flags, workstation markers, owner mode, brewing stand behavior, trade GUI, category browser GUI, and EcoShop integration. Edit this file and run /ecocrafting reload to apply changes. ```yaml debug: false # Force local storage even when eco uses a database; disables cross-server sync use-local-storage: false unlock-conditions: # When true, recipe unlock-conditions are re-checked about once a second, so a recipe unlocks as soon as they are met. # Set to false if this causes lag. Recipes are then checked on join, when a workstation or recipe GUI opens, and when crafting. live: true # Exclude rotated/mirrored duplicates of shaped crafting recipes deduplicate-symmetrical: false # When true, items with no recipe are still shown in categories show-items-without-recipes: false # When true, recipe lookup matches full item (name/lore/meta), not just base material strict-item-matching: true # ItemFlags applied to every display item in EcoCrafting GUIs # Valid values: HIDE_ATTRIBUTES, HIDE_ENCHANTS, HIDE_UNBREAKABLE, HIDE_DESTROYS, # HIDE_PLACED_ON, HIDE_POTION_EFFECTS, HIDE_DYE, HIDE_ARMOR_TRIM item-flags: [] fuel-slot: # Item shown in the fuel slot of furnace/smoker/blast furnace GUIs (display only) item: charcoal name:"&7Fuel" lore: [] # Workstation markers shown on the right side of the recipe GUI. # Pattern marker keys: # i = ingredient slot o = output slot u = fuel slot (display) # C = crafting table F = furnace B = blast furnace # S = smoker P = campfire M = smithing table # T = stonecutter W = brewing stand G = grindstone # A = anvil V = villager workstation-markers: crafting_table: active: crafting_table name:"&aCrafting Table" glint inactive: crafting_table name:"&7Crafting Table" not-applicable: gray_dye name:"&8%workstation%" lore: active: [] inactive: - "&bClick to view %workstation% recipe" not-applicable: - "&7No %workstation% recipe available" # ... (all workstation types follow the same structure) # How to identify the player who triggered a block-based recipe effect # placed: the player who placed/first opened the block # nearest: the nearest online player within owner-nearest-radius blocks owner-mode: placed owner-nearest-radius: 32 # When true, effect recipes in brewing stands fire once per matched base slot brewing-stand: effect-recipes-per-slot: true # Scan all loaded villagers on reload to remove PDC keys for disabled recipes villager-scan-on-reload: true # Title of the trade GUI opened by /ecocrafting open-trade trade-gui: title: "&8Trades" #*/ Category Browser GUI /*# category-browser-gui: custom-slots: [] title: "&8EcoCrafting | Page &6%page%&8/&6%max_page%" mask: items: - black_stained_glass_pane pattern: - "111111111" - "100000001" - "100000001" - "100000001" - "111111111" buttons: next-page: item: active: orange_stained_glass_pane name:"&aNext page" inactive: black_stained_glass_pane name:"" row: 5 column: 6 prev-page: item: active: orange_stained_glass_pane name:"&aPrevious page" inactive: black_stained_glass_pane name:"" row: 5 column: 4 close: item: barrier name:"&cClose" lore: [] row: 5 column: 5 #*/ EcoShop Integration /*# shop-integration: enabled: true # Enable EcoShop buy-missing-materials feature show-prices: true # Show shop prices in QuickCraft lore for missing materials auto-buy-missing-materials: false require-shift-click: true ``` -------------------------------- ### Blast Furnace Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a blast furnace recipe. The blast furnace is 2x faster than a furnace, with vanilla cook time of 100 ticks. ```yaml type: blast_furnace input: raw_gold cook-time: 100 # ticks (blast furnace is 2× faster; vanilla = 100) experience: 1.0 ``` -------------------------------- ### Campfire Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a campfire recipe. Campfire is slow, with vanilla cook time of 600 ticks. ```yaml type: campfire input: rabbit cook-time: 600 # ticks (campfire is slow; vanilla = 600) experience: 0.35 ``` -------------------------------- ### Anvil Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines an anvil recipe with base (left slot, required), material (right slot, optional), optional result-name to rename the result, and repair-cost in levels shown and consumed. ```yaml type: anvil base: iron_sword # item in the left slot (required) material: diamond # item in the right slot (optional - omit for rename-only) result-name: "&bDiamond-Edged Sword" # optional - renames the result repair-cost: 3 # levels shown and consumed ``` -------------------------------- ### Grindstone Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a grindstone recipe with item1 (left slot, required) and item2 (right slot, optional). Results are delivered directly to the player's inventory, dropping at their feet if full, instead of onto the cursor. ```yaml type: grindstone item1: enchanted_book # left slot (required) item2: enchanted_book # right slot (optional - omit for single-item recipes) ``` -------------------------------- ### Items Section Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md Defines the items that appear in an `items` type category. Supports exact items, item tags (prefixed with `#`), and custom eco items. The `display-no-perm` option controls visibility without permission, and `no-perm-item` provides an alternative display. `pull-vanilla-recipes` is an optional top-level setting. ```yaml items: - item: "diamond_sword" # Exact item display-no-perm: false # If true, show item in GUI even if player lacks recipe permission - item: "#minecraft:swords" # Item tag - expands to all matching items display-no-perm: false - item: "ecoitems:my_item" # Custom eco item display-no-perm: false no-perm-item: # optional - shown instead of the locked fallback when display-no-perm is true and the player lacks permission item: gray_dye name: "&7???" lore: [] pull-vanilla-recipes: false # optional, top-level - true = auto-add any vanilla-recipe items not already listed above ``` -------------------------------- ### Stonecutter Recipe Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a stonecutter recipe with multiple outputs. Each output appears as a separate option in the UI. The input can specify a count (e.g., 'stone 4') to require and consume multiple items per cut. Outputs can have lore, give-result-item flag, and effects. If give-result-item is false, no item is given but effects still fire on every craft. ```yaml type: stonecutter # `input: stone 4` requires four of the item per cut, and consumes four each time. input: stone # Multiple outputs supported - each appears as a separate option in the UI. outputs: - item: stone_slab lore: [] give-result-item: true - item: stone_stairs lore: - "&7Crafted from stone" give-result-item: true # give-result-item: false on an output means no item is given. Effects fire on every craft either way. - item: stone_brick_wall lore: [] give-result-item: false effects: - id: give_xp args: amount: 25 conditions: [] ``` -------------------------------- ### Position Section Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md Sets the position of the category icon in the category browser GUI: column (1-9), row (1-5), and page. ```yaml position: column: 6 # Column in the category browser GUI (1-9) row: 3 # Row in the category browser GUI (1-5) page: 1 # Page in the category browser GUI ``` -------------------------------- ### Villager Trade YAML Configuration Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-recipe.md Defines a villager trade recipe. Requires 'type: villager' and 'input1'. Optional fields include 'input2', 'profession', 'min-level', 'chance', 'wandering-trader', 'villager-xp', and 'max-uses'. A misspelled profession stops the recipe from loading. ```yaml type: villager input1: emerald # first trade ingredient (required) input2: book # second trade ingredient (optional) profession: FARMER # optional - restrict to this profession; a misspelled one stops the recipe loading min-level: 1 # optional - minimum villager level (1-5; 0 = any) chance: 100 # percentage chance this trade appears on a villager (0-100) wandering-trader: false # true = inject into WanderingTrader instead villager-xp: 0 # XP awarded to the villager on trade completion max-uses: 0 # /ecocrafting open-trade only - uses per GUI (0 = unlimited) ``` -------------------------------- ### Category Type Selection Source: https://github.com/auxilor/ecocrafting/blob/master/ecohub/ecocrafting/how-to-make-a-category.md Shows the two possible values for the `type` field: `items` for a flat list of items (most common) and `categories` for a nested group of sub-categories. ```yaml type: "items" # Flat list of items - most common type # type: "categories" # A group of sub-categories (nested browser) ```