Commit Graph

73 Commits

Author SHA1 Message Date
fullwall 3d3de6576d Use onPreSpawn event to avoid 'FOUC' in armorstands. Fix invulnerable ticks being reduced too quickly. 2021-09-23 14:12:44 +08:00
fullwall db825cce72 Add rough impl of SneakTrait 2021-09-20 20:59:54 +08:00
fullwall 3d85ad4ea8 Add /npc chunkload 2021-05-07 01:46:59 +08:00
fullwall c7789e5073 Remove extra NPCDespawnEvent 2021-04-05 16:38:10 +08:00
mariaum 0b41b24425
Fix blank names for a few seconds after spawning a npc. (#2477) 2021-02-22 19:27:06 +08:00
fullwall cc5c132347 Arm swing on player sees player-npc, not spawn 2020-12-28 08:24:30 +08:00
fullwall 284565598e Trial a new method for fixing spawn body yaw, fix /npc rename not applying hologram name immediately 2020-12-27 20:54:21 +08:00
fullwall 0b79c392b0 Some plugins rely on specific metadata ordering 2020-11-27 23:31:21 +08:00
fullwall 3c2d0625b4 Clone spawn location more, minor cleanup 2020-11-17 10:15:52 +08:00
fullwall 0add70d397 Add spawnreason to debug 2020-11-17 09:09:52 +08:00
fullwall 12b796afa3 Add extra spawning debug 2020-10-12 21:58:26 +08:00
fullwall 9e0b8d1c5a Fix hologram names with non-player NPCs 2020-10-08 21:06:45 +08:00
fullwall 7450c4db45 Use new getOrAddTrait methodf 2020-09-14 17:57:58 +08:00
fullwall 2a8f54f2d6 Move movement code into playerTick to avoid inter-world crashes 2020-07-27 17:14:57 +08:00
fullwall 62e44c25ed Armor stands shouldn't have holograms even if the setting is enabled 2020-07-22 01:30:07 +08:00
fullwall c8898b52e3 Add always-use-name-holograms 2020-07-18 19:08:10 +08:00
fullwall 57373a68a3 Don't teleport if despawned 2020-07-15 23:50:48 +08:00
fullwall c60e18bd87 teleport should check cross-world 2020-07-11 00:44:40 +08:00
fullwall f3986ec9cc Update custom name status immediately on spawn 2020-07-11 00:38:27 +08:00
fullwall 429264dbf0 Fix Boolean parsing issue 2020-07-10 12:28:39 +08:00
fullwall 652a68a79d Respect name visibility properly 2020-07-10 12:19:29 +08:00
fullwall ea20cdb21e Fix duplication of name hologram 2020-07-09 23:37:45 +08:00
fullwall b5e59585e3 If NPC is already despawned count that as a valid despawn 2020-07-08 19:26:00 +08:00
fullwall ed141532a8 Don't store hashcode goal selector 2020-07-06 23:28:14 +08:00
fullwall 0a58215541 Use holograms instead of scoreboard for names 2020-07-06 16:37:34 +08:00
fullwall c7ab1a8407 Copy getStoredLocation/getLocation 2020-06-28 18:05:04 +08:00
fullwall d8b3b1c2c0 Add event to spawning debug 2020-06-28 17:36:24 +08:00
fullwall 0b922011bd Rework tablist for recent versions 2020-05-12 23:12:39 +08:00
fullwall 5e2a7efb9e Revert view distance tracking code 2020-05-12 22:33:54 +08:00
fullwall 0498353751 Update tablist after teleport 2020-05-12 22:13:22 +08:00
fullwall e6cf9b8b08 Clean up multiworld permission check for /npc tphere and don't respawn NPCs who were spawned for another reason 2020-05-04 16:21:34 +08:00
Alex "mcmonkey" Goodwin 2c24671ae3
simplify scoreboard patch to be 100% packet based (#2129)
* simplify scoreboard patch to be 100% packet based

which fixes edge case client errors

* fix edge cases of respawning and multinpc boards
2020-05-01 17:49:25 +08:00
fullwall 16c418415b Cleanup, reduce number of packets per packet update cycle 2020-05-01 17:49:03 +08:00
fullwall 8336fe1b7c Fix load bug in body yaw 2020-04-30 23:11:45 +08:00
fullwall 8109a90440 Fix saving of body vs head yaw 2020-04-30 19:11:56 +08:00
fullwall 32429f140d Run clientside player ticking at a different time 2020-04-29 20:56:39 +08:00
fullwall fe8eb4e85d Change how npc looking works 2020-04-25 16:57:31 +08:00
fullwall 8779062a82 Initialise location cache 2020-03-28 01:51:53 +08:00
fullwall 4cc3c40c87 SpawnReason.COMMAND should try to load the destination spawn location 2020-03-28 01:20:20 +08:00
fullwall 947f4301f3 Set head yaw when teleporting NPCs 2020-03-28 01:14:11 +08:00
fullwall f0000cdf3b Allow placeholder API in /npc create, fix float persistence bug 2020-03-27 18:50:14 +08:00
fullwall 1cd8e1913e Add head yaw persistence 2020-03-21 18:30:52 +08:00
fullwall 1e507a1d57 Use old logic for glowing colour in 1.12, remove unnecessary respawn in /npc rename for non-Player NPCs 2020-03-21 15:19:46 +08:00
fullwall 496a4cbb3b Use Minecraft's no gravity logic and enable it for all default flying NPCs 2020-03-02 14:51:54 +08:00
fullwall 95ab688877 Fix shulker color setting 2020-03-01 15:29:47 +08:00
fullwall d64876dd65 Temp test fix for spawning 2019-10-03 21:33:06 +08:00
fullwall d72b6ef9e8 Change isSpawned API to use old valid logic. May fix spawning issues. 2019-10-03 13:14:20 +08:00
fullwall 51984323dc Fix rename issue 2019-07-23 22:04:36 +08:00
fullwall 673ee02542 Migrate glowing stuff to new scoreboard trait, add /npc scoreboard 2019-07-12 15:39:38 +08:00
fullwall f767c2bbd1 Fix /npc glowing --color 2019-07-12 14:48:10 +08:00