Commit Graph
45 Commits
Author SHA1 Message Date
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
bigguy345 d17534120b Merged GuiJaninoScript with GuiScriptInterface and moved usages 2026-01-14 03:41:24 +02:00
bigguy345 73db727c47 Deleagted all ScriptContainer NBT based creation to IScriptUnit.createFromNBT 2026-01-13 22:16:51 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
luisc 70f146cb27 changed some comments 2025-06-11 17:37:17 -05:00
luisc 7044d8ed63 added a config that determines the order loaded scripts are run in 2025-06-11 17:36:03 -05:00
luisc fe1c21582a improved script performance when looking up top-level functions 2025-06-03 15:11:49 -05:00
Kam 2b5fcc12cc Load Imported Scripts first 2025-05-29 20:42:36 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam eeb6b2ea8b Scripted Items Display Errors & Fix Console Scroll Wheel and Scroll Bar 2025-02-09 04:02:16 -05:00
Kam fa6a061e20 HasCode() now checks for if loaded scripts are applied 2024-04-06 22:31:22 -04:00
Kam 2fd7594720 Remove Fernflower References 2024-03-17 23:17:36 -04:00
Kam e46b78ff71 Optimize Imports 2024-02-15 17:54:28 -05:00
Luis C.M 3b0879b0db Made a new interface for CNPC+ script handlers and changed callScript functions to make them more 3rd party API-friendly 2023-07-13 13:56:32 -05:00
Luis C.M dd7714350d ScriptWorld:
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M 1ce5b7b302 ScriptCustomItem:
-Fixed issue where NBT data was not being sent to the client side, caused by latest commit.
2023-05-30 00:56:39 -05:00
Luis C.M a0adf0d7bd Fixed item toss event not being cancellable. Setting a script container's engine doesn't happen on every script call now, reducing lag. 2023-05-29 23:57:45 -05:00
Luis C.M 130ac26879 ScriptContainer:
-Fixed issue where the full code the script engine evaluates wouldn't get remade after being changed
2023-05-25 22:18:54 -05:00
Luis C.M 0ceb5dc3e2 Changed JS code execution in the ScriptContainer, more similar to 1.12 now. 2023-04-02 18:44:56 -05:00
Luis C.M 46d668f44c Added IProjectile and its events. 2023-03-16 02:51:40 -05:00
Luis C.M 5b589768f6 Player, Forge, & NPC script console changes, & further fix to concurrent modification exception on script container. 2023-02-21 12:45:48 -06:00
Luis C.M 0ddcd15162 Fixed concurrent modification exception when saving scripts. 2023-02-19 12:48:40 -06:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
KAMKEEL 6e92f08851 Config Overhaul 2023-01-07 00:21:08 -05:00
Luis C.M 7a715ef308 NpcAPI:
Added functions for adding keywords to global script running
++ addGlobalObject(String,Object)
++ removeGlobalObject(String)
++ getEngineObjects()
2022-12-14 17:53:57 -06:00
Luis C.M 68600d7d00 Added additional GraalJS flags 2022-11-27 23:56:38 -06:00
Luis C.M 8e6f5b10d1 Implemented GraalJS support. 2022-11-27 21:43:29 -06:00
Luis C.M ed0290217f Added config to optionally enable/disable the ECMA6 Javascript standard in scripts. 2022-11-25 21:33:43 -06:00
Luis C.M c5d6179b95 Updated nashorn to use ECMA6 2022-11-25 20:53:03 -06:00
Luis C.M aa02e5dcc3 Fixed API interface errors, added casts for custom item script handlers in EventHooks, and added some event interfaces. 2022-11-23 23:59:01 -06:00
KAMKEEL be9ae94163 Start API Branch 2022-11-15 15:25:53 -05:00
c0508383 9fc408e598 Added a configurable expansion to scripts' length, adding 65535 more characters with every additional increase. 2022-07-12 11:58:54 -05:00
Luis C.M cf33b90b26 Used interfaces in implementations instead of the real classes for most scripted classes. 2022-05-11 22:08:31 -05:00
Luis C.M 6896cec417 Every function in API classes that calls the main API class now calls the loaded API wrapper, renamed to NpcAPI, instead of the abstract class, renamed to AbstractNpcAPI. 2022-05-11 17:12:48 -05:00
Luis C.M 9a244ca2fe Renamed NPCs button on GUI, added configs for enabling player, forge, NPC, and all scripts. 2022-03-23 17:42:35 -05:00
luisc ff810cbc8d Full console output is now shown again for script errors. 2021-12-20 17:03:54 -06:00
luisc 23384d1d67 Fixed some server-side lag caused by player events. Player ticks now execute every 10 MC ticks. 2021-12-16 21:54:05 -06:00
luisc 6bdc68337c Revert "Made player script implementation closer to that of 1.12."
This reverts commit 3a9789b3fd.
2021-12-16 04:05:05 -06:00
luisc 3a9789b3fd Made player script implementation closer to that of 1.12. 2021-12-16 02:53:17 -06:00
luisc 816445bccd Script error output shortened to just the error description and line number. 2021-12-13 22:51:33 -06:00
luisc f14bc107d3 Double clicking events in the hook list will now paste them into your code. More scripting functions added for NPCs. 2021-12-03 21:13:56 -06:00
luisc 547f5ab82d Container event spam when no container is open fixed. Fixed scripted player and forge events not launching after merging ScriptContainer and EventScriptContainer. 2021-12-03 18:17:52 -06:00
luisc 72869e6a78 Consolidated EventScriptContainer and ScriptContainer into a single ScriptContainer class. NPCs are now able to fly when ai.movementType == 1. 2021-12-01 15:31:05 -06:00
KAMKEEL a31efb2dc3 1.7.10 Files
Files added
2018-09-13 12:03:28 -04:00