Commit Graph
3038 Commits
Author SHA1 Message Date
luisc 94c7df410b Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity() 2021-12-08 04:50:23 -06:00
luisc c2564de470 NPCs properly stay floating when not navigating and in the air. 2021-12-08 04:41:41 -06:00
luisc 2147bd00d0 Pathing classes for NPC flying added. NPCs can now follow tactical variants while flying, and their pathing is a LOT better. 2021-12-08 04:00:28 -06:00
luisc 922708bf97 Changed npc field in ScriptNpc to EntityNPCInterface 2021-12-07 23:52:57 -06:00
luisc 43b3241801 Implemented path navigator and move helper for flying NPCs (npc.getNavigator() and npc.getMoveHelper() used to return the default navigator and move helper, added override function).
Improved Flying AI getting stuck when trying to get over a block towards the enemy.
2021-12-07 03:57:57 -06:00
luisc 12333de3a1 knockback() function for ScriptEntity now *only* knocks the entity back instead of hitting it.
Flying NPC's get knocked back properly, and their vertical speed has been increased.

Flying NPC's vertical flying speed can be changed by npc.setFlySpeed(double speed) from ScriptNpc.
2021-12-06 00:10:10 -06:00
luisc 3cd1410c19 Added new ScriptDBCPlayer class for manipulating Dragon Block C attributes.
Flying NPCs no longer chase you down if you're dead, or if they're dead.
2021-12-05 15:04:03 -06:00
luisc 3c1bc30e44 Floor values are set for max health, combat regen, health regen, melee damage, and projectile damage when changing them now. 2021-12-04 12:46:53 -06:00
luisc cd5b4c0633 Removed shadow when rendering an NPC that shouldn't be visible to a specific player after using setVisibleTo(). 2021-12-03 21:54:13 -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 23686dc3b8 Enabled fly button in movement, and extended max values for several NPC attributes, converting some to floats and doubles.
NPCs fly with speed based on their movement speed now.
2021-12-03 00:49:10 -06:00
luisc 44d4e74279 Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields. 2021-12-01 18:46:48 -06:00
luisc 17eb612fb8 Fixed NPC Script GUI error not saving/accessing scripts correctly. 2021-12-01 17:42:48 -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 e8dd3e7ddc V 1.3.2
This is just a small change to the way the
pedestal works.
2021-11-29 23:15:42 -05:00
KAMKEEL 3dd8a60702 Version Update 1.3.2 1.3.1 2021-11-29 22:28:54 -05:00
KAMKEEL 71c81bce27 Merge branch 'dev' 2021-11-29 22:26:48 -05:00
Kamron Vaswani f39ed1fd37 Merge pull request #15 from c0508383/master
Critical fix to NBT loading when loading entities into chunks from a …
2021-11-29 22:26:22 -05:00
luisc f3ebf86b1e Critical fix to NBT loading when loading entities into chunks from a different version. 2021-11-29 21:21:49 -06:00
KAMKEEL f64399e40d Create Scripting_Documentation.pdf 2021-11-28 23:48:16 -05:00
KAMKEEL d79ec52994 Update Version 1.3 2021-11-26 04:37:33 -05:00
KAMKEEL 3069488c54 Merge branch 'dev' 2021-11-26 04:35:09 -05:00
KAMKEEL 24790b7952 Add Disabling All Damage
Cleaned Up some Lang Code
Added Disabling All Damage to Stats
Moved Disable Damage from Resistances to Stats
Added Disable Damage Message
2021-11-26 04:34:47 -05:00
Kamron Vaswani edabe3890f Merge pull request #13 from c0508383/master
Scripting Update Approved
2021-11-26 04:06:37 -05:00
luisc ecbfd7dab0 Fixed some console spam caused by a NullPointerException when checking scriptVisibleToPlayer(player) in ModelMPM 2021-11-23 15:08:35 -06:00
luisc d24422c3a1 Added setVisibleTo(player,visible) and isVisibleTo(player) to ScriptNpc 2021-11-22 23:34:02 -06:00
luisc 8a7f40189e Fixed redundant function calls for saving player data in NoppesUtilServer when using isGUIOpen(). Added getServerTime() to NpcAPI. 2021-11-22 02:33:28 -06:00
luisc 77c2897109 Added getAllServerPlayers, createItem & createEntityParticle to NPC API. Added getDimensionID() to ScriptWorld. 2021-11-22 01:10:27 -06:00
luisc d5c13ae65f Fixed scripted particle texture replacing in-world vanilla particle effects while alive. 2021-11-20 13:12:21 -06:00
luisc d2fe832508 Removed playerLevel parameter from PlayerData 2021-11-18 01:16:11 -06:00
luisc 03e4400b2e Small custom particle null pointer error fix 2021-11-18 01:13:42 -06:00
luisc 0d807b36d9 Added isGUIOpen() function, and setPosition function with a dimensionId parameter to ScriptPlayer. 2021-11-16 10:41:04 -06:00
luisc 27b88c1fce Player key events now detect key presses as well, not just releases. 2021-11-13 13:32:33 -06:00
luisc 40b39d3b20 Player key and mouse scripts now execute even when the player has a GUI open. 2021-11-13 12:52:21 -06:00
luisc 70f1ff2613 Added API to NPC script engine. 2021-11-10 02:21:03 -06:00
luisc 6b2a9d92b1 Added hasCollided() function to ScriptEntity. 2021-10-28 16:54:41 -05:00
luisc 2ffa9bfcfa Added setImmune() function to ScriptEntity. 2021-10-28 16:46:09 -05:00
luisc 27dce4a90a Small parameter adjustment to ScriptLivingBase.hurt() 2021-10-25 01:07:31 -05:00
luisc 1478841098 Added hurt functions to ScriptLivingBase 2021-10-25 00:58:03 -05:00
luisc 6fcf566ef7 Made setRotation work for players, with yaw and pitch parameters. 2021-10-24 23:33:22 -05:00
luisc 18aa2d099f Added updatePlayerInventory to ScriptPlayer 2021-10-24 01:53:20 -05:00
luisc b068c76fc8 Fixed some forge events not working from being registered on the wrong event bus. 2021-10-23 02:43:28 -05:00
luisc a29058d696 Fixed timers on the server-side. 2021-10-22 02:22:45 -05:00
luisc d1c4adf371 ScriptEntity instances are now properly retrieved in event scripts 2021-10-21 22:14:12 -05:00
luisc 4de969f6c9 Implemented scripted timers for players and NPCs. 2021-10-20 23:04:52 -05:00
luisc a993c8feff Fixed forge scripts on the server side. getIEntity() now correctly returns an IPlayer when given a player as a parameter. 2021-10-20 20:27:42 -05:00
luisc 5515f5ef83 Fixed executeCommand() function for scripting API on the server-side. 2021-10-19 19:49:43 -05:00
luisc 8b710ed520 Fixed executeCommand() function for scripting API. 2021-10-19 16:59:09 -05:00
luisc b15f5221fd Added getAllNbt function to ScriptEntity. 2021-10-19 14:48:59 -05:00