Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new player variable components #1483

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Add new player variable components #1483

merged 2 commits into from
Jan 20, 2025

Conversation

Pablete1234
Copy link
Member

Adds a few more player-related variable components to play around with, these will have default IDs in proto 1.5+:

player.health, player.max_health pretty self-descriptive, can get or set the player's health or max health
player.food, player.saturation also pretty self descriptive, can get or set players' food, and saturation (which acts as a 2nd food-bar that isn't seen)

player.experience Allows read/write of the total experience points of the player
player.exp_progress can get or set the % progress within the current players' level, 0.0 to 1.0
player.level can get or set the players' level

@Pablete1234 Pablete1234 merged commit 3d1df1f into dev Jan 20, 2025
2 checks passed
@Pablete1234 Pablete1234 deleted the new-player-components branch January 20, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants