Skip to content

Releases: sandstone-mc/sandstone

0.14.0-alpha.6

06 Dec 13:45
35291b3
Compare
Choose a tag to compare
0.14.0-alpha.6 Pre-release
Pre-release

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 and runOnLoad options, identical to the corresponding MCFunction options.
  • Tags can now use the append and the prepend conflict strategy.
  • rel/relative and loc/local will now respectively output ~ ~ ~ and ^ ^ ^ when called with no arguments.

Breaking changes

  • Deprecated MCFunction's runEach and runEachTick options in favor of runEvery and runEveryTick.
  • 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

13 Sep 20:31
4d0957f
Compare
Choose a tag to compare
Pre-release

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

02 Sep 07:17
95635e1
Compare
Choose a tag to compare
Pre-release

Changelog:
Breaking changes:

  • Renamed Score.lessThan to Score.lowerThan, and Score.lessThanOrEqual to Score.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

10 Aug 22:45
5ace39f
Compare
Choose a tag to compare

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

02 Aug 19:48
4161b83
Compare
Choose a tag to compare

Fixed execute.unless... giving incorrect types.

Fixed a bug

02 Aug 19:28
b24ae5d
Compare
Choose a tag to compare

Fixed a single bug:

  • Fixed execute.if.data... throwing errors.

Some bug fixes!

02 Aug 19:17
e30ec07
Compare
Choose a tag to compare

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 a run to the next command

Towards 1.17!

22 Jun 17:28
0658dd2
Compare
Choose a tag to compare

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 and block properties have been renamed to items and blocks - 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

13 Jun 15:48
2d5e3e9
Compare
Choose a tag to compare

This release fixes several bugs.

Changelog

Bug fixes

Additions

  • NBT can now take template arguments. For example, this syntax is now valid:
NBT`${1}b`

Transitioning to 1.17

11 Jun 09:24
593a027
Compare
Choose a tag to compare

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

Additions

  • Added a new syntax for ranges. Now, [, 8] will compile to ..8, and [5, ] will compile to 5...

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!