Commit Graph
912 Commits
Author SHA1 Message Date
gnembon 29893ed28a renames 2021-03-09 14:43:29 -04:00
gnembon 72af3f732e cleaned docs 2021-03-09 13:51:52 -04:00
gnembon 2d1b53258c simplify error messages 2021-03-09 13:29:20 -04:00
gnembon d72a617290 added trace information to thrown exceptions and clean some of the docs 2021-03-09 04:57:23 -04:00
gnembon d48f78ff7b simplfy 2021-03-08 00:44:40 -04:00
altrisi 36eccbc2df Fix javadoc 2021-03-08 00:13:30 +01:00
gnembon 25eccc9569 Merge branch 'master' into more-throwables 2021-03-07 17:52:10 -04:00
altrisi 8a1c9f2d0b Fix symbolic links (#754) 2021-03-07 17:16:20 -04:00
gnembon 38458a8e35 added create_datapack, check_hidden_dimensions and world_dimensions in system info. 2021-03-07 16:37:13 -04:00
gnembon d97110a1ba fixed use of client method when using item, entity and block tags. 2021-03-06 00:57:03 -04:00
gnembon 1ae358909b true and false represent now proper boolean values, not just 0 and 1. All other previous arithmetic holds. 2021-03-02 23:33:51 -04:00
altrisi 44101ddd3d Undeprecate and filter to user-defined 2021-03-02 14:26:05 +01:00
replaceitem ca4db433c1 Fixed slice() returning empty string when referring to last character (#751)
* Fixed slice() returning empty string when referring to last character
2021-03-01 22:10:49 -04:00
replaceitem 6b2ead46c8 Added list header and motd option to display_title() 2021-02-28 13:50:54 +01:00
Ghoulboy78 ae63c7be1d registering as built-in library (thx @altrisi) 2021-02-25 09:32:00 +01:00
replaceitem f202c024cf made entity~'display_name' return a formatted text 2021-02-24 17:55:45 +01:00
altrisi eb7bb70586 Implement query(e,'fire') 2021-02-21 12:38:25 +01:00
altrisi 7b1c58d81e Minor docs and visibility changes for exceptions 2021-02-21 12:34:44 +01:00
altrisi 516de37dd2 Deprecate try without id and therefore throw without id 2021-02-21 02:23:06 +01:00
altrisi 0b86ac1a87 Add multi-catch to try block 2021-02-21 01:52:55 +01:00
altrisi 86dabe0080 Add exception hierarchy 2021-02-21 00:57:37 +01:00
altrisi a155494d11 Allow some exceptions to be handled 2021-02-19 19:54:41 +01:00
gnembon 9ebae27807 workaround for hanging events after shutdown. 2021-02-10 23:35:59 -04:00
gnembon 4c09d6b736 added __on_start and defined better meta-events 2021-02-08 18:08:38 -04:00
gnembon f68aa410c7 fix for operators not to use contexts that don't apply 2021-02-08 15:40:21 -04:00
gnembon 35c288b03f looping on nulls behaves like on empty lists. 2021-02-08 15:39:41 -04:00
altrisi a83548876a Extra handling of null values (part 1) (#684) 2021-01-26 01:16:48 -04:00
gnembon 4694e40bdd Merge pull request #673 from altrisi/fix-split
Fix split
2021-01-14 23:57:28 -04:00
altrisi ecbd7f1dd7 Fix NbtIo crash when loading appdata 2021-01-14 20:40:31 +01:00
altrisi 9eea3b47a6 Actually return those lists 2021-01-14 03:08:33 +01:00
altrisi 852139d936 Make split split lists in list of single elements list without delimiter 2021-01-14 02:58:05 +01:00
gnembon d563e65c77 Merge pull request #666 from altrisi/extra-splitting
[Suggestion] Allow splitting lists by element value
2021-01-13 21:23:49 -04:00
replaceitem c0e2d17377 Fixed null acting as a string with matching operator (~) and split() (#662)
* Fixed null acting as a string with matching operator (~)
2021-01-13 21:17:39 -04:00
BisUmToandgnembon 2121a91a55 Added nbt_storage() scapet function (#655)
* Added storage() scarpet function

Allows you to easly manage vanilla data command storage

* Added docs and uniformed with scoreboard()

storage(key, nbt) will now return the previous value to be consistant with the scoreboard() command.

* Included imports

* Renamed storage function to nbt_storage

* Update docs/scarpet/api/Auxiliary.md

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-01-13 21:14:57 -04:00
altrisi 49ffa4f109 Add new split functions 2021-01-11 19:46:39 +01:00
gnembon 5e7bab6b9e events triggered for all players even for player specific events. Fixes #651 2021-01-09 04:57:06 -04:00
gnembon f3f8c689a8 fixing incorrect default upper bound for slice. Fixes #657 2021-01-07 00:40:39 -04:00
gnembon eac4eb0537 Merge pull request #634 from altrisi/freeze-schedules
❄️ Freezing Scarpet ❄️
2021-01-07 00:00:48 -04:00
altrisi cdaf17ea1e JSON support tweaks 2021-01-05 02:42:02 +01:00
altrisi ffeee1fa9d Freeze schedules too 2021-01-02 12:57:45 +01:00
altrisi 6d3ac93e4c Use setters and getters for frozen state, separate superHot and
don't tick regular tick events
2020-12-29 16:00:07 +01:00
gnembon a0507400ee Merge pull request #631 from replaceitem/scoreboard-criterion-mod
Added ability to change criterion with scoreboard_add Fixes #624
2020-12-29 00:01:58 -04:00
gnembon 4aaec6562b Merge pull request #643 from altrisi/json-reading
Reading/Writing JSON in Scarpet
2020-12-28 22:48:55 -04:00
replaceitem 5771d42c98 scoreboard_add returns current criterion and null 2020-12-28 12:44:17 +01:00
Ghoulboy78 6375108dbf Add game_data_version (it's mostly for WE dev, ngl) 2020-12-28 10:28:20 +01:00
altrisi 929c17da36 Fix Value mess 2020-12-27 15:53:44 +01:00
altrisi aabff1623b Reading/Writing JSON, first working version 2020-12-27 02:04:19 +01:00
gnembon ba2586743a errors in arguments include failing argument custom tupe. 2020-12-25 05:34:55 -04:00
gnembon 7ad6de64ff slice can accept negative indices 2020-12-25 04:55:32 -04:00
gnembon d6eb53b6ce player entity value may become invalid due to respawns. This not only fixes #633, but also other cases where player reference is used over time while player respawns and its instance is recycled. 2020-12-24 06:48:14 -04:00