Releases: sandstone-mc/sandstone
Added if/else inlining, and some options
Added a 'sandstone/types' endpoint
This endpoint allows libraries to create custom and "sandstone-like" components, with autocompletion, inferring etc...
Fixed a bunch of Advancement properties types & descriptions
Merge pull request #53 from TheMrZZ/develop Fixed a bunch of Advancement properties types & descriptions
Added capability for MCFunctions to be used directly in any resource.
Added capability for MCFunctions to be used directly in any resource JSON declaration.
For example, this is now valid:
const rewardDiamonds = MCFunction('reward_diamonds', () => {
give('@s', 'minecraft:diamond', 2)
})
Advancement('bred_two_cows', {
criteria: {
// Doesn't matter
},
rewards: {
function: rewardDiamonds
}
})
Fixed bugs with async MCFunctions, and internal enhancements
MCFunctions can now call vanilla async JS functions, without any bug.
A bunch of internals improvements were made to ensure code quality going further.
Added scripts support
Added support for beforeAll, beforeSave and afterAll scripts.
Quality of life improvements
Changelog:
- Execute
runOne
is deprecated - userun
instead. - Sandstone is now config-file-independant. Configs are passed through environment variables.
- Fixed a lot of bugs
Hotfix: fixed constants
v0.7.1 Bumped patch version number
Added delayed statements
This release adds the ability to await a sleep
function, which internally uses /schedule
to allow MCFunctions to run delayed commands.
The syntax is await sleep(10) / await sleep('1s')
.
Since this effect needs to work flawlessly in every Sandstone abstraction, this release also adds:
- Asynchronous while & doWhile statements
- Asynchronous if/else if/else statements
Added support for sandstone-cli
This release changes a lot of things to allow support for sandstone-cli.