Commit Graph

  • 8919a182c5 Added removeTags() function to ScriptItemStack and isCustomGUI function to ScriptContainer luisc 2022-01-12 04:54:07 -06:00
  • 6b9cfb9d25 Implemented custom GUIs. luisc 2022-01-12 04:44:08 -06:00
  • d50f51e208 Added handler support to NPC API. luisc 2022-01-10 15:21:48 -06:00
  • 69f96519dc Fixed forge events registering twice. luisc 2022-01-10 12:37:26 -06:00
  • 7808e4a433 getTag() and hasTag() functions from ScriptItemStack no longer write the item stack NBT tag on call. luisc 2022-01-09 17:50:36 -06:00
  • d74a1f2bee Added ScriptBlockPos functionality with get/setPos to ScriptEntity luisc 2022-01-04 03:50:50 -06:00
  • c3541df1dc Fix to getFormLevel() in ScriptDBCPlayer luisc 2022-01-04 00:06:48 -06:00
  • 32792e7d6f Added updateClient() function to ScriptNpc. luisc 2022-01-03 21:30:38 -06:00
  • 73db2da124 Fixed flying not working in small enclosed spaces. luisc 2022-01-03 15:50:31 -06:00
  • 6459e7fe2a Added solid render option for bodywear. luisc 2022-01-02 18:13:01 -06:00
  • a32db79a0b Added solid render option for bodywear luisc 2021-12-30 08:27:04 -06:00
  • de5f119fd7 Added setJob and setRole functions to ScriptNpc luisc 2021-12-29 22:34:51 -06:00
  • b330678104 Added several projectile functions to ScriptNpc. luisc 2021-12-29 17:17:06 -06:00
  • e6f97784ff Added get/setRotationType to ScriptNpc. Added get/setMotion for x, y, z components to ScriptEntity. Fixed an NPC wand crash. luisc 2021-12-29 16:22:05 -06:00
  • e676c808e3 Fixed getFormLevel not working when player form NBT is "pty". ScriptBlock now correctly sets its tile field, allowing players to access blocks as chests, crates, etc. luisc 2021-12-26 21:08:35 -06:00
  • e5edbe002e Registered forge events on both MinecraftForge.EVENT_BUS and FMLCommonHandler.instance().bus(). luisc 2021-12-23 10:26:46 -06:00
  • ce9b9fb59d Merge remote-tracking branch 'origin/master' luisc 2021-12-22 03:34:06 -06:00
  • c8f6a24baf Added command forge event luisc 2021-12-22 03:33:50 -06:00
  • 2743fa17d8 Added command forge event luisc 2021-12-22 03:30:01 -06:00
  • 5409e4e924 Beta 1.4 1.4-beta KAMKEEL 2021-12-21 23:57:35 -05:00
  • 6573970840 Update build.gradle KAMKEEL 2021-12-21 23:55:10 -05:00
  • efdd1d6679 Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev KAMKEEL 2021-12-21 23:52:54 -05:00
  • 4cca8e562c Update Build Gradle KAMKEEL 2021-12-21 23:51:36 -05:00
  • 4c31236590 Merge pull request #18 from c0508383/master Kamron Vaswani 2021-12-21 23:51:07 -05:00
  • b62149d5f6 Merge branch 'dev' into master Kamron Vaswani 2021-12-21 23:50:51 -05:00
  • ff810cbc8d Full console output is now shown again for script errors. luisc 2021-12-20 17:03:54 -06:00
  • 69d4fb20ff Modified client and server packet sending a little bit for player and forge scripts. luisc 2021-12-20 16:57:05 -06:00
  • 953f6e0459 Fixed server-side lag caused by player events. THIS IS BIG. luisc 2021-12-18 08:34:30 -06:00
  • 1a78b2dad7 Timers are only updated if a timer exists for a player. luisc 2021-12-17 17:30:50 -06:00
  • d46d0aba7e Player events and Forge events run in their own separate buses without redundant registering. luisc 2021-12-17 15:14:52 -06:00
  • 03ee733620 Forge tick events only run if they are in the starting phase. luisc 2021-12-17 14:26:52 -06:00
  • 7d94e0e210 Removed forge chunk and terrain gen events. luisc 2021-12-17 08:25:02 -06:00
  • f03516b00f Fixed console and console spam with scripted player events. luisc 2021-12-17 08:10:21 -06:00
  • 23384d1d67 Fixed some server-side lag caused by player events. Player ticks now execute every 10 MC ticks. luisc 2021-12-16 21:54:05 -06:00
  • 6bdc68337c Revert "Made player script implementation closer to that of 1.12." luisc 2021-12-16 04:05:05 -06:00
  • 3a9789b3fd Made player script implementation closer to that of 1.12. luisc 2021-12-16 02:53:17 -06:00
  • 69b7a9aab4 Fixed errors in remove and clear functions for bonusAttribute in ScriptDBCPlayer luisc 2021-12-15 06:46:27 -06:00
  • 9d9c481bdd Added alternative bonusAttribute function for just get remove and clear, as well as dedicated functions for all bonus attribute functions. luisc 2021-12-15 06:19:16 -06:00
  • 98d2d943ae Added bonusAttribute function, which works the same as the command. luisc 2021-12-15 05:43:07 -06:00
  • e9a4471cd2 Added getSkills and setSkills functions to ScriptDBCPlayer luisc 2021-12-15 03:19:34 -06:00
  • 934d5a69d6 Added getFormLevel and setFormLevel to ScriptDBCPlayer luisc 2021-12-15 03:14:48 -06:00
  • 12cb6a2937 Added blocking() function to ScriptPlayer to check whether the player is blocking. luisc 2021-12-15 00:02:27 -06:00
  • cad275e845 Added isBlocking, set/getHairCode, set/getExtraCode, and getInventory functions to ScriptDBCPlayer luisc 2021-12-14 21:41:57 -06:00
  • 816445bccd Script error output shortened to just the error description and line number. luisc 2021-12-13 22:51:33 -06:00
  • cf91d8638f Fixed getDBCPlayer not returning a DBC Player instance. luisc 2021-12-13 18:33:20 -06:00
  • 03395ad750 Added getWorld() function to ScriptEntity. luisc 2021-12-13 16:47:15 -06:00
  • f2da93451f Re-added hasEnchant, addEnchant, setAttribute, getAttribute, hasAttribute, getLore, and setLore to ScriptItemStack after they were lost in a commit A LONG TIME AGO luisc 2021-12-13 03:11:24 -06:00
  • 00557df9a7 Fixed players being able to push NPCs around. luisc 2021-12-13 00:16:06 -06:00
  • 541958b630 Fixed "world" keyword in for NPC scripting and API.getIWorld not returning the same instance. luisc 2021-12-12 23:43:44 -06:00
  • eac3d2c214 Added getSpeed() and setSpeed(speed) functions to ScriptNpc luisc 2021-12-12 23:10:55 -06:00
  • ba0f21dc26 Revert "Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource." luisc 2021-12-11 08:41:54 -06:00
  • 743cdb9db7 Revert "Fixed powered texture not showing up when changing NPC model attributes." luisc 2021-12-11 08:38:38 -06:00
  • fc1c16032f Added RGB and alpha powered texture modifiers: luisc 2021-12-10 00:08:47 -06:00
  • b7d2dab905 Added parameters for texture translation when the NPC is powered, namely npc.display.poweredTranslateX, poweredTranslateY, and poweredTranslateZ, which can all be changed by setPoweredXYZ(x,y,z), and gotten with getPoweredX(), getPoweredY(), and getPoweredZ(). luisc 2021-12-09 23:37:04 -06:00
  • 9560228ba8 Fixed powered texture not showing up when changing NPC model attributes. luisc 2021-12-09 23:24:36 -06:00
  • ba4bf107b5 Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource. luisc 2021-12-08 23:29:08 -06:00
  • 81881e6e19 Reset aggro range to Integer.MAX_VALUE. Sustainable aggro ranges seem to correlate to client/server RAM, and people should decide what max range is suitable for their client/server. luisc 2021-12-08 20:52:39 -06:00
  • 909f69575a Set max aggro range to 100. luisc 2021-12-08 20:46:02 -06:00
  • 34f6f670eb Y velocity when calling entity.knockback() is no longer decreased drastically. luisc 2021-12-08 17:48:35 -06:00
  • 8c602c4d16 Adjusted floating: NPCs don't float when they're knocked back or hurt. luisc 2021-12-08 17:43:27 -06:00
  • d66f532643 Made entity field in FlyingMoveHelper final luisc 2021-12-08 15:50:58 -06:00
  • d37e986006 Fixed NPCs bobbing in the air when flying. luisc 2021-12-08 15:34:41 -06:00
  • 29db4bfe33 Fixed flying aggro range now working for larger aggro ranges luisc 2021-12-08 06:25:28 -06:00
  • 90eec7a57b Added GUI fields for setting flying properties of NPCs. Updated en_lang file to add GUI texts. luisc 2021-12-08 05:26:32 -06:00
  • 94c7df410b Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity() luisc 2021-12-08 04:50:23 -06:00
  • c2564de470 NPCs properly stay floating when not navigating and in the air. luisc 2021-12-08 04:41:41 -06:00
  • 2147bd00d0 Pathing classes for NPC flying added. NPCs can now follow tactical variants while flying, and their pathing is a LOT better. luisc 2021-12-08 04:00:28 -06:00
  • 922708bf97 Changed npc field in ScriptNpc to EntityNPCInterface luisc 2021-12-07 23:52:57 -06:00
  • 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). luisc 2021-12-07 03:57:57 -06:00
  • 12333de3a1 knockback() function for ScriptEntity now *only* knocks the entity back instead of hitting it. luisc 2021-12-06 00:10:10 -06:00
  • 3cd1410c19 Added new ScriptDBCPlayer class for manipulating Dragon Block C attributes. luisc 2021-12-05 15:04:03 -06:00
  • 3c1bc30e44 Floor values are set for max health, combat regen, health regen, melee damage, and projectile damage when changing them now. luisc 2021-12-04 12:46:53 -06:00
  • cd5b4c0633 Removed shadow when rendering an NPC that shouldn't be visible to a specific player after using setVisibleTo(). luisc 2021-12-03 21:54:13 -06:00
  • f14bc107d3 Double clicking events in the hook list will now paste them into your code. More scripting functions added for NPCs. luisc 2021-12-03 21:13:56 -06:00
  • 547f5ab82d Container event spam when no container is open fixed. Fixed scripted player and forge events not launching after merging ScriptContainer and EventScriptContainer. luisc 2021-12-03 18:17:52 -06:00
  • 23686dc3b8 Enabled fly button in movement, and extended max values for several NPC attributes, converting some to floats and doubles. luisc 2021-12-03 00:49:10 -06:00
  • 44d4e74279 Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields. luisc 2021-12-01 18:46:48 -06:00
  • 17eb612fb8 Fixed NPC Script GUI error not saving/accessing scripts correctly. luisc 2021-12-01 17:42:48 -06:00
  • 72869e6a78 Consolidated EventScriptContainer and ScriptContainer into a single ScriptContainer class. NPCs are now able to fly when ai.movementType == 1. luisc 2021-12-01 15:31:05 -06:00
  • e8dd3e7ddc V 1.3.2 KAMKEEL 2021-11-29 23:15:42 -05:00
  • 3dd8a60702 Version Update 1.3.2 1.3.1 KAMKEEL 2021-11-29 22:28:54 -05:00
  • 71c81bce27 Merge branch 'dev' KAMKEEL 2021-11-29 22:26:48 -05:00
  • f39ed1fd37 Merge pull request #15 from c0508383/master Kamron Vaswani 2021-11-29 22:26:22 -05:00
  • f3ebf86b1e Critical fix to NBT loading when loading entities into chunks from a different version. luisc 2021-11-29 21:21:49 -06:00
  • f64399e40d Create Scripting_Documentation.pdf KAMKEEL 2021-11-28 23:48:16 -05:00
  • d79ec52994 Update Version 1.3 KAMKEEL 2021-11-26 04:37:33 -05:00
  • 3069488c54 Merge branch 'dev' KAMKEEL 2021-11-26 04:35:09 -05:00
  • 24790b7952 Add Disabling All Damage KAMKEEL 2021-11-26 04:34:47 -05:00
  • edabe3890f Merge pull request #13 from c0508383/master Kamron Vaswani 2021-11-26 04:06:37 -05:00
  • ecbfd7dab0 Fixed some console spam caused by a NullPointerException when checking scriptVisibleToPlayer(player) in ModelMPM luisc 2021-11-23 15:08:35 -06:00
  • d24422c3a1 Added setVisibleTo(player,visible) and isVisibleTo(player) to ScriptNpc luisc 2021-11-22 23:34:02 -06:00
  • 8a7f40189e Fixed redundant function calls for saving player data in NoppesUtilServer when using isGUIOpen(). Added getServerTime() to NpcAPI. luisc 2021-11-22 02:33:28 -06:00
  • 77c2897109 Added getAllServerPlayers, createItem & createEntityParticle to NPC API. Added getDimensionID() to ScriptWorld. luisc 2021-11-22 01:10:27 -06:00
  • d5c13ae65f Fixed scripted particle texture replacing in-world vanilla particle effects while alive. luisc 2021-11-20 13:12:21 -06:00
  • d2fe832508 Removed playerLevel parameter from PlayerData luisc 2021-11-18 01:16:11 -06:00
  • 03e4400b2e Small custom particle null pointer error fix luisc 2021-11-18 01:13:42 -06:00
  • 0d807b36d9 Added isGUIOpen() function, and setPosition function with a dimensionId parameter to ScriptPlayer. luisc 2021-11-16 10:41:04 -06:00
  • 27b88c1fce Player key events now detect key presses as well, not just releases. luisc 2021-11-13 13:32:33 -06:00
  • 40b39d3b20 Player key and mouse scripts now execute even when the player has a GUI open. luisc 2021-11-13 12:52:21 -06:00
  • 70f1ff2613 Added API to NPC script engine. luisc 2021-11-10 02:21:03 -06:00