Kam
0f1a6028f3
Event Janino Script
2026-01-22 20:53:48 -05:00
bigguy345
dfcab1e413
Moved clear to ScriptHandler
2026-01-22 23:05:47 +02:00
Kam
19b01e2099
Compress Script Hooks and Context System
2026-01-22 14:27:48 -05:00
bigguy345
7050e9b7d4
Implemented Janino scripting for player events. via JaninoPlayerScript
2026-01-22 20:51:46 +02:00
bigguy345
50e9f1b3e5
HUGE IScriptHandlerPacket merge.
...
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345
cda43fe67a
Defaulted IScriptHandler methods to clean up duplicate code across implementations
2026-01-18 03:05:02 +02:00
bigguy345
cc0959dcfe
Added run(EnumScriptType, Event) and
...
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.
Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345
cd60a03544
Moved all INpcScriptHandler implementations to IScriptHandler as its redundant
2026-01-13 23:45:14 +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
Kam
43bc1eb81f
Code Cleanup / Reformat
2025-05-20 13:53:26 -04:00
Kam
4fd0c31bee
Individualized Player Scripts Config
2025-04-09 01:55:34 -04:00
Kam
94d9d93360
Organize Player Events
2025-04-08 22:37:26 -04:00
Kam
8cf67e9ad2
Fix Cast Crash
2025-03-16 00:06:48 -04:00
Kam
180d257024
Proper Reformating
2025-03-13 17:14:45 -04:00
Luis C.M.
572077b7e5
Loads of changes from the animation branch
2025-01-22 18:54:00 -06:00
Kam
934cc3d7cd
Reapply "Revert Animation Events"
...
This reverts commit 4113bcc6e9 .
2024-08-22 16:47:45 -04:00
Kam
4113bcc6e9
Revert "Revert Animation Events"
...
This reverts commit 1ffddd3ce9 .
2024-08-22 16:47:07 -04:00
Kam
1ffddd3ce9
Revert Animation Events
2024-05-26 19:26:47 -04:00
luisc
f117e32fec
Made animation thread exceptions print stack traces. Might remove before release, since this has the potential to spam up server/client consoles.
2024-04-02 16:37:01 -05:00
luisc
403b6c5d32
Fixes to animations
2024-04-02 15:19:27 -05:00
Kam
27359a429d
Beta 5 Gradle
2024-02-28 20:58:00 -05:00
Kam
7f2a375323
RightClick Event for Scripted Items
2024-02-21 00:31:17 -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
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
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
0db96f9040
Fixed forge, player, & npc scripts not being able to be deleted or added.
2023-02-19 16:22:28 -06:00
Luis C.M
de6375c4cb
Fixed script console not appearing with the new global script tab saving method.
2023-02-19 15:20:51 -06:00
Luis C.M
b8dc090db8
Player, Forge, & NPC scripts are saved in separate packets for separate tabs now, so script save/get packets aren't too big for the server.
2023-02-19 13:38:43 -06:00
luisc
9c7767312d
Fixed empty scripting tabs making all following tabs not run code in player scripts.
2023-01-25 11:01:35 -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
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
Luis C.M
c0406958a3
The script controller now checks whether a language can have objects loaded into it on startup, catching an exception and skipping that language as available if so.
2022-05-29 16:01:05 -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
6dea5a1cbc
Interfaces have a file strucutre resembling the file structure of their implementing classes.
2022-05-11 16:43:14 -05:00
Luis C.M
11cc46b48f
Fixed some scripted item events, and fixed positioning of scripted items.
2022-05-11 13:30:13 -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
953f6e0459
Fixed server-side lag caused by player events. THIS IS BIG.
2021-12-18 08:34:30 -06:00
luisc
f03516b00f
Fixed console and console spam with scripted player events.
2021-12-17 08:10:21 -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
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
luisc
d1c4adf371
ScriptEntity instances are now properly retrieved in event scripts
2021-10-21 22:14:12 -05:00
luisc
bb1da8376d
Implemented 1.12 event scripting API.
2021-10-18 22:01:15 -05:00