1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-26 02:30:21 +01:00
Commit Graph

492 Commits

Author SHA1 Message Date
tenplus1
d4145ddd3d tidy some luacheckrc warnings 2022-10-31 15:05:34 +00:00
tenplus1
33beec64dc fix peaceful player check 2022-10-27 16:57:53 +01:00
tenplus1
088bdc5350 localise math.deg 2022-10-21 12:14:11 +01:00
tenplus1
c003c2e72b fix smooth rotation jitters 2022-10-21 11:56:54 +01:00
tenplus1
1450b25ca4 mobs_class made global (be careful anyone changing this) 2022-10-15 08:50:27 +01:00
tenplus1
561903d075 revert node position (git gui test) 2022-09-30 08:32:50 +01:00
tenplus1
bf7ff7ab5f fix node position 2022-09-30 08:31:30 +01:00
tenplus1
431d3844a6 tidy code 2022-09-29 14:15:21 +01:00
tenplus1
b4a8ce71c6 add damage_radius and texture to mobs:boom() 2022-09-22 08:04:58 +01:00
tenplus1
2935d1ee5d have mobs jump slightly when grown to avoid being caught in floor 2022-09-18 11:17:58 +01:00
tenplus1
5bc547b333 tweak mod following to work better 2022-09-06 11:32:50 +01:00
tenplus1
bad1be5c5a check pos/def for nil value in add_mob function 2022-09-03 16:13:41 +01:00
tenplus1
83f0b901a4 add self.messages field 2022-08-04 08:21:59 +01:00
tenplus1
e4ac59609a add mob protection to infotext 2022-07-31 10:20:32 +01:00
tenplus1
7ac8506dda add fallback node for is_node_dangerous 2022-07-29 18:52:28 +01:00
tenplus1
90df44aeaf comment unused vars 2022-07-22 14:12:30 +01:00
tenplus1
25ab9591e4 add 'can_leap' setting to mob def, update api.txt 2022-07-12 08:37:38 +01:00
tenplus1
8e6fa64f2d fix premature mob death and drops 2022-07-07 17:09:34 +01:00
tenplus1
ce7c4c1449 adjust mob count when using /clear_mobs 2022-07-04 11:00:52 +01:00
tenplus1
08dcdf382a add /clear_mobs command 2022-07-04 10:43:28 +01:00
tenplus1
d2a4150dcb extend mob reach when on top of player to fix issue 2022-06-28 08:08:35 +01:00
tenplus1
168014b86f tidy api 2022-05-14 11:21:36 +01:00
tenplus1
6f8b6fe3f5 select proper animation for flying mobs 2022-05-01 08:15:25 +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
tenplus1
7b429df9e9 tweak riding functions 2022-04-21 08:28:35 +01:00
tenplus1
fb42be6b28 nil checks 2022-03-14 08:29:25 +00:00
tenplus1
f54c3da9d7 add nil check 2022-03-13 16:30:20 +00:00
tenplus1
9f74408792 remove owner infotext if no owner present 2022-02-05 12:25:01 +00:00
tenplus1
18c7f0a422 update translation checks (thanks mckaygerhard) 2022-01-20 08:54:08 +00:00
TenPlus1
f01e8a61d0 rename var 2022-01-16 07:44:53 +00:00
TenPlus1
b756aa50f5 fix crash (thanks SwissalpS) 2022-01-16 07:05:49 +00:00
TenPlus1
e83620553d add mobs:is_node_dangerous(self, nodename) global function 2022-01-15 09:41:21 +00:00
TenPlus1
6a4a02f3fb fix translations (thanks nixnoxus) 2021-12-12 08:13:54 +00:00
TenPlus1
5d88766b74 add pointed_thing to on_rightclick vars 2021-11-16 20:22:15 +00:00
TenPlus1
00db86c924 fix intllib return 2021-11-14 14:18:28 +00:00
TenPlus1
26ec61ee29 lasso can pick up animal babies 2021-09-20 10:49:19 +01:00
TenPlus1
a8ca00dc56 fix self.follow list 2021-09-05 08:16:40 +01:00
TenPlus1
4c80a55c04 add breeding info on hover and items followed on shift+rightclick mob (thanks nixnoxus) 2021-08-16 10:48:16 +01:00
TenPlus1
deee28fc59 added 'arrow_override' function to mob definition 2021-08-01 18:58:21 +01:00
TenPlus1
ab44080ff8 do not despawn tamed monsters 2021-07-31 08:35:53 +01:00
TenPlus1
2535b5636e add support for MarkBu's pathfinder mod 2021-07-22 09:34:21 +01:00
TenPlus1
2d014a75c4 tweak "stand" mobs velocity 2021-07-21 19:38:41 +01:00
TenPlus1
29b2204f7c add 'mobs_spawn_monster_protected' switch (thanks 0siribix) 2021-07-14 15:43:02 +01:00
TenPlus1
7fbfd9d59c fix "stand" mobs fall jitter 2021-07-13 16:56:53 +01:00
TenPlus1
e50d04a6aa fix facing fence jump bug 2021-06-14 09:30:03 +01:00
TenPlus1
33589ebda0 improve pathfinding level 2 digging/building, add infotext, stop mob attack spin, tweak & tidy code 2021-06-13 09:39:59 +01:00
TenPlus1
6670938c3d add mob height check for glitching through blocks 2021-06-11 22:25:00 +01:00
TenPlus1
f131806008 add 'mob_smooth_rotate' setting 2021-06-01 14:17:25 +01:00
TenPlus1
49325c9c8d fix weapon sound selection 2021-05-27 15:42:21 +01:00
TenPlus1
ec44aa91c4 add 'damage_group' and 'damage_texture_modifier' settings to mob definition 2021-05-15 09:33:35 +01:00
TenPlus1
350fc3647c add extra settings to arrow definition 2021-05-04 08:02:43 +01:00
TenPlus1
70c68f6ebc change so only players can push mobs 2021-04-18 09:05:16 +01:00
TenPlus1
9be934ec25 make it possible to use advanced protector on normally protected mob 2021-04-13 12:41:09 +01:00
TenPlus1
f6e16a5503 return actual damage position (created particle py), check for nil damage groups 2021-04-11 17:23:22 +01:00
TenPlus1
c06d071220 allow players with 'protection_bypass' to rename owned tamed mobs 2021-04-07 10:35:36 +01:00
TenPlus1
ccbfe93f12 players with protection_bypass can pick up owned animals from other players 2021-04-06 15:26:36 +01:00
TenPlus1
6750d176ee tweak damage and protectors 2021-04-05 08:52:48 +01:00
TenPlus1
246b2769f7 add level 2 mob protector 2021-04-04 22:25:40 +01:00
TenPlus1
34b06df758 add ability to follow group: items 2021-03-23 17:09:26 +00:00
TenPlus1
0f1f3b4fb3 simplify mobs floating in water 2021-03-18 20:23:55 +00:00
TenPlus1
774ce6671f add 'ignore_invisibility' setting to mob definition 2021-03-10 08:14:42 +00:00
TenPlus1
11e1d52cfb replace minetest 5.0 check 2021-02-06 17:10:50 +00:00
TenPlus1
c158e84e28 stop grown child mobs sinking into blocks below 2021-02-03 21:29:26 +00:00
TenPlus1
2d1befacb3 nil check 2021-01-19 20:37:42 +00:00
TenPlus1
754321541a fix mob spawn height (thanks OgelGames) 2021-01-14 10:28:18 +00:00
TenPlus1
622abd1486 hopefully fixed death animation crash when player away 2021-01-08 10:16:33 +00:00
TenPlus1
55eb893a9a simple swimming fix to stop floaters 2021-01-07 10:42:10 +00:00
TenPlus1
76ee3d0b51 add peaceful player privs and settings (thanks sfence) 2021-01-04 12:28:17 +00:00
TenPlus1
00ac9efc8c fix global catch sound (thanks SwissalpS) 2021-01-02 20:31:01 +00:00
TenPlus1
bf32a09e5e on_flop and air_damage added 2020-12-06 09:53:02 +00:00
TenPlus1
9489ff6965 add option to spin mob when playing death animation 2020-12-06 08:55:17 +00:00
TenPlus1
1dfd7e1af1 simplified breeding function, added some settings 2020-12-05 12:06:34 +00:00
TenPlus1
4a6518eeba add additional nil backups for set_velocity 2020-12-02 15:14:11 +00:00
TenPlus1
a4d2918383 add mob_area_spawn setting 2020-11-30 14:43:49 +00:00
TenPlus1
bdea826b7c add additional death checks 2020-11-15 18:23:52 +00:00
TenPlus1
d12576f0c8 mobs:can_spawn function added to check free space to spawn mob 2020-10-29 10:46:59 +00:00
TenPlus1
7f4d473fee Localize a few functions (thanks MoNTE48) 2020-10-03 09:34:38 +01:00
TenPlus1
f7a1b27ea4 add nil check to do_runaway_from 2020-10-01 12:12:12 +01:00
TenPlus1
f14050ad3c nil check for do_stay_near 2020-09-23 20:35:04 +01:00
TenPlus1
67e4ede31b Fix on_punch damage returns (thanks OgelGames) 2020-09-16 12:04:03 +01:00
TenPlus1
bd8be0905a fix nametag return 2020-09-05 18:15:21 +01:00
TenPlus1
89523195d5 fix typo in api.txt 2020-09-05 08:59:09 +01:00
TenPlus1
c6dffd1390 hide spawning mobs message in terminal 2020-09-04 14:00:53 +01:00
TenPlus1
499d43a9aa added 'on_map_load' setting to mobs:spawn function to spawn mob in newly loaded areas of map only 2020-09-04 13:59:14 +01:00
TenPlus1
497ff7241f update translation detection 2020-08-25 09:44:00 +01:00
TenPlus1
9f02777f14 re-add nil check for get_distance function 2020-08-20 20:29:34 +01:00
tenplus1
565c0851eb nil check for self.attack 2020-07-27 19:17:07 +01:00
tenplus1
cb465559a1 code tweak and tidy 2020-07-25 10:52:29 +01:00
tenplus1
469e35d6e0 tidy api 2020-07-23 20:13:15 +01:00
TenPlus1
1271570780 nil check in do_states 2020-07-20 18:10:08 +01:00
tenplus1
c4f56f4204 nill check for follow_flop 2020-07-20 07:32:24 +01:00
tenplus1
4814f53885 nil check for get_distance 2020-07-20 07:27:55 +01:00
tenplus1
f033cd401c add nil check to general_attack 2020-07-18 20:39:49 +01:00
tenplus1
903e81bdab another nil check for entity 2020-07-17 21:12:43 +01:00
tenplus1
81dd3d75c0 add randomly_turn setting to mob definition 2020-07-17 20:58:52 +01:00
TenPlus1
d20ea74890 fix runaway player nil 2020-07-01 14:43:17 +01:00
TenPlus1
ee8c19ce21 tweak mob falling, floating, jumping and fluid viscosity 2020-06-29 15:00:32 +01:00
TenPlus1
296fad85ca simplify string/table searches 2020-06-28 20:46:57 +01:00
TenPlus1
d65b80fa51 fluid viscocity checks standing node against fly_in table/string 2020-06-28 20:36:38 +01:00