1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-09 17:30:21 +01:00
Commit Graph

175 Commits

Author SHA1 Message Date
tenplus1
ca76558edd switch node/entity setting in mobs:boom 2024-11-21 15:35:07 +00:00
tenplus1
bde53c3475 add mobs:is_invisible() function, update api.txt 2024-11-16 08:16:55 +00:00
tenplus1
39f9f8df31 add reach option to replace function. 2024-11-13 11:04:27 +00:00
tenplus1
430af1e91d add 'mobs_disable_damage_kb' setting 2024-10-20 09:19:52 +01:00
tenplus1
a35afc8299 disable node hearing by default 2024-10-10 10:37:47 +01:00
tenplus1
f4861ced2a add on_sound node support and example. 2024-10-02 14:57:07 +01:00
tenplus1
1dd81eb008 tweak mob hear function 2024-10-01 09:08:52 +01:00
tenplus1
e8e774566b tweak collision, falling and arrow drops. 2024-09-14 12:25:52 +01:00
tenplus1
dce2abfcfe add missing glass sounds 2024-08-11 08:41:25 +01:00
tenplus1
e561864e82 udpate api.txt 2024-08-11 08:17:02 +01:00
tenplus1
57d6859b93 tweak loudness calculation for mod hearing 2024-08-04 08:25:48 +01:00
tenplus1
964451fd78 add mob hearing feature and self.on_sound() function 2024-08-03 11:35:28 +01:00
tenplus1
313382dcaa increase go_to time to 20 and add force flag to do_attack 2024-05-25 07:50:16 +01:00
tenplus1
1536b9a5fc add mob_class:go_to(pos) function 2024-05-24 17:28:35 +01:00
tenplus1
99bea53af3 make on_death compatible (return either player or nil) 2024-04-26 11:07:08 +01:00
tenplus1
d20dfa0b41 added check for on_death() function before api's own on_die() 2024-04-26 07:44:39 +01:00
tenplus1
17dafff8ef add attack_ignore feature (thx ShadowOfHassen for idea) 2024-03-01 16:01:18 +00:00
tenplus1
97771f8e65 add self.node_damage flag (true by default) 2024-01-26 13:05:43 +00:00
tenplus1
be7b6bc5fe can now add 'nametag = "mob name"' in mob definition 2023-12-05 08:23:04 +00:00
tenplus1
099d15d810 mob arrows now use raycasting to be more accurate 2023-11-29 12:11:45 +00:00
tenplus1
682d76d7b3 add 'homing' setting to mob definition so that arrows can follow player when visible. 2023-11-16 10:00:10 +00:00
tenplus1
9e27f45663 add self.attack_patience to add custom times, add self.attack nil check to pathfinding 2023-11-06 07:56:18 +00:00
tenplus1
ac5486cc58 tidy code, stop mob attacking if player isnt seen for 11 seconds 2023-11-05 16:30:05 +00:00
tenplus1
6049a1c140 update api.txt 2023-10-26 07:17:17 +01:00
tenplus1
457eb1838c code tweaks 2023-10-08 16:44:42 +01:00
tenplus1
f1daaa4a14 update api.txt 2023-10-05 13:07:02 +01:00
tenplus1
7044e20382 fix typo 2023-08-17 07:30:28 +01:00
tenplus1
042130baca added 'mob_log_spawn' setting to log mob spawning position. 2023-07-30 11:56:08 +01:00
tenplus1
dcc702848f can now add nodes to 'runaway_from' table 2023-07-15 08:58:18 +01:00
tenplus1
194c9f7847 added 'mobs_attack_creatura' setting for monsters to attack Creatura mob mobs 2023-05-26 14:04:50 +01:00
tenplus1
b16eefa0ec add 'mob_node_timer_interval' and 'mob_main_timer_interval' settings to handle function timings 2023-05-19 08:46:37 +01:00
tenplus1
29bc2f27f2 have separate get_nodes function for nodes around mob, update api.txt 2023-05-18 11:19:28 +01:00
tenplus1
14a3dc83e5 if max_light_damage is 16 then use natural light value to damage mob 2023-05-14 10:44:12 +01:00
tenplus1
9c72f0559d update api.txt 2023-05-02 08:38:54 +01:00
tenplus1
6b9331064c add staticdata clean function, update api.txt 2023-04-03 08:08:37 +01:00
tenplus1
cd4fb6f2a6 add friendly_fire mob setting for arrows (thx eschan145) 2023-03-26 08:31:40 +01:00
tenplus1
7e585b0bdc add check for 'injured' animation 2023-03-13 11:52:59 +00:00
tenplus1
f4aae8894f add mob_hit_effect switch so mob highlights when punched 2023-03-13 10:55:25 +00:00
tenplus1
c8e8401ac5 add mob_height_fix setting so it can be disabled. 2023-03-12 11:35:21 +00:00
tenplus1
924a545788 update pathfinding defaults to add settings (thx Bla) 2023-02-27 18:13:32 +00:00
tenplus1
92b1a253f0 update api.txt 2023-02-17 09:33:44 +00:00
tenplus1
ba988d514c remove duplicate on_die info (thx Bastrabun) 2023-02-12 10:27:43 +00:00
tenplus1
5c9e057ad1 add ability to read 'looting_level' from tool definition and meta for extra drops 2022-11-15 10:39:59 +00:00
tenplus1
d4145ddd3d tidy some luacheckrc warnings 2022-10-31 15:05:34 +00:00
tenplus1
8e3a85546c api.txt updated with mapgen_dirt entry 2022-10-01 07:17:07 +01:00
tenplus1
b4a8ce71c6 add damage_radius and texture to mobs:boom() 2022-09-22 08:04:58 +01:00
tenplus1
25ab9591e4 add 'can_leap' setting to mob def, update api.txt 2022-07-12 08:37:38 +01:00
tenplus1
ca34cc2274 fix api typo (thanks bastrabun :) 2022-05-21 08:04:38 +01:00
tenplus1
dd16d63e8e revert hover 2022-04-30 14:35:59 +01:00
tenplus1
7bb5e2b382 add "hover" animation 2022-04-30 12:26:36 +01:00