-
Notifications
You must be signed in to change notification settings - Fork 9
AStages Pet Restriction
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.
| 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 |
// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForPet("astages/pet", "stage_pet", "minecraft:chicken")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:
-
Restrictions
- Crop
- Dimension
- Effect
- Enchant
- Item (Old)
- Loot
- Mob
- Ore
- Pet
- Recipe
- Region
- Screen
- Structure -
Addons
- Curios API
- FTB Quests
- 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!