Commit Graph
172 Commits
Author SHA1 Message Date
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
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
KingOfTheClouds 1abe93f0dc Fix scarpet modify(e, 'effect', ...) (#587) 2020-11-28 21:21:21 -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 55643632ca custom events, and low level event API 2020-11-11 02:06:45 -04:00
gnembon ce8529d084 added more types, entities 2020-11-04 13:48:36 -04: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 d5ebe5361c fixed incorrect recognition of some NULL objects 2020-09-28 22:17:29 -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 208d07bf47 added 'exact' to 'trace' in entity API 2020-09-03 05:04:17 -03:00
gnembon 4187f75de1 update 2020-07-27 02:22:17 -03:00
gnembon ede70298c9 Merge branch 'master' into 1.16 2020-07-27 02:20:18 -03:00
gnembon 2c0ed7bf69 added 'on_ground' and clarifications around motion. 2020-07-27 02:11:05 -03:00
gnembon 394904a187 update 2020-07-21 23:42:44 -03:00
gnembon 224d30e951 Merge branch 'master' into 1.16
# Conflicts:
#	src/main/java/carpet/script/value/EntityValue.java
2020-07-21 23:35:31 -03:00
gnembon 87b8892e42 new filters for entities 2020-07-21 23:31:44 -03:00
gnembon 359b89b46f Merge branch 'master' into 1.16 2020-07-21 05:07:22 -03:00
gnembon cfc97c5703 block breaking / active block entity API 2020-07-21 05:03:19 -03:00
gnembon 8833d33286 adjusting to 1.16 2020-07-19 02:57:14 -03:00
gnembon 33651de9cd Merge branch 'master' into 1.16 2020-07-19 01:37:30 -03:00
gnembon 606f768aed added 'path' and 'brain' to entity query API 2020-07-19 01:37:19 -03:00
gnembon 03061ba114 20w27a 2020-07-01 15:41:25 -03:00
gnembon 150c1d41a7 renewableBlackstone 2020-07-01 15:07:17 -03:00
gnembon 51313d496e Merge branch 'master' into 1.16 2020-06-29 12:26:14 -03:00
gnembon 9b439270f1 added persistence to entity API (read and write) 2020-06-29 12:25:12 -03:00
gnembon 3700377686 Merge branch 'master' into 1.16
# Conflicts:
#	src/main/java/carpet/script/utils/ShapesRenderer.java
#	src/main/java/carpet/script/value/BlockValue.java
2020-06-20 09:03:20 -03:00
gnembon ccd92c5957 added encode_nbt, added 'nbt' and 'nbt_merge' to modify entity API. 2020-06-20 02:19:20 -03:00
gnembon 63a10eb743 Merge branch 'master' into 1.16 2020-06-16 17:23:56 -03:00
gnembon 69e9de06d4 making sure that any source can query entities since they already can run code. 2020-06-16 10:33:47 -03:00
gnembon 9aa580cfa5 Merge branch 'master' into 1.16
# Conflicts:
#	src/main/java/carpet/script/CarpetExpression.java
#	src/main/java/carpet/script/utils/ShapeDispatcher.java
#	src/main/java/carpet/script/utils/ShapesRenderer.java
2020-06-10 01:36:11 -03:00
gnembon 73cb9d6968 added hunger, saturation, and exhaustion entity API calls. 2020-06-07 18:53:17 -03:00
GhoulboyandGhoulboy78 d9ed35676f Added hunger, saturation and exhaustion modification and querying (#286)
* Added hunger querying and modification

* Cleaning up old code

* forgot semicolon

* Added saturation querying and modification and exhaustion modification

working on exhaustion querying

* added if statements

to avoid crash

* more if statements

* o ye boi!

Co-authored-by: Ghoulboy78 <53367549+Ghoulboy-78@users.noreply.github.com>
2020-06-07 17:57:04 -03:00
gnembon c61429099a mappings 2020-06-04 15:59:46 -03:00
gnembon cd1e9d7264 Merge branch 'master' into 1.16 2020-05-27 00:53:49 -03:00
gnembon a1200d4c37 fixed so modify(..,'effect',...) does what docs say. 2020-05-27 00:53:21 -03:00
gnembon cf817c2e39 mappings 2020-05-21 14:23:04 -03:00
gnembon bec5259216 20w21a ohboi 2020-05-21 02:59:17 -03:00
gnembon abd5f178be Merge branch 'master' into 1.16 2020-05-20 02:13:37 -03:00
gnembon ab86fc9292 added 'portal_cooldown' and 'portal_timer' to entity API (query and modify) 2020-05-20 02:09:57 -03:00
gnembon a4750f7238 fixed entity 'home' arguments 2020-05-12 23:28:34 -03:00