Commit Graph
2373 Commits
Author SHA1 Message Date
altrisi 8f265f4e52 Improve performance of player() related methods (#1240) 2022-01-08 23:11:10 +01:00
altrisi 9fb6ec91cb Minor improvements to scarpet annotation API (#1239) 2022-01-08 23:05:21 +01:00
altrisi 212eb07131 Give feedback when stepping ticks (#1234) 2022-01-08 21:12:23 +01:00
altrisi f2989d51fd Improve CarpetExpressionException error messages (#1230) 2022-01-08 21:09:15 +01:00
altrisi de305f4284 Allow apps to retrieve information about the source (#1229)
* Give information about the sources

* Document source related system_info properties
2022-01-08 21:08:26 +01:00
Ghoulboy a8f9b96e9e Fixes #1222 (#1224) 2022-01-08 20:58:43 +01:00
replaceitem caafaa2039 [Scarpet] Task value refactor for better extendability (#1202) 2022-01-08 20:40:20 +01:00
gnembon 5dca846363 fixes ranges of perimeterinfo. fixes #1207 2021-12-11 22:30:42 +01:00
gnembon 4a1a710eb0 why not, may affect #1195, but I doubt 2021-12-06 01:20:21 +01:00
gnembon fe6018a43b allowing event callbacks be added concurrently (e.g. registered event while handling some other events), with safe event pruning. fixes #1193 fixes #889 2021-12-06 01:02:37 +01:00
gnembon d1bcb6c5dc 1.4.56 2021-11-30 18:42:05 +01:00
gnembon 3ff2b2efbc fix snafu 2021-11-30 18:41:17 +01:00
gnembon 197612ade7 1.4.55 2021-11-30 18:03:19 +01:00
gnembon 06eda1052f boi 2021-11-30 03:35:48 +01:00
gnembon 1cefef82f7 no-bs world height info 2021-11-30 03:28:44 +01:00
Ghoulboyandgnembon 6c776b6131 Adding min_y, max_y and world_border_info to system_info (#1168)
* Adding min_y and max_y

* Making it return all dimensions

* Adding world_border_info as well, cos y not

* Update docs/scarpet/api/Auxiliary.md

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-11-30 03:03:15 +01:00
gnembon 7a4c094607 fixes #1186 added carpetCommandPermissionLevel to allow admins to control who has access to /carpet command. 2021-11-29 23:27:54 +01:00
gnembon f5900cffc6 more code, simpler mixin 2021-11-29 00:10:29 +01:00
Crec0 28a5e7acf1 XpNoCooldown and combineXpOrbs refactor (#1149)
* - Fix xpNoCooldown to work as it did in 1.17-
- Remove XPcombine
- Use vanilla merge methods

* Remove debug code

* fix: rollback sort carpet.mixins.json

* rework: nerf xp cooldown absorption a little

* remove: combineXpOrbs
fix: xpCooldown

* revert renames

* fix newlines

* fix: wrong implementation for absorption

* add missing `private` keyword

* fix: player xp cooldown set wrongly

* fix: injection point to be within condition
2021-11-28 23:39:13 +01:00
gnembon 339633f1f0 fixes #1103 game will close peacefully when running ticks from scarpet 2021-11-27 21:14:59 +01:00
gnembon 0e1a8f20d4 fixes #1105 maxEntityCollisions will not affect maxEntityCramming setting 2021-11-27 20:58:23 +01:00
gnembon 7bd18a27e4 fixes #1113 boo 2021-11-27 20:29:16 +01:00
gnembon 18c728db2e fixes #1172 lol 2021-11-27 20:11:05 +01:00
altrisi d8c10c6e4a Complete removal of /info entity, it's correspondent carpet and two small changes (#1047)
* Remove no longer needed language packet mixin

* Make StringArgument properly return a StringArgument supplier, so `string` isn't `term`

Fixes gnembon/fabric-carpet#1044

* Complete removal of `/info entity` and it's correspondent carpet

Resolves gnembon/fabric-carpet#1033

* Remove yet another no longer needed mixin
2021-11-27 17:43:39 +01:00
gnembon 2f7433ecb1 fixes #1181 Revert "Optimize explosion BlockState caching (#1156)"
This reverts commit 5005268df4.
2021-11-23 22:46:15 +01:00
Ghoulboy 49dff77ebe Missing semicolon in draw_beta.sc (#1151) 2021-11-22 22:47:32 +01:00
Gnotteroandgnembon 775e923252 Added player abilities actions to the entity API (#1160)
* Added 'mayfly' and 'fly_speed' actions to the modify() function

* Added 'mayfly' and 'fly_speed' actions to the modify() function

* Added a query and a modify action for each of the abilities. Added the  modify action. Modified the docs to include all the new actions and queries

* Fixed an error with mod version

* Saving changes

* Modified the docs and fix an issue with float type variables

* Modified the docs and fixed an issue with float type variables

* Update src/main/java/carpet/script/value/EntityValue.java

* Update gradle.properties

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-11-22 22:46:02 +01:00
gnembon c5594812d4 1.4.54 2021-11-17 20:48:30 +01:00
gnembon dc9ba2f83c Merge pull request #1083 from altrisi/more-debugging
Make ErrorSnooper report values for locals in the stacktrace
2021-11-17 20:12:23 +01:00
Fallen_Breath 31da11dce6 Smart rule name auto-completion
Search in substrings only if no rule name starts with the query string
2021-11-17 00:38:09 +08:00
gnembon 205a8d9271 Merge pull request #1139 from YMC-Minecraft/tickfreeze
support '/tick freeze on', '/tick freeze off' and '/tick freeze status'
2021-11-13 22:30:05 +01:00
intricate 5005268df4 Optimize explosion BlockState caching (#1156)
optimize caching for explosions
2021-11-13 22:08:03 +01:00
gnembon 121c77625e Merge pull request #1162 from James103/patch-1
Fix #1161: Typo in extreme velocity log message
2021-11-13 21:34:29 +01:00
gnembon 639ef06e50 1.4.53 2021-11-11 23:22:03 +01:00
James103 af2ba900b2 Fix gnembon/fabric-carpet#1161: Typo in extreme velocity log message 2021-11-10 15:00:04 -06:00
Ghoulboy b935fadadf Add bitwise operations to scarpet (#1094) 2021-11-09 23:55:54 +01:00
altrisi 047fdc6ada Wrap value stringifying into a try-catch block 2021-11-06 20:34:18 +01:00
gnembon b93e3238b7 1.4.52 2021-11-04 00:46:27 +01:00
gnembon 1cc690fb79 1.4.51 2021-10-28 01:47:08 -03:00
Trumeet 6be2e51e0c support '/tick freeze on', '/tick freeze off' and '/tick freeze status'
The current implementation only allows toggling tick freeze, so scripting is hard. This patch enables users to specifically freeze or unfreeze other than just toggling. It also provides '/tick freeze status' command to dynamically check whether the game is frozen or not.

This patch preserves compatibility to the existing '/tick freeze' toggle command.
2021-10-21 19:38:07 -07:00
gnembon 9ac3654a2c 1.4.50 2021-10-21 08:43:52 -03:00
Fallen_Breath 8fa10a1c67 Fixed player ticking issue caused by rule updateSuppressionCrashFix (#1137)
* Fixed player ticking issue caused by #1133

* use abstract class for ServerPlayerEntity_updateSuppressionCrashFixMixin
2021-10-21 08:40:27 -03:00
gnembon f413a3d93f 1.4.49 2021-10-21 01:00:25 -03:00
Jake Kandgnembon 50b3aa8832 fixed logger option bug (#1124)
* fixed logger option bug

* implemented strict option for logger args

* added back deprecated logger constructor

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-10-20 23:16:05 -03:00
intricate f17b63a8f7 Fix #1126 (#1132) 2021-10-20 23:12:23 -03:00
Fx Morin 0714098347 Ported rule updateSuppressionCrashFix from Carpet-Extra + More (#1133)
* Posted rule `updateSuppressionCrashFix` from Carpet-Extra
Also added catch for update suppression in neighbour update during ServerPlayerEntity tick.
Added Logger `updateSuppressedCrashes` so not everyone sees the crash messages
Added Coords to crash message so we now know where it originates from

* Make it easier to read

* that `s` has been there for a long time

* Made `updateSuppressionCrashFix` compatible with carpet-extra
2021-10-20 23:08:23 -03:00
altrisi 506457d878 Fix Stack Overflow in dev environment with mojmap (#1134) 2021-10-20 23:06:19 -03:00
gnembon db5d4532b8 encode_nbt is incosistent with documentation, #fixes https://discord.com/channels/882822986795716608/882826588348092457/899049240771309638 2021-10-17 00:25:03 -03:00
gnembon 9e9a80373d 1.4.48 2021-10-13 19:38:02 -03:00
Fallen_Breath aa32411484 Added missing @Mutable @Final annotations (#1129)
Fixed #1101
2021-10-13 16:09:12 -03:00