Commit Graph
320 Commits
Author SHA1 Message Date
altrisi aabff1623b Reading/Writing JSON, first working version 2020-12-27 02:04:19 +01: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 f54ab746fe player swinging events. 2020-12-20 18:34:43 -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 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
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
gnembon 56064a49cb fixes to xp stuff, saturation and weather 2020-12-06 19:55:01 -04:00
Ghoulboy 42e67f27b7 Adding absorption and xp API, and weather control (#540)
* fixes #537
* fixes  #547
2020-12-06 16:03:15 -04:00
gnembon 259bdc2c94 ability to query client brand and server scarpet version. 2020-12-02 22:36:20 -04:00
gnembon d29f49967f rework of the event system, allowing apps to function more independently and allowing for player scoped apps to handle global events. fixes #596 2020-12-02 01:02:36 -04:00
gnembon e15afd9763 added support for block predicate argument support and tag_matches function. Fixes #563 2020-11-29 00:33:01 -04:00
KingOfTheClouds 1abe93f0dc Fix scarpet modify(e, 'effect', ...) (#587) 2020-11-28 21:21:21 -04:00
gnembon 5a8ce26c44 'biome' query api 2020-11-28 19:02:58 -04:00
gnembon 54d306d9bc added biome query to biome 2020-11-28 12:11:31 -04:00
gnembon 45e3abf19c fix to handle invalid structures with invalid boxes. 2020-11-28 01:24:49 -04:00
gnembon 07dce7bc2e risky optimizations. 2020-11-27 02:30:10 -04:00
replaceitemandgnembon 210b0fc8ea Added scarpet team functions (#569)
* Added team functions

* Docs for team functions

* Added team functions to editor keywords

* Added static method getPlayerNameByValue to EntityValue (also works with non existing players

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2020-11-26 02:59:23 -04:00
gnembon cd3880ea07 added slot argument type, fixes #564 2020-11-26 02:52:41 -04:00
gnembon 79cb4a20d8 refactor for inventories, allowing for null types. 2020-11-26 00:33:09 -04:00
gnembon 201654ff44 adding support for equipment inventories as well as horse and pillager item inventories. 2020-11-25 17:52:17 -04:00
gnembon b8ca302d33 added block_state, deprecated block_properties and property 2020-11-22 01:30:48 -04:00
altrisiandgnembon ba1071a8d1 Javadocs, cleanup, extension's client rules, built-in BundledModules generators, etc (#544)
* Add javadocs to many methods

* Added built-in ways to generate BundledModules and documented them

* Add Eclipse launch files to .gitignore and fix 11 warnings

* Remove many unused imports

* Remove some dead and unused code around app loading

* Allow extensions to have client-side rules in their SettingsManager

Also change tabs to spaces when those changed

* Remove unnecessary classloader param in BundledModule

* Change max tickwarp duration to Integer.MAX_VALUE

* Move RulePrinter into the source so it can be managed by the IDE

* Properly reset hopperCounters when changing worlds

Also change tabs to spaces again and minor tweaks to javadocs

* Run mergedocs even if Full.md was modified

* Update src/main/java/carpet/commands/TickCommand.java

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2020-11-16 09:30:59 -04:00
gnembon 55643632ca custom events, and low level event API 2020-11-11 02:06:45 -04:00
gnembon 9e8556f9d9 command arguments done 2020-11-09 03:04:26 -04:00
gnembon ce8529d084 added more types, entities 2020-11-04 13:48:36 -04:00
gnembon c827b04126 why not 2020-11-01 01:28:31 -04:00
gnembon b90db6954e fixes 2020-10-31 14:35:49 -03:00
gnembon e617008930 fix rounding and precision ugliness, fixes #516 2020-10-31 11:42:53 -03:00
gnembon 7ccd46433a entity load handler and rework of handling of events. 2020-10-30 22:59:27 -03:00
gnembon 15ac7a4621 entity actions 2020-10-29 11:26:59 -03:00
gnembon 41e745ca0c spawn point control to entity api 2020-10-28 04:09:12 -03:00
gnembon 3a26dae51d Moar control over angles, fixes #510 2020-10-26 01:53:48 -03:00
gnembon 1268af4131 Fixed threading and add shutdown control for threads via sleep 2020-10-24 22:18:02 -03:00
gnembon 6f0faf991a expanded long arithmetic 2020-10-12 11:56:52 -03:00
gnembon 10309ffcac cleaned up result of parsing of nbt strings. 2020-09-28 23:40:01 -03:00
gnembon d5ebe5361c fixed incorrect recognition of some NULL objects 2020-09-28 22:17:29 -03:00
gnembon 9b35c19bea pattern matching errors are reported as coding errors 2020-09-28 15:54:56 -03:00
gnembon c4c268b079 increased utility of string matching using '~' 2020-09-26 12:28:46 -03:00
gnembon e8b2060fb3 variable number of arguments for user defined functions. 2020-09-22 04:38:08 -03:00
gnembon cbe91b4759 unhandled throw() now reports as error. Fixes #446 2020-09-10 00:32:36 -03:00
gnembon 33f400e904 refactor 2020-09-09 16:19:12 -03:00
gnembon 3105d5bb71 Events are defined statically in normal classes and added handler for extensions to add their built-ins 2020-09-08 23:47:31 -03:00
gnembon a7fcaaddf1 code fixes 2020-09-07 15:37:22 -03:00
Ghoulboy 26169f042e Updating logger to support different types (#452) fixes #437
* Updating logger to support different types

* changing to ouptut info by default

* updating docs with air

* adding air modify definition
2020-09-07 15:19:28 -03:00
gnembon 1006e0ac40 commands return integer value if possible, fixes #408
handle infinite values as infinities.
2020-09-05 02:06:59 -03:00
gnembon 208d07bf47 added 'exact' to 'trace' in entity API 2020-09-03 05:04:17 -03:00