A bindables library for Skript inspired by kotlin-bindables system.
A Bindable is a struct that can hold a value and provide callbacks to when the value is changed.
- oopsk-1.0-beta2
- Skript-2.14.x
- skript-reflect-2.6.2
With pacskage:
/package install https://github.com/miberss/skript-bindables
More here will be filled out later, but for now you can look at the -examples/ folder to see concrete usages with header descriptions. The folder is prefixed with - so Skript does not load the demos; drop the prefix to run them.
You can use bind_update(bindable, value?) to run the callbacks and update the value to them without explicitly changing the field.
You can also use bind_set_silently(bindable, value) which will set the value of the bindable without running any of the callbacks
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests on the GitHub repository.
skript-bindables is open-source and available under the NON-AI-UNLICENSE