Skip to content

Commit 826996e

Browse files
committed
release(0.5.0): add string module, and documentation for Moxlib Exp
1 parent b7f9db3 commit 826996e

21 files changed

+155
-41
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.0] - 2023-01-21
9+
Moxlib now has a sister project, [Moxlib Exp](https://github.com/moxvallix/moxlib-exp).
10+
It enables experimental features. It has its own [Changelog](https://github.com/moxvallix/moxlib-exp/blob/main/CHANGELOG.md).
11+
12+
### Added
13+
- String module and documentation.
14+
15+
### Changed
16+
- String to Array has been moved to the string module. Make sure to update your packs, as this is a breaking change.
17+
- Version info will now display Moxlib Exp version too, if the library is present.
18+
19+
### Fixed
20+
- The in-game version info hadn't been updated since 0.3.0. Now reports 0.5.0.
21+
822
## [0.4.1] - 2023-01-19
923
This update only adds one function, and fixes a minor bug, thus has been marked as a patch release.
1024

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ data that the function will manipulate. Functions will occasionally ask for othe
3737
Functions, if they output anything, will write to `output`. Optionally, they might also record
3838
their success to a `success` tag, although not all functions implement this.
3939

40+
Some functions and modules are marked as "experimental". These require [Moxlib Exp](https://github.com/moxvallix/moxlib-exp)
41+
to function.
42+
4043
### Modules
4144
#### Helpers
4245
[See documentation...](https://github.com/moxvallix/moxlib/blob/main/docs/helpers.md)
@@ -71,4 +74,14 @@ The Math module provides some helpful math functions.
7174
#### Player
7275
[See documentation...](https://github.com/moxvallix/moxlib/blob/main/docs/player.md)
7376

74-
The Player module exposes some helpful information about the player.
77+
The Player module exposes some helpful information about the player.
78+
79+
#### String
80+
[See documentation...](https://github.com/moxvallix/moxlib/blob/main/docs/string.md)
81+
82+
The String module provides functions to manipulate strings.
83+
84+
#### Dimension
85+
[See documentation...](https://github.com/moxvallix/moxlib/blob/main/docs/dimension.md)
86+
87+
Moxlib provides a dimension for storing and accessing blocks. (Requires Moxlib Exp)

data/moxlib/functions/api/data/string_to_array.mcfunction

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Reset data in case of stuck lock
2+
3+
function moxlib:string/common/cleanup
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
execute unless data storage moxlib:string/private {lock:true} run function moxlib:string/to_array/init

data/moxlib/functions/data/_objectives.mcfunction

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ scoreboard objectives add moxlib.data.get dummy
22
scoreboard objectives add moxlib.data.set dummy
33
scoreboard objectives add moxlib.data.collect dummy
44
scoreboard objectives add moxlib.data.compare dummy
5-
scoreboard objectives add moxlib.data.paginate dummy
6-
scoreboard objectives add moxlib.data.string_to_array dummy
5+
scoreboard objectives add moxlib.data.paginate dummy

data/moxlib/functions/data/string_to_array/init.mcfunction

Lines changed: 0 additions & 8 deletions
This file was deleted.

data/moxlib/functions/data/string_to_array/iterate.mcfunction

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
execute unless data storage moxlib:config {init:true} run function moxlib:init
22

33
function moxlib:objectives
4+
function #moxlib:load
45
function moxlib:version
56

6-
function moxlib:math/_load
7+
function #moxlib:api/load

data/moxlib/functions/objectives.mcfunction

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ function moxlib:data/_objectives
33
function moxlib:test/_objectives
44
function moxlib:tui/_objectives
55
function moxlib:math/_objectives
6-
function moxlib:player/_objectives
6+
function moxlib:player/_objectives
7+
function moxlib:string/_objectives

0 commit comments

Comments
 (0)