Commit Graph
66 Commits
Author SHA1 Message Date
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 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 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 592a910cbc Add some more Attack Speed Handling 2025-12-30 19:29:44 -05:00
Kam 6e851b88d2 Fix linked item translate axes 2025-10-27 23:42:40 -04:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam 9691c90ffc Scripting for Attribute Handling on Players, Items, Totals, etc 2025-03-14 05:35:23 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam c3538836be Optimize Imports 2025-02-20 21:40:39 -05:00
Kam fdd47691ae Fix Linked Item Duplication Bug 2025-02-18 02:15:06 -05:00
Kam 5cbab2581c Linked Item Saving & Writing 2025-02-17 14:38:42 -05:00
Kam 85165070e0 Linked Item Building 2025-02-17 14:06:26 -05:00
Kam 639e44f98f Try and work? 2025-02-17 13:44:01 -05:00
Kam e316946915 push something?? 2025-02-16 06:24:57 -05:00
Kam f51c636b79 LinkedItem Things 2025-02-16 05:50:03 -05:00
Kam eb8b5387ea Linked Item GUI + Packets 2025-02-16 04:54:21 -05:00
Kam 025e1ada3c Linked Item Things 2025-02-15 19:37:25 -05:00
luisc 8909124fff Made ScriptLinkedItem implement IItemLinked api interface 2025-02-14 12:29:53 -06:00
luisc 4a1a092757 More linked item changes 2025-02-14 12:28:17 -06:00
luisc 6d80acb5f0 Created IItemCustomizable interface 2025-02-13 18:44:11 -06:00
luisc 44e5c8b4c5 progress on linked items 2025-02-13 18:11:58 -06:00
luisc fb75f52806 NBT changes to accommodate nullable fields 2025-02-13 14:48:21 -06:00
luisc 82dfbc8635 Made display fields nullable 2025-02-13 14:12:27 -06:00
luisc d510fe8a00 Created abstract ScriptCustomizableItem class for scripted items 2025-02-13 13:48:59 -06:00
somehussar 3f91be9498 Remove comment 2025-02-11 22:49:48 +01:00
somehussar 9188499e7e Move purely display data into ScriptItemCustom.Display 2025-02-11 22:39:08 +01:00
Kam 5733f73a09 Reduce Scripted Item Lag 2024-05-25 18:07:41 -04:00
Kam 9c2faa4dce Fix setLore Clearing all other Display 2024-03-29 03:00:10 -04:00
Kam b4434987be New Scripting Additions
Script Item
- Copy()
- getMaxItemDamage

Script World
- Broadcast

ServerCloneController
- has
2024-03-28 01:34:12 -04:00
Kam 0949d41e6f Script Item | Fix set Lore and add Compare Items 2024-03-28 01:16:25 -04:00
Kam f22b40ffd8 Add Is Normal Item Rendering type for Scripted Items to Hold them regularly 2024-03-27 04:28:12 -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 29fb8d1dcf ScriptItemStack, ScriptEntity, ScriptBlock, & ScriptBlockPos:
-Implemented equals() functions for comparing objects of these types
2023-06-03 00:34:07 -05:00
Luis C.M 826a90bd6d IItemStack:
-New itemHash() function for comparing new instances of script item stacks for the same item.
2023-06-03 00:02:37 -05:00
Luis C.M dd7714350d ScriptWorld:
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M 6febeeea02 ScriptCustomItem:
-Fixed custom item visually disappearing after editing a script.
2023-06-01 18:12:15 -05:00
Luis C.M 7000b525f3 Fixed entity custom item rendering, and rendering of textures for custom GUI buttons and rectangles. 2023-05-31 18:55:06 -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 7c4965d368 ScriptCustomItem:
-Made engine for containers also set on saving
2023-05-29 23:59:57 -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 8b0431340c Crash fixes for custom items 2023-04-12 00:18:43 -05:00
Luis C.M 947314787f Removed console from NBT data for scripted items 2023-03-29 21:35:16 -05:00
Luis C.M 84286794aa Fixes to recent custom item changes, width wasn't rendering properly 2023-03-19 02:32:09 -05:00
Luis C.M 39a40c9603 Fixed URL support for scripted items, weird 3d visibility bug still present that needs to be fixed. 2023-03-19 02:04:47 -05: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
Luis C.M 60ed5ab607 Fixed empty tabs breaking all following tab scripts on scripted items. 2023-01-29 18:01:00 -06:00