4681 Commits
Author SHA1 Message Date
luisc f1741b4660 Removed some unnecessary lines of OpenGL code 2022-03-02 19:35:24 -06:00
luisc 7f8246e04e PARTICLE ROTATION 2022-03-02 18:18:03 -06:00
luisc 65ab37158f Fixed flying limits not working on flying NPCs with the new smoother flight 2022-02-27 23:23:41 -06:00
luisc d2d3cef681 When setMaxTicks() is called and the remaining ticks in a timer are greater than that value, the remaining ticks are updated to the new max tick value. 2022-02-27 23:11:52 -06:00
luisc 403738262c Added timer functions.
ticks(int id):
Gets the remaining ticks in the timer that matches this id.

setTicks(int id, int ticks):
Sets the remaining ticks in the timer that matches this id.

maxTicks(int id):
Gets the maximum ticks that must elapse for the timer that matches this id to finish.

setMaxTicks(int id, int ticks):
Sets the maximum ticks that must elapse for the timer that matches this id to finish.

repeats(int id):
Returns true if the timer with the given id is set to repeat, false otherwise.

setRepeats(int id, bool repeat):
Sets whether the timer with the given id should repeat. If true, the timer will repeat, and not repeat otherwise.
2022-02-27 23:08:24 -06:00
luiz-otavio 90c6574125 fix: ensure playerdata type and remove useless checking about transforming 2022-02-27 08:12:24 -03:00
luiz-otavio 7b0a6b7497 feat: add some utilities messages on each case of compressor command 2022-02-27 08:11:48 -03:00
luiz-otavio 451a60f297 test: make CompressorTest to retrieve the measure time of compression to see how much each one will take 2022-02-27 07:00:42 -03:00
luiz-otavio 3ac531a49d feat: add compressor command to convert data files to zstd or json 2022-02-27 06:59:24 -03:00
luiz-otavio 34b6eb05e5 feat: integrate the compressor type to config property and add number of IO-Workers to write compressed files 2022-02-27 06:58:53 -03:00
luiz-otavio 4bdbe0efee refactor: ensure almost compression types to load/write each NBTTagCompound 2022-02-27 06:57:37 -03:00
luiz-otavio c3bba543f0 feat: add ZstdCompressor to write/read almost compressed data 2022-02-27 06:56:57 -03:00
luisc 22b622d46c Fixed hovering text for custom GUI labels and textured rectangles. 2022-02-23 00:39:01 -06:00
luisc ee02988d8c Removed client-side imports from EntityNPCFlying 2022-02-22 22:14:05 -06:00
luisc 450e065e27 Slightly improved flight pathing downwards. 2022-02-22 01:52:47 -06:00
luisc c2a669fbeb The setForm() function in ScriptDBCPlayer prevents crashes from form levels that are out of bounds now. 2022-02-21 20:16:42 -06:00
luisc 732e97e0fe Override updateLeashedState() function in EntityNPCInterface.
NPCs can't be leashed anyway. This should avoid the "does not know how to add entity" crash with NPCs.
2022-02-20 00:56:57 -06:00
luisc 33e884c217 Flying is now smoother, NPCs can pathfind downwards easier while flying. 2022-02-18 03:34:20 -06:00
luisc 3d1caf494b Small fix to min XP and max XP text fields in NPC inventory menu 2022-02-16 12:57:46 -06:00
luisc 18e02461a6 Added misspelled cancel functions to player & forge events, and correctly spelled cancel functions to npc events 2022-02-06 12:39:07 -06:00
Luis C.M 6bfbffb0e6 Merge branch 'KAMKEEL:master' into master 2022-02-05 23:58:11 -06:00
KAMKEEL e42c4cab7e Update ScriptLivingBase.java 2022-02-05 20:35:44 -05:00
luisc 47f41ff5b7 Added custom kill types 2022-02-02 22:11:49 -06:00
KAMKEEL 01e568d0c7 Remove More Print Statements 2022-02-02 19:41:34 -05:00
KAMKEEL 2a4ace286e Quick Patch 2022-02-02 19:25:17 -05:00
Kamron Vaswani 79ef0e07a1 Merge pull request #33 from c0508383/master
Removed println statement please forgive me oh god
2022-02-02 19:22:35 -05:00
luisc 7e0ff3c836 Removed println statement please forgive me oh god 2022-02-02 18:21:08 -06:00
KAMKEEL 0c4ead5752 Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev 2022-02-02 16:20:17 -05:00
KAMKEEL 5d39c5b356 Fixed Disable Block Error 2022-02-02 16:20:11 -05:00
Kamron Vaswani 19ccdd60d2 Merge pull request #32 from c0508383/master
Bug fixes & GUI rotations
2022-02-02 15:43:23 -05:00
luisc d3145f4868 Added config for how often a player's quests are checked for completion. 2022-02-02 07:53:42 -06:00
luisc 70536de655 Removed checkQuestCompleted from ScriptPlayer, now redundant with new quest checks that happen periodically. 2022-02-02 07:21:45 -06:00
luisc 1ebf747302 Optimized NBT access of player data when checking quest completion, player data variable is passed down to lower functions.
Player's quests are checked for completion every couple seconds now.
2022-02-02 07:18:33 -06:00
luisc 632e92f82e Added set/getPitch to ScriptEntity 2022-02-01 05:10:38 -06:00
luisc 90ca1a0200 Added isAirborne() function to ScriptEntity 2022-02-01 02:30:50 -06:00
luisc 9109c134c1 Added more general setMotion function with x y and z parameters. 2022-01-31 23:59:15 -06:00
luisc 1af875aea9 Fixed concurrent modification bug with NPC tasks. 2022-01-31 23:01:52 -06:00
luisc 7de585843d Added get/setHunger, and get/setSaturation functions for ScriptPlayer.
The player KeyPressed event now sends a list of keys that are currently pressed by the player.
2022-01-31 20:16:00 -06:00
luisc 67c83b1ce9 Added rotation for custom GUI lines, labels, and textured rectangles 2022-01-31 15:39:21 -06:00
Kamron Vaswani bc54e8cd7b Merge pull request #31 from c0508383/master
Increased NPC Inventory & Other Additions.
2022-01-31 16:27:15 -05:00
luisc 83e13285f9 Added rotation to overlay components, and color codes to overlay labels 2022-01-31 14:51:06 -06:00
luisc 3be088c4cc Moved OpenGL lines to within the loop that renders each component, fixing some weird alpha errors. 2022-01-30 22:58:12 -06:00
luisc 54fadbe63f Implemented label, alpha, and formatting for Custom GUI labels. 2022-01-30 22:49:03 -06:00
luisc da3b04e78e Implemented MC chat formatting for color codes: &l, &m, &r, &o, and &k all affect overlay labels. 2022-01-30 22:41:55 -06:00
luisc e7a19264b2 Added alpha and style options for overlay labels. 2022-01-30 14:22:29 -06:00
luisc 966ab4bf72 Custom Overlays and GUIs now properly set alpha values for some components. 2022-01-30 13:29:00 -06:00
luisc e5e1aa1972 Made color and alpha components global among ScriptGui classes. 2022-01-30 05:20:45 -06:00
luisc be61bd4e17 Made color and alpha components global among ScriptOverlay classes. 2022-01-30 04:33:00 -06:00
luisc 534f716991 Implemented Scripted Overlays which stay on the player's screen. Overlays persist in the client, and can be removed from the screen as well. 2022-01-30 04:05:01 -06:00
luisc 8b24dad211 Added Custom GUI Lines, with configurable thickness & color. Draws a line between one point defined by (x1,y1), and another defined by (x2,y2) 2022-01-28 03:21:00 -06:00