32 Commits

Author SHA1 Message Date
Jordan Irwin
f631d43e55
Use node groups to determine swimming & burning 2025-01-03 15:59:09 -08:00
Jordan Irwin
8eaed80f2c
Check attributes table before clearing nametag 2025-01-03 13:25:35 -08:00
Jordan Irwin
47b65a761f Fix getting mob definition when name prefixed with colon 2021-06-01 18:35:23 -07:00
Jordan Irwin
1000562ed3 Allow owned entities to be picked up by owners if spawnegg is registered 2021-05-25 00:08:31 -07:00
Jordan Irwin
d426f61098 Change setting key name 2021-05-24 22:52:31 -07:00
Jordan Irwin
490174ace9 Disable griefing unless "mobs_griefing" enabled 2021-05-24 22:28:09 -07:00
Jordan Irwin
b92b8f4ae6 Minor cleanup 2021-05-24 22:22:45 -07:00
Jordan Irwin
dbcdd3509e Add options to show nametags 2021-05-24 18:05:11 -07:00
Jordan Irwin
26d76dced9 Move settings into settings.lua 2021-05-23 23:33:21 -07:00
Jordan Irwin
c58f022570 Cleanup 2021-05-23 23:32:21 -07:00
Jordan Irwin
6d265d0040 'has_kockback' deprecated, use 'has_knockback' 2021-05-23 22:37:49 -07:00
Jordan Irwin
22465f7913 Allow setting custom on_death method 2021-05-23 22:33:57 -07:00
Jordan Irwin
20cd70e199 Reset entity's life timer when attacked 2021-05-19 12:23:42 -07:00
Jordan Irwin
bcaed4e448 Entity's lifetime doesn't expire in modes "follow" & "panic" 2021-05-19 12:23:08 -07:00
Jordan Irwin
5588702050 Don't update life timer if entity is owned 2021-05-19 12:22:15 -07:00
Jordan Irwin
cfba159dec Default hit sound can be disabled with "def.sounds.play_default_hit = false" 2021-05-19 12:07:24 -07:00
Jordan Irwin
1f7b586871 Play "hit" sound when entity is damaged by attacker...
New sound file: cmer_hit_01.ogg (CC0): https://opengameart.org/node/100746
2021-05-19 11:43:32 -07:00
Jordan Irwin
eb5c7a4ce1 Don't drop items when entity lifetime expires 2021-05-19 09:50:14 -07:00
Jordan Irwin
34e4bac3d5 Add nil check 2021-05-06 15:36:35 -07:00
Jordan Irwin
9a4a2a95fa Rename to "cmer" 2021-05-05 11:04:48 -07:00
Jordan Irwin
f8c69d5fb4 Fix nil check 2021-05-03 09:11:50 -07:00
Jordan Irwin
409f78cb83 Fix on_step in case current_pos is nil 2021-05-03 05:25:21 -07:00
Jordan Irwin
073a063472 Fix mob so doesn't die when tamed/owned 2021-05-03 05:24:49 -07:00
Jordan Irwin
f545afbabf Add owner attribute to static data 2021-05-03 03:54:13 -07:00
Jordan Irwin
c5ea2ed942 Convert leading spaces to tabs 2021-05-02 23:05:58 -07:00
Jordan Irwin
f27577609d Check for nil get_pos 2021-05-02 00:54:55 -07:00
Jordan Irwin
3fadf2bd66 Set default combat speed if not specified 2021-05-01 15:53:53 -07:00
Jordan Irwin
5ea3b5c255 Make sure that 'self.last_node' not 'nil'...
c2bedc3816
2021-04-30 06:12:31 -07:00
Wade Cline
9a9edc3a2c Restore mob death animation on v0.4.16+ 2021-04-30 04:54:56 -07:00
Jordan Irwin
a35daaafa4 Replace deprecated methods 2021-04-30 04:28:35 -07:00
Jordan Irwin
3f19e2bd9f Update for current core.settings API 2021-04-30 02:49:28 -07:00
Jordan Irwin
f9f21bc355 Move engine code to root directory 2021-04-30 02:42:20 -07:00