Commit Graph
188 Commits
Author SHA1 Message Date
gnembon c60167405d Merge pull request #881 from altrisi/deprecate-old-booleans
Deprecate old boolean constructor and move existing usages
2021-05-25 00:50:11 -03:00
altrisi 9d9844fd5d Deprecate old boolean constructor and move existing usages 2021-05-24 11:41:24 +02:00
altrisi f34503aa3c Use primitive doubles and allow decimal exhaustion 2021-05-24 11:21:39 +02:00
replaceitemandgnembon 6a06b0fb61 Modify look (#848)
* Added modify(e,'look',...

* Added modify(e,'look',...

* Not change yaw and pitch if vector length is 0 or straight up/down

* Added to docs

* Update docs/scarpet/api/Entities.md

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-05-09 15:14:05 -03:00
Ghoulboy 164122eba2 Adding query player language (#824) 2021-04-26 21:38:29 -03:00
gnembon edca3fb131 using proper logger now 2021-04-22 22:30:45 -03:00
gnembon d072ec90c3 hold your horses 2021-04-22 22:26:35 -03:00
gnembon 74bd0bb81e dont be lazy refactor 2021-04-22 20:37:48 -03:00
replaceitem e26e332a6d Adding getTextByValue method to replace duplicate code (#823)
* Added FormattedTextValue.getTextByValue()

* changed getBoolean() and added to display_title
2021-04-20 17:14:08 -03:00
gnembon f2721ab87a custom events backend, and entity attribute query. 2021-04-13 01:22:50 -03:00
gnembon e063748e83 added create_explosion and more event handlers. 2021-04-09 01:38:00 -03:00
gnembon c5f666b95c specify 2021-03-26 22:29:06 -03:00
gnembon 02e097dc4f fix 2021-03-23 04:15:51 -03:00
gnembon d97110a1ba fixed use of client method when using item, entity and block tags. 2021-03-06 00:57:03 -04: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
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