LifeCycle
A plugin that adds aging and trait system to Minecraft
⚠️ Disclaimer ⚠️
Plugin is still in beta stage and will possibly break, use it at your own risk!
Features
- Age system and configurable age stages and aging interval/lifespan
- Trait system
- Family system (toggleable) (WIP - Not available yet)
Commands
/lifecycle
(/life
)check [player?]
- Check a player's age and their traits
- Permission:
lifecycle.check.others
(default:False
)lifecycle.check.self
(default:True
)
age [set/subtract/add] [player] [value]
- Edits target player's age
- Permission:
lifecycle.age.[set/subtract/add]
(default:False
)
trait
list
- List all avaiable traits
- Permission:
lifecycle.trait.list
(default:True
)
set [player] [trait] [slot]
- Set a player's trait
- ⚠️
[slot]
: The current implementation will add the inputed trait to the highest avaiable slot in a player's life. For example: A player has 2 traits which are in slot 0 and slot 1 respectively. Attempting to add a trait to slot >=3 will result in the trait being added to slot 2 instead. - Permission:
lifecycle.trait.set
(default:False
)
PlaceholderAPI
%lifecycle_player_age%
%lifecycle_player_trait_[index]%
Example configs
config.yml
lifecycle:
# How often the plugin updates players' ages in ticks
update-interval: 20
# Lower values mean less data loss if server crashed
backup-interval: 3000
# How long it takes for a player to age by 1 year in ticks
age-interval: 6000
# Default lifespan (traits will add/subtract this number)
lifespan: 50
age_stages.yml
age-stages:
- name: Infancy
age: 0
earn_trait: FALSE
effects:
- type: POTION
effect: SLOWNESS
amplifier: 1
- type: POTION
effect: WEAKNESS
amplifier: 1
- type: POTION
effect: MINING_FATIGUE
amplifier: 0
- type: ATTRIBUTE
attribute: GENERIC_MAX_HEALTH
value: -14.0
- type: ATTRIBUTE
attribute: GENERIC_SCALE
value: -0.5
- name: Early Childhood
age: 2
earn_trait: TRUE
effects:
- type: POTION
effect: SLOWNESS
amplifier: 1
- type: POTION
effect: WEAKNESS
amplifier: 0
- type: POTION
effect: MINING_FATIGUE
amplifier: 0
- type: ATTRIBUTE
attribute: GENERIC_MAX_HEALTH
value: -10.0
- type: ATTRIBUTE
attribute: GENERIC_SCALE
value: -0.45
- name: Middle Childhood
age: 6
earn_trait: FALSE
effects:
- type: POTION
effect: SLOWNESS
amplifier: 0
- type: POTION
effect: WEAKNESS
amplifier: 0
- type: POTION
effect: MINING_FATIGUE
amplifier: 0
- type: ATTRIBUTE
attribute: GENERIC_MAX_HEALTH
value: -10.0
- type: ATTRIBUTE
attribute: GENERIC_SCALE
value: -0.4