Commit Graph
1316 Commits
Author SHA1 Message Date
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
gnembon 0453dc33a0 Merge branch 'master' into 1.17
# Conflicts:
#	gradle.properties
2021-01-13 18:19:51 -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 ed4afa15ff Merge branch 'master' into 1.17 2021-01-07 00:41:15 -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
gnembon 6225e5f632 player() returns consistently on player scoped apps. 2020-12-23 11:55:45 -04:00
gnembon 3b6261d3d6 Merge branch 'master' into 1.17 2020-12-21 02:58:09 -04:00
gnembon d99ab4fc24 limit depth of game_tick, just in case. 2020-12-20 22:58:41 -04:00
gnembon 941b7d4836 Merge branch 'master' into 1.17 2020-12-20 19:27:04 -04:00
altrisi 33347baaf7 Freezing Scarpet
And the client
2020-12-21 00:14:20 +01:00
gnembon f54ab746fe player swinging events. 2020-12-20 18:34:43 -04:00
gnembon 32d0ba9694 20w51a 2020-12-16 19:06:09 -04:00
gnembon c2436f1f09 Merge branch 'master' into 1.17 2020-12-16 18:04:52 -04:00
replaceitem 6bb7eb2ae2 Merge branch 'master' into scoreboard-criterion-mod 2020-12-16 20:40:29 +01:00
replaceitem 055c26d44a added changing criterion to scoreboard_add #624 2020-12-16 20:35:28 +01:00
gnembon 8aa2e93162 Merge pull request #628 from altrisi/formatted-add
Add FormattedText addition
2020-12-16 02:14:23 -04:00
gnembon 5280cda3ee set can now accept map of properties. 2020-12-16 02:05:05 -04:00
gnembon 4466f9e8bb set vanishes block data on unsuccessful replace. Fixes #629 2020-12-16 01:37:00 -04:00
altrisi a81b549360 Move FormattedText addition into a combined function 2020-12-15 10:00:09 +01:00
altrisi 6dfd64027d Add FormattedText functionality to the right of the operand 2020-12-14 19:20:21 +01:00
altrisi 7b77fb0853 Add FormattedText addition 2020-12-14 18:36:24 +01:00
gnembon 00ad9eccc7 mappings 2020-12-14 02:51:01 -04:00
gnembon e89f4444dc Merge branch 'master' into 1.17 2020-12-13 06:31:17 -04:00
gnembon 68af14211d Merge branch 'master' of https://github.com/gnembon/fabric-carpet 2020-12-13 06:29:48 -04:00
gnembon 7bacea1810 range now handles better long long chains, as well as float values. 2020-12-13 06:29:42 -04:00
gnembon 34ee6784a4 values close to zero don't round nicely with bigdecs 2020-12-13 06:07:13 -04:00
Kevin Delugan 2be4ac8ee0 Added onTrade Scarpet Event 2020-12-11 05:19:06 +01:00
gnembon 6dc6a42bda client function, duh. 2020-12-08 19:15:33 -04:00
gnembon 947474e9e9 Merge branch 'master' into 1.17 2020-12-07 22:13:45 -04:00
gnembon f54a098948 allow apps define their own command permission level, fixes #542 2020-12-07 16:03:42 -04:00
Ghoulboy bf0b75ebff adding dev_environment (#615) 2020-12-07 08:39:04 -04:00
gnembon 7ecef187d4 fix 2020-12-07 01:22:12 -04:00
gnembon 02a25c0c99 Merge branch 'master' into 1.17
# Conflicts:
#	src/main/java/carpet/script/api/Entities.java
2020-12-07 01:14:12 -04:00
gnembon 522d971688 added startup and shutdown events. fixes #586 2020-12-07 01:11:55 -04:00
gnembon e8a6b8936f as per discussion, since scripts can now be stowed in the global bin, it makes sense for apps to behave like datapacks. fixes #613 2020-12-07 00:32:08 -04:00
gnembon a0067d0d61 added item_list, item_tags to support item tags as well as options for entities to support entity type tags. fixes #382 2020-12-07 00:12:55 -04:00