Releases: sandstone-mc/sandstone
0.14.0-alpha.6
This alpha fixes different bugs and adds some new features.
Bugs fixed
- Fixed Custom Resources throwing an error on save.
- Fixed Tags not allowing other Tags of the same type as values.
New features
- Function Tags now have
runEachTick
andrunOnLoad
options, identical to the corresponding MCFunction options. - Tags can now use the
append
and theprepend
conflict strategy. rel
/relative
andloc
/local
will now respectively output~ ~ ~
and^ ^ ^
when called with no arguments.
Breaking changes
- Deprecated MCFunction's
runEach
andrunEachTick
options in favor ofrunEvery
andrunEveryTick
. - Moved Tag's
replace
argument inside Tag's options:
// Before
Tag('functions', 'tag_name', true/false, {...})
// After
Tag('functions', 'tag_name', { replace: true/false })
Added namespace to Custom Resources
This update adds namespace
to Custom Resources:
const MyResource = CustomResource('MyResource', {
onSave: ({ namespace }) => {
// Do something...
}
})
MyResource('namespace:name', { ... })
0.14.0-alpha.4 | Fixed different things
Changelog:
Breaking changes:
- Renamed
Score.lessThan
toScore.lowerThan
, andScore.lessThanOrEqual
toScore.lowerThanOrEqual
Additions:
- Added the
CustomResource
API, enabling the creation of custom type of resources, with custom saving strategies
Bug fixes:
- Fixed
comment
not working #101 - Fixed several types & import problems
Fixed a few bugs & added a small feature
This release fixes a few bugs with flow statements:
- Fixed some commands (like
teleport
) failing when followed by a flow statement - Fixed
_.execute...run...
not working
It also adds a new small feature: this
is now usable inside MCFunctions. You must use a normal function.
Example:
MCFunction('test', function () {
this.schedule(1)
this()
this.schedule.clear()
})
Fixed one bug
Fixed execute.unless...
giving incorrect types.
Fixed a bug
Fixed a single bug:
- Fixed
execute.if.data...
throwing errors.
Some bug fixes!
This release fixes different bugs:
- Fixed tons of
any
appearing randomly in Sandstone imported objects - Fixed scheduling a function through
schedule.function(myFunc)
prepending the command with a newline - Fixed
say(...)
allowing\n
- Removed warning when running build script
- Fixed empty
_.if/elseIf/else/while
incorrectly appending arun
to the next command
Towards 1.17!
This release adds a lot of feature towards 1.17 compatibility. Thanks to @nphhpn for all his hard work - he wrote 95% of this release.
1.17 features
- Updated attributes, biomes, blocks, enchantments and entities lists to 1.17 - See #90 by @nphhpn
- Predicate's
item
andblock
properties have been renamed toitems
andblocks
- See #90 by @nphhpn
New features
- Added shorter operators to Score: for example,
myScore['<='](otherScore)
is now valid - by See #92 @nphhpn - Allow usage of item tags in the
/clear
command - See #93 by @nphhpn - NBT can now take template arguments. The following syntax is now valid
NBT`${1}b`
Bug fixes
- Fixed some types being evaluated as
any
- See #91 by @nphhpn - Fixed item tags incorrectly having a
#
when used in predicates - See #93 by @nphhpn - Improved the code base stability with several different fixes
To update your project, please run npx sand update
.
Fixed several bugs
This release fixes several bugs.
Changelog
Bug fixes
- Fixed dots being invalids for namespaces names - see #87 by @istanbul-not-constantinople
- Fixed
data.merge
resulting in invalid NBTs
Additions
NBT
can now take template arguments. For example, this syntax is now valid:
NBT`${1}b`
Transitioning to 1.17
This release marks the start of Sandstone's transition to 1.17. In the future, once Sandstone will be released, this kind of releases will be available as alphas or betas, as it is incomplete. For the moment, normal releases are acceptable.
Changelog:
1.17
- Added new
/item
command - See #84 by @TheEternalShine - Removed old
/replaceitem
command - See #84 by @TheEternalShine - Added 2 new gamerules - See #84 by @TheEternalShine
Additions
- Added a new syntax for ranges. Now,
[, 8]
will compile to..8
, and[5, ]
will compile to5..
.
Bug fixes
- Fixed incorrect typing for the
ore_drops
formula - See #86 by @jimbuck - Fixed Selectors not working in specific situations
- Fixed
NBT.not
producing invalid output
Thanks to everyone who participated in this release!