Commit Graph
14 Commits
Author SHA1 Message Date
luisc 9109c134c1 Added more general setMotion function with x y and z parameters. 2022-01-31 23:59:15 -06:00
luisc d74a1f2bee Added ScriptBlockPos functionality with get/setPos to ScriptEntity 2022-01-04 03:50:50 -06:00
luisc e6f97784ff Added get/setRotationType to ScriptNpc. Added get/setMotion for x, y, z components to ScriptEntity. Fixed an NPC wand crash. 2021-12-29 16:22:05 -06:00
luisc 03395ad750 Added getWorld() function to ScriptEntity. 2021-12-13 16:47:15 -06:00
luisc 34f6f670eb Y velocity when calling entity.knockback() is no longer decreased drastically. 2021-12-08 17:48:35 -06:00
luisc c2564de470 NPCs properly stay floating when not navigating and in the air. 2021-12-08 04:41:41 -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 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 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