Skip to content

AStages Effect Restriction

Kessy edited this page Jan 25, 2025 · 2 revisions

AStages Effect Restriction

Overview

Effect Restrictions limits a player’s ability to gain or use specific potion effects or status effects based on their progression stage. This adds an extra layer of control and customization to gameplay mechanics.


Methods

Method Description Parameters Returns
AStages.addRestrictionForEffect(id, stage, effect) Create and add generic effect restriction. id: arbitrary string used as identifier.
stage: progression stage.
effect: effect to be restricted.
AEffectRestriction

Examples

Basic Usage

// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForEffect("astages/effect", "stage_effect", "minecraft:levitation")

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