Skip to content

AStages Pet Restriction

Kessy edited this page Jan 25, 2025 · 1 revision

AStages Pet Restriction

Overview

Pet rRstriction limits the ability to tame, breed, or interact with specific pets based on progression stages. This adds a layer of customization to companion mechanics, enhancing progression-based gameplay.


Methods

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

Examples

Basic Usage

// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForPet("astages/pet", "stage_pet", "minecraft:chicken")

Properties

Note

You don't need to set all properties for each restriction: changes should be done only when you want to modify default values!

// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForPet("astages/pet", "stage_pet", "minecraft:chicken")
    .setTamable(false)
    .setBreedable(false)
    .setMountable(false)
    .setTameMessage(entity => Component.literal("Custom message for entity ").append(entity).withStyle("green"))
    .setBreedMessage(entity => ...)
    .setMountMessage(entity => ...)

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
    - FTB Quests
    - 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