All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Pack now requires 1.21
- ASCII loot table now works properly.
- 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.
- String / ASCII decode and encode.
- String / Concatenate, to combine two strings. Requires 1.20.2+.
- String / From Array now actually functions.
- New Exec function, which executes the command in
target
. Requires 1.20.2+.
- String / From Array has been moved out of Moxlib Experimental. Requires 1.20.2+.
- Helpers / Inventory / Insert no longer overflows incorrectly.
- Data / Array / Reverse, to reverse the order of an array.
- Helpers / Inventory / Insert, to handle adding items to inventory NBT.
- Predicates have been updated to the 1.20 format.
- 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.
- Math / Random
$rand_112
and$rand_128
are now correctly set to their respective ranges.
- 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.
- Version number set correctly again.
- String / Filter, being inconsistent because entities randomly re-order tags, is now fixed.
- Helpers / Block / Place, places the given block at ~ ~ ~. Runs a callback when it has finished.
- 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.
- Predicates to detect a player sneaking, swimming, sprinting, or on fire.
- String / Newline, stores a newline character in storage
moxlib:api/string/newline
- String / To Array now works as intended again.
Moxlib now has a sister project, Moxlib Exp. It enables experimental features. It has its own Changelog.
- String module and documentation.
- 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.
- The in-game version info hadn't been updated since 0.3.0. Now reports 0.5.0.
This update only adds one function, and fixes a minor bug, thus has been marked as a patch release.
- String to Array, converts a string to an array of characters.
- Requires snapshot 23w03a (1.19.4) or higher.
- Helper Data / Calculate Pages no longer reports one fewer page than it should.
This update was our largest yet! Many useful new functions added, as detailed below.
- Collect function, to retrieve all data matching the key.
- Paginate function, to paginate an array of data.
- 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.
- Array to Integer, turns an array of digits into an integer.
- Power, calculates the target to the given power.
- Adds a unique id for each player, in objective
moxlib.api.player.id
- Added -1 to Math / Constants
- Math module and documentation.
- Player module and documentation.
- All public function tags and predicates have been moved to /api subfolders.
- TUI moved from
tui
library, to amoxlib
module. - Added documentation for the TUI module.
- Reference TUI documentation from README.
Initial release!
- Helpers moved from
helpers
library, to amoxlib
module. - Data moved from
data
library, to amoxlib
module. - Test moved from
test
library, to amoxlib
module. - Added documentation for all three modules.
- Added README and LICENSE.