luisc
9560228ba8
Fixed powered texture not showing up when changing NPC model attributes.
2021-12-09 23:24:36 -06:00
luisc
ba4bf107b5
Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource.
...
Sample code:
npc.setPoweredTexture("customnpcs:textures/entity/npc_armor.png");
2021-12-08 23:29:08 -06:00
luisc
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.
2021-12-08 20:52:39 -06:00
luisc
909f69575a
Set max aggro range to 100.
2021-12-08 20:46:02 -06:00
luisc
90eec7a57b
Added GUI fields for setting flying properties of NPCs. Updated en_lang file to add GUI texts.
2021-12-08 05:26:32 -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
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
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
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
d5c13ae65f
Fixed scripted particle texture replacing in-world vanilla particle effects while alive.
2021-11-20 13:12:21 -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
b068c76fc8
Fixed some forge events not working from being registered on the wrong event bus.
2021-10-23 02:43:28 -05:00
luisc
4de969f6c9
Implemented scripted timers for players and NPCs.
2021-10-20 23:04:52 -05:00
luisc
5515f5ef83
Fixed executeCommand() function for scripting API on the server-side.
2021-10-19 19:49:43 -05:00
luisc
f88cbb8b51
Server-side compatibility changes
2021-10-19 02:49:46 -05:00
luisc
bb1da8376d
Implemented 1.12 event scripting API.
2021-10-18 22:01:15 -05:00
luisc
feeef71b5a
Added more player events.
2021-10-18 20:50:54 -05:00
luisc
72f2c3c60a
Implemented global Forge events. Reorganized NPC API files.
2021-10-18 06:33:39 -05:00
luisc
c5ed7497c8
Added console output and correct script halting to scripted player events. Renamed PlayerScriptContainer to EventScriptContainer.
2021-10-17 16:11:29 -05:00
luisc
a9bce4a3e3
Fixed player script enabled button not working right on servers. Added more player events and a getDimension() method to ScriptPlayer. Set player scripts to be off by default.
2021-10-15 09:17:31 -05:00
KAMKEEL
2d70b0091b
Fix Custom Shields and Daggers
2021-10-14 00:08:05 -04:00
luisc
047552d9e5
Made constant BlockPos calculateLogBaseTwo calculation explicit, enabled player events by default.
2021-10-12 04:20:33 -05:00
luisc
6752f8baec
Implemented several more events for players, including a click event, key event, fall event, and the basic entity living hurt, killed, and kills events, among others.
2021-10-12 02:57:32 -05:00
luisc
6c8c7671b8
Implemented KeyPressed event.
2021-10-11 07:16:10 -05:00
luisc
1ee14920ff
Scripted player tick events are functional, GUI for player events is complete. Global player events run as they should now, just need to start implementing more of them.
2021-10-11 06:49:30 -05:00
luisc
6aa98aecf3
Work on Player Event Script GUIs
2021-10-02 08:47:13 -05:00
luisc
44bd1692d1
GUI's properly implemented, script data still needs work.
2021-10-01 01:17:12 -05:00
luisc
95d2814651
Backported GUI features and necessary classes from 1.12.
2021-09-30 21:44:30 -05:00
luisc
5a1c4757cf
Went down huge rabbit hole to attempt adding scripted events for players. Chock full of errors, trying to backport classes from the 1.12 version.
2021-09-30 00:56:49 -05:00
KAMKEEL
79339be79a
Bow Change
...
Attempting to Fix Custom Bows
2021-09-24 16:50:28 -04:00
luisc
f6d9149038
Undid removing screen darken from NPC dialogues.
2021-09-06 13:40:25 -05:00
luisc
50e3ae7f83
Removed screen darken from NPC dialogues.
2021-09-06 13:37:36 -05:00
luisc
b43d89f91e
Removed redundant/unused imports from EntityCustomFX
2021-09-06 13:36:28 -05:00
luisc
1c2534bfc4
Removed ModelPartData parameter from EntityCustomFX. Reverted ModelPartData to its original version, no longer storing particle attributes.
2021-09-06 13:33:09 -05:00
luisc
61ad3dc849
Removed ModelPartData parameter from EntityCustomFX. Reverted ModelPartData to its original version, no longer storing particle attributes.
2021-09-06 12:47:51 -05:00
luisc
6e9c693d49
Changed entity search method for custom particles to solely use entity IDs instead of entities near the closest player.
2021-09-06 12:28:14 -05:00
luisc
fbc22fdef2
Added Custom Particles for scripted entities that work on server and client sides.
2021-09-06 01:24:38 -05:00
luisc
2a378190ae
Added EntityCustomFX class, used for spawning custom particles on entities.
2021-09-05 21:53:58 -05:00
KAMKEEL
3727d1af7a
Added Flying Code / Corrected Hidden Parts not Saving
...
Added a ton of code regarding Flying doesn't work correctly. Please Uncomment them by searching for
Comment: // Fly Change
Fixed Hidden Parts not Saving
2021-07-10 00:48:03 -04:00
KAMKEEL
3a36be0ae4
Added MarkovNameGenerator, Added Disable Body Part Feature
...
Two New Features >>
+ Added Markov Name Generate
+ Corrected Hide Body Parts
2021-06-13 19:26:00 -04:00