Moxlib v0.5.13
on Jun 19, 2024[0.5.13] - 2024-06-19
Changed
- Pack now requires 1.21
Moxlib v0.5.12
on Apr 27, 2024[0.5.12] - 2024-04-28
Changed
- Pack now requires 1.20.5
- String / ASCII now only has one function, lookup.
- Helpers / Block / Get now uses a binary search tree.
- Helpers / Data / Type no longer has
json
type.
Removed
- String / ASCII decode and encode.
Moxlib v0.5.11
on Dec 23, 2023[0.5.11] - 2023-12-24
Added
- String / Concatenate, to combine two strings. Requires 1.20.2+.
Fixed
- String / From Array now actually functions.
Moxlib v0.5.10
on Dec 23, 2023[0.5.10] - 2023-12-24
Added
- New Exec function, which executes the command in
target
. Requires 1.20.2+.
Changed
- String / From Array has been moved out of Moxlib Experimental. Requires 1.20.2+.
Moxlib v0.5.9
on Nov 26, 2023[0.5.9] - 2023-11-23
Fixed
- Helpers / Inventory / Insert no longer overflows incorrectly.
Moxlib v0.5.8
on Aug 24, 2023[0.5.8] - 2023-08-24
Added
- Data / Array / Reverse, to reverse the order of an array.
- Helpers / Inventory / Insert, to handle adding items to inventory NBT.
Changed
- Predicates have been updated to the 1.20 format.
Moxlib v0.5.7
on Mar 31, 2023[0.5.7] - 2023-04-01
Added
- Verify function, to check that Moxlib is installed.
- Data / Array / Slice, to select data from an array between the
start
andend
indexes. - String / ASCII
- Table, a two dimensional array, of all the ASCII characters at their correct co-ordinates.
- Reference, an object containing all ASCII characters that can't be directly written in NBT.
- Encode, given a character, return it's ASCII index as a byte.
- Decode, given an index, return it's corresponding ASCII character.
Moxlib v0.5.6
on Feb 19, 2023[0.5.6] - 2023-02-20
Changed
- Math / Constants now have 2000, 4000, 8000, and 10000
- Helpers / Block / Get can now get block states.
- Running all tests from Test / Start will display a percentage of successful tests.
Moxlib v0.5.5
on Feb 6, 2023[0.5.5] - 2023-02-03
Fixed
- Version number set correctly again.
- String / Filter, being inconsistent because entities randomly re-order tags, is now fixed.
Moxlib v0.5.4
on Feb 1, 2023[0.5.4] - 2023-02-02
Added
- Helpers / Block / Place, places the given block at ~ ~ ~. Runs a callback when it has finished.
Moxlib v0.5.3
on Jan 31, 2023[0.5.3] - 2023-02-01
Added
- String / Filter, returns true if the given string is not in the target array.
- String / Resolve, returns the given JSON text string resolved as the executing entity.
Moxlib v0.5.2
on Jan 29, 2023[0.5.2] - 2023-01-30
Added
- Predicates to detect a player sneaking, swimming, sprinting, or on fire.
Moxlib v0.5.1
on Jan 28, 2023[0.5.1] - 2023-01-28
Added
- String / Newline, stores a newline character in storage
moxlib:api/string/newline
Fixed
- String / To Array now works as intended again.
Moxlib v0.5.0
on Jan 20, 2023[0.5.0] - 2023-01-21
Moxlib now has a sister project, Moxlib Exp. It enables experimental features. It has its own Changelog.
Added
- String module and documentation.
Changed
- String to Array has been moved to the string module. Make sure to update your packs, as this is a breaking change.
- Version info will now display Moxlib Exp version too, if the library is present.
Fixed
- The in-game version info hadn't been updated since 0.3.0. Now reports 0.5.0.
Moxlib v0.4.1
on Jan 19, 2023[0.4.1] - 2023-01-19
This update only adds one function, and fixes a minor bug, thus has been marked as a patch release.
Added
- String to Array, converts a string to an array of characters.
- Requires snapshot 23w03a (1.19.4) or higher.
Fixed
- Helper Data / Calculate Pages no longer reports one fewer page than it should.
Moxlib v0.4.0
on Jan 10, 2023[0.4.0] - 2023-01-10
This update was our largest yet! Many useful new functions added, as detailed below.
Added
Data Module
- Collect function, to retrieve all data matching the key.
- Paginate function, to paginate an array of data.
Helpers Module
- Data / Calculate Pages, to calculate the amount of pages that would be paginated.
- Inventory / Compact, to compact and "sort" Inventory data.
- Inventory / Stack Max, to calculate the maximum stack size of a given item.
- Inventory / Strip Slots, to strip Slot numbers from given Inventory data.
- Player / Head, to retrieve the head of the executing player.
Math Module
- Array to Integer, turns an array of digits into an integer.
- Power, calculates the target to the given power.
Player Module
- Adds a unique id for each player, in objective
moxlib.api.player.id
Changed
- Added -1 to Math / Constants
Moxlib v0.3.0
on Dec 30, 2022[0.3.0] - 2022-11-30
Added
- Math module and documentation
- Player module and documentation
Changed
- All public function tags and predicates have been moved to /api subfolders.
Moxlib v0.2.0
on Dec 30, 2022[0.2.0] - 2022-11-27
Added
- TUI moved from
tui
library, to amoxlib
module. - Added documentation for the TUI module.
Changed
- Reference TUI documentation from README.