-
Notifications
You must be signed in to change notification settings - Fork 9
AStages Recipe Restriction
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.
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 |
// 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:
-
Restrictions
- Crop
- Dimension
- Effect
- Enchant
- Item (Old)
- Loot
- Mob
- Ore
- Pet
- Recipe
- Region
- Screen
- Structure -
Addons
- Curios API
- Pufferfish Skill's -
Simple Restrictions (via commands)
Brand new and intuitive way to add restriction! -
Developers
- Plugin
- Restrictions
- Simple Restrictions
- Stage System
- Utils -
Q&A
A place where questions are on the agenda! -
Changelogs
Changelogs since 0.6.0 version! -
What's Happened? (FLOP!)
New code formatting is coming!