luisc
34f6f670eb
Y velocity when calling entity.knockback() is no longer decreased drastically.
2021-12-08 17:48:35 -06:00
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
922708bf97
Changed npc field in ScriptNpc to EntityNPCInterface
2021-12-07 23:52: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
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
d24422c3a1
Added setVisibleTo(player,visible) and isVisibleTo(player) to ScriptNpc
2021-11-22 23:34:02 -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
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
a29058d696
Fixed timers on the server-side.
2021-10-22 02:22:45 -05:00
luisc
4de969f6c9
Implemented scripted timers for players and NPCs.
2021-10-20 23:04:52 -05:00
luisc
b15f5221fd
Added getAllNbt function to ScriptEntity.
2021-10-19 14:48:59 -05:00
luisc
40e738384f
Disabled invulnerability during knockback() for ScriptEntity.
2021-10-19 03:44:41 -05:00
luisc
f88cbb8b51
Server-side compatibility changes
2021-10-19 02:49:46 -05:00
luisc
15bfbcdbd1
Added storeAsClone function. Made some fields in Script Entity, NPC, and Player public because of the refactoring.
2021-10-18 07:02:19 -05:00
luisc
72f2c3c60a
Implemented global Forge events. Reorganized NPC API files.
2021-10-18 06:33:39 -05:00
luisc
8b6e84a8d4
Removed many unnecessary/redundant backported files. Focused only on classes that make events work.
2021-09-30 01:48:54 -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