Skip to content

AStages Recipe Restriction

Kessy edited this page Aug 2, 2025 · 3 revisions

AStages Recipe Restriction

Overview

Recipe restrictions controls access to specific crafting recipes based on player progression stages. This allows for customizing gameplay where players unlock recipes as they advance through stages, adding depth and challenge to crafting mechanics.


Methods

Warning

Note that methods below only work for vanilla recipe types (crafting shaped/shapeless; smelting like furnace, blasting and smoking; smithing; campfire cooking), for mod recipes see Recipe Machine Stages by @Sixih.

Method Description Parameters Returns
AStages.addRestrictionForRecipe(id, stage, recipeType, recipeId) Create and add generic recipe restriction. id: arbitrary string used as identifier.
stage: progression stage.
recipeType: recipe type of the current recipe.
recipeId : recipe id to be restricted.
ARecipeRestriction
AStages.addRestrictionForModRecipe(id, stage, modId) Create and add recipe restrictions for whole mods. id: arbitrary string used as identifier.
stage: progression stage.
modId: mod identifier.
ARecipeModRestriction

Examples

Basic Usage

// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForRecipe("astages/recipe1", "stage_recipe", "minecraft:smelting", "minecraft:charcoal")
AStages.addRestrictionForModRecipe('astages/recipe2', 'stage_recipe', 'minecraft')

Documentation:

  1. Home

  2. Stages
    - Usage
    - Utils

  3. Restrictions
    - Crop
    - Dimension
    - Effect
    - Enchant
    - Item (Old)
    - Loot
    - Mob
    - Ore
    - Pet
    - Recipe
    - Region
    - Screen
    - Structure

  4. Addons
    - Curios API
    - Pufferfish Skill's

  5. Simple Restrictions (via commands)
    Brand new and intuitive way to add restriction!

  6. Developers
    - Plugin
    - Restrictions
    - Simple Restrictions
    - Stage System
    - Utils

  7. Q&A
    A place where questions are on the agenda!

  8. Changelogs
    Changelogs since 0.6.0 version!

  9. Version Comparisons

  10. What's Happened? (FLOP!)
    New code formatting is coming!

Clone this wiki locally