78 Commits

Author SHA1 Message Date
Wuzzy
2d7cd908f5 Mobs microtasks: Call on_start before is_finished 2024-03-21 13:30:55 +01:00
Wuzzy
fcdc04374c Disable child tool for some mobs 2024-03-19 15:27:28 +01:00
Wuzzy
c53412d875 Re-implement random villager textures 2024-03-19 13:29:12 +01:00
Wuzzy
718bdefaa0 Mob API: Move internal functions to internal.lua 2024-03-18 20:20:47 +01:00
Wuzzy
4a11c0f125 Mobs: Fix on_die callback being called too late 2024-03-18 16:10:39 +01:00
Wuzzy
a4006464a1 Add mob tags 2024-03-18 15:04:47 +01:00
Wuzzy
ad86499e98 Split mob translations 2024-03-18 14:14:20 +01:00
Wuzzy
5514933e6b Refactor mob kill achievements and death callback 2024-03-12 18:08:33 +01:00
Wuzzy
cd87c0807f Add mob drop table probabilities 2024-03-12 17:11:50 +01:00
Wuzzy
5ab502896c Mob drop item speed with more precision 2024-03-12 16:54:51 +01:00
Wuzzy
ee1980b85d 'bomb has been defused' achievement works again 2024-03-12 00:19:55 +01:00
Wuzzy
6b3d0448d0 Disable mobs state debug 2024-03-11 22:32:46 +01:00
Wuzzy
1d1164059f Don't give 'Hunter' achievement for child w/o food 2024-03-11 14:25:35 +01:00
Wuzzy
363367565e Show basic mob state on nametag in debug mode 2024-03-11 12:32:07 +01:00
Wuzzy
c1ee4638d9 Fix dead mobs lying wrong on the ground 2024-03-11 11:40:16 +01:00
Wuzzy
65260e739d Despawn hostile mobs in only_peaceful_mobs mode 2024-03-08 17:24:16 +01:00
Wuzzy
00907c8669 Re-implement natural mobs spawning 2024-03-07 18:39:47 +01:00
Wuzzy
bd835b8fb2 Don't let boar follow player into danger 2024-03-07 13:13:32 +01:00
Wuzzy
d29ef0f683 Make Hunter achievement work again 2024-03-05 17:50:24 +01:00
Wuzzy
0ce984eaec Teach boar to not walk into dangerous nodes 2024-03-05 16:49:14 +01:00
Wuzzy
55979da23e Can't place mob into solid node 2024-03-04 17:43:10 +01:00
Wuzzy
428b4a88c6 Teach boar how to escape damaging nodes 2024-03-01 02:26:46 +01:00
Wuzzy
b4f41dbef4 Mobs: Move rp_mobs.scan_environment function 2024-02-23 21:51:04 +01:00
Wuzzy
0048d27e44 Fix bad child mob collisionbox offset if dying 2024-02-23 21:29:21 +01:00
Wuzzy
e771150d7a Sheep no longer drops wool when dying shorn 2024-02-23 21:16:36 +01:00
Wuzzy
97abefe1d3 Mob items are no longer stackable 2024-02-23 15:11:23 +01:00
Wuzzy
819186aeb3 Store mob metadata in mob items
Also add 'shorn sheep' item texture
2024-02-23 15:05:18 +01:00
Wuzzy
a4e15c6da4 Make damage texture modifier of player+mobs red 2024-02-23 01:29:37 +01:00
Wuzzy
e0e12967e9 Mobs: Scan environment when dying, too 2024-02-23 00:41:46 +01:00
Wuzzy
559d2afe3b Clear task queue debug display if mob is dying 2024-02-23 00:25:24 +01:00
Wuzzy
c397680e79 Remove an old mobs debug message 2024-02-23 00:19:48 +01:00
Wuzzy
53f60c6944 Fix dead mob collisionbox offset 2024-02-23 00:18:50 +01:00
Wuzzy
13841f6f73 Play 'disappear' sound when mob/player disappears 2024-02-23 00:08:49 +01:00
Wuzzy
91d5032b79 Add smoke poof particles after mob/player dies 2024-02-22 21:31:45 +01:00
Wuzzy
22e1f10cc3 Update mob dying documentation, fix crash 2024-02-22 19:49:50 +01:00
Wuzzy
9b0f58ee09 Add special dying status to mobs 2024-02-22 19:33:37 +01:00
Wuzzy
ca45b7c54f Add more mob sounds and document them 2024-02-16 16:18:39 +01:00
Wuzzy
d784744c89 Fix child mob keeping child texture if growing up 2024-02-16 15:16:18 +01:00
Wuzzy
3353a0660d Add texture for child boar 2024-02-16 15:07:02 +01:00
Wuzzy
b43748fb7f Fix mob child data not being saved correctly 2024-02-16 13:08:06 +01:00
Wuzzy
1422fb5a48 Mobs: Add basic swim physics for boar 2024-02-12 12:32:26 +01:00
Wuzzy
e189585cb3 Mobs: Add environment scan (WIP) 2024-02-10 18:20:11 +01:00
Wuzzy
a2bfe6f078 Mobs: Remove Physics subsystem, we do it by hand 2024-02-08 17:48:47 +01:00
Wuzzy
b8014fed47 Run mob task queues in same step, not sequentially 2024-02-06 23:11:49 +01:00
Wuzzy
57c62b953e Make boars walk in a random direction 2024-02-03 18:14:56 +01:00
Wuzzy
5b65182f73 Mobs: Add some physics vector functions 2023-11-30 21:05:39 +01:00
Wuzzy
e65e2849bc Mobs: Remove reason from damage and heal functions 2023-11-26 02:47:22 +01:00
Wuzzy
6f09d8dea5 Mobs: Fix double death sound 2023-11-26 02:39:33 +01:00
Wuzzy
b265478a7b Mobs: Fix crash if taking node damage 2023-11-26 02:38:48 +01:00
Wuzzy
a945ced1c6 Mobs: Update API docs 2023-11-26 00:50:32 +01:00