Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Basic Experience API Enhancement

Open NotSoDelayed opened this issue 9 months ago • 3 comments

Description

This PR provides light enhancements to Skript's Experience API with:

  • Allowing Experience object into ExprTotalExperience (add 10 xp to player's total xp)
  • Add changers to Experience objects (set {-xp} to 10 xp, add 10 xp to {-xp}; results 20 xp) and top it off with some dusting in Experience class.

Target Minecraft Versions: any Requirements: none Related Issues: #6649

NotSoDelayed avatar May 08 '24 08:05 NotSoDelayed

Tests will be added.

NotSoDelayed avatar May 08 '24 11:05 NotSoDelayed

Some tests with an entity's xp would be nice, if we don't already have any.

I only recalled Player have XP. How does one do it with non-player entities?

NotSoDelayed avatar May 20 '24 11:05 NotSoDelayed

Some tests with an entity's xp would be nice, if we don't already have any.

I only recalled Player have XP. How does one do it with non-player entities?

ExperienceOrb, no?

sovdeeth avatar May 29 '24 08:05 sovdeeth

Closing due to stale progress

NotSoDelayed avatar Oct 13 '24 04:10 NotSoDelayed