3042 Commits

Author SHA1 Message Date
Wuzzy
ba3bef1368 Fix villager moving after respawn 2024-03-28 23:19:45 +01:00
Wuzzy
987c9a2a8b Don't check villager bed every step 2024-03-28 23:06:04 +01:00
Wuzzy
b87a932695 Add missing staticdata in villager mob items 2024-03-28 22:53:34 +01:00
Wuzzy
f7d9498338 Add back the villager professions in Creative 2024-03-28 22:34:10 +01:00
Wuzzy
4367c5d2d7 Re-activate villager day jobs again 2024-03-28 20:10:27 +01:00
Wuzzy
63c27bfabe Decrease villager jump strength 2024-03-28 18:29:39 +01:00
Wuzzy
280dec12d7 Villagers avoid more blocks 2024-03-28 18:16:18 +01:00
Wuzzy
4e0c6bc869 Pathfinder: Fix jumping on non-walkable blocks 2024-03-28 18:16:05 +01:00
Wuzzy
09f665614e Pathfinder: Make initial drop collide with climb 2024-03-28 15:25:23 +01:00
Wuzzy
657a4320a9 Pathfinder: Simulate initial drop 2024-03-28 15:12:59 +01:00
Wuzzy
f92172f6b9 Pathfinder: Refactor drop check 2024-03-28 15:04:54 +01:00
Wuzzy
bfaadab4ea Walk path more precisely 2024-03-28 14:54:34 +01:00
Wuzzy
61b6b2f192 Don't allow villager to open door if far away 2024-03-28 14:07:46 +01:00
Wuzzy
858ede33ab Handle gravity separately for villager 2024-03-28 14:03:47 +01:00
Wuzzy
598f2fb732 Teach villagers how to climb ... kinda 2024-03-28 13:30:34 +01:00
Wuzzy
516485ccad Villager now takes door axis into account 2024-03-28 10:35:22 +01:00
Wuzzy
38694cc7d9 Add door.get_free_axis 2024-03-28 10:11:21 +01:00
Wuzzy
08a3ad2da6 Villagers: Add path point after opening door 2024-03-28 10:04:40 +01:00
Wuzzy
ca0a7a25ac Teach villagers to traverse multiple doors 2024-03-28 09:15:36 +01:00
Wuzzy
0fd581f01e Mobs: Add reference to task (queue) to (micro)task 2024-03-27 15:10:41 +01:00
Wuzzy
8f6d293446 Calculate villager bed path asynchronously 2024-03-26 21:14:08 +01:00
Wuzzy
96e4f99889 Turn pathfinder microtask template to follow path 2024-03-26 18:59:50 +01:00
Wuzzy
ef66bc5bb2 Remove find_path_advanced in villager.lua 2024-03-26 18:24:45 +01:00
Wuzzy
d632829cf2 Teach villager to use the new pathfinder 2024-03-26 18:19:27 +01:00
Wuzzy
45d6db7c7b Add new advanced pathfinder mod 2024-03-26 16:57:34 +01:00
Wuzzy
7ae5377498 Fix villager texture not being randomized 2024-03-24 21:37:07 +01:00
Wuzzy
eb30490dff Teach villagers to open and walk through doors 2024-03-24 13:26:31 +01:00
Wuzzy
5542edf5d9 Prevent spawning legacy entities with /spawnentity 2024-03-24 12:30:20 +01:00
Wuzzy
0ecd9af56f Unify the 5 villager types to one entity 2024-03-24 12:08:13 +01:00
Wuzzy
f581f8fbdd Villager: Better neighbor check for work nodes 2024-03-24 08:35:33 +01:00
Wuzzy
d65713c8db Villagers might also look for nodes not under air 2024-03-24 08:14:50 +01:00
Wuzzy
8676a3ace7 Villager go to blocks based on profession 2024-03-24 01:40:55 +01:00
Wuzzy
be72fd8218 Villagers go to farms at day 2024-03-23 22:27:27 +01:00
Wuzzy
3dc4bc6554 Fix blast sometimes only destroying half door 2024-03-23 18:31:31 +01:00
Wuzzy
b3cd8e9226 Fix door open/close sounds being swapped 2024-03-23 18:12:05 +01:00
Wuzzy
6adf6cbb15 Add door.is_open 2024-03-23 18:11:27 +01:00
Wuzzy
4ea21a7d3e Flooding painted door now drops as unpainted 2024-03-23 17:50:51 +01:00
Wuzzy
4d6217a37b Add door.toggle_door 2024-03-23 17:49:18 +01:00
Wuzzy
b57f2f4d56 No villager speech when dying 2024-03-23 16:40:46 +01:00
Wuzzy
29f9afb6eb Move villager speech into new file 2024-03-23 16:35:27 +01:00
Wuzzy
90d1c041cd Mob pathfinder: Improve stuck detection 2024-03-23 15:54:25 +01:00
Wuzzy
30aa9d6477 Adjust villager walk and jump speeds 2024-03-23 15:38:40 +01:00
Wuzzy
eecfc49b57 Mob pathfinder: Add jumping and abort if stuck 2024-03-23 15:38:04 +01:00
Wuzzy
58c6cc210a More mob pathfinder improvements 2024-03-23 14:40:44 +01:00
Wuzzy
d9b7ff4dd0 More mob pathfinder tweaks 2024-03-23 14:09:52 +01:00
Wuzzy
812abbee14 Teach villager to walk to home bed ... kinda 2024-03-23 13:46:30 +01:00
Wuzzy
9c81b1e78a Villagers now search for a home bed 2024-03-23 13:19:19 +01:00
Wuzzy
1cdd1e2081 Add bed.is_valid_bed; make bed API public for real 2024-03-23 11:56:45 +01:00
Wuzzy
eef9bbc5d5 Fix crash if mob walks on unknown node 2024-03-23 10:39:39 +01:00
Wuzzy
d45d088190 Move mobs variable to correct file 2024-03-23 08:20:39 +01:00