1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-11-15 06:50:18 +01:00
Commit Graph

436 Commits

Author SHA1 Message Date
TenPlus1
2ca012e30b replace deprecated settexturemod with set_texture_mod 2019-08-13 08:29:11 +01:00
TenPlus1
38232d5ef4 only spawn mob if player is within active area (useful for world anchors and force loaded areas) 2019-06-30 19:10:37 +01:00
TenPlus1
26cc611ad4 dont spawn mobs if world anchor found nearby 2019-06-30 12:47:28 +01:00
TenPlus1
1a85cf7e2c mobs cannot spawn within 8 blocks of player, update api.txt 2019-06-30 10:35:34 +01:00
TenPlus1
06dbdb1c44 disabled the new raycasting line of sight due to mob attack issues 2019-06-28 20:33:23 +01:00
TenPlus1
e4ca52fafb fix nil check 2019-05-20 17:26:20 +01:00
TenPlus1
975175e7b8 fix mobs:line_of_sight() global function to use entity reference 2019-05-13 16:07:42 +01:00
TenPlus1
0bc62cbf74 typo fix 2019-05-11 14:42:53 +01:00
TenPlus1
392974e835 added new line_of_sight that uses raycasting when mt5.0 is found (thanks Astrobe) 2019-05-08 16:14:49 +01:00
TenPlus1
ddbd403285 add stand_chance and animation force flag 2019-04-30 11:27:26 +01:00
TenPlus1
55dda6da83 force defined model on activation instead of stored 2019-04-02 08:41:09 +01:00
TenPlus1
a1d4e9bbfc add mobs:mob_reset_stick 2019-03-23 18:36:22 +00:00
TenPlus1
8da3bb5cb1 add do_stay_near function, fix annoying pathfinding sounds and toolrank wear 2019-01-24 11:14:25 +00:00
TenPlus1
d3f5ead4fa add new flight check function by taikedz 2019-01-17 09:29:39 +00:00
TenPlus1
980a47bdab fix : to . 2019-01-07 16:29:04 +00:00
TenPlus1
0015b01834 after_spawn fix... thanks GreenDiamond 2019-01-07 16:25:10 +00:00
TenPlus1
78ef560852 fix nametag bug when self.follow is nil 2018-12-29 12:19:51 +00:00
TenPlus1
487e037cc9 added mobs:force_capture() function, api now uses metatables thanks to bell07 2018-12-20 11:14:10 +00:00
TenPlus1
aeb802ad40 forgot to revert testing returns, oopsie! fixed! 2018-12-17 09:17:36 +00:00
TenPlus1
70d2f6399d fix nil error (thanks wziard) 2018-12-09 18:51:10 +00:00
TenPlus1
47d8439913 add mobs:set_velocity(self,v) global, function 2018-12-04 14:39:37 +00:00
TenPlus1
43026c374e add self.disable_falling switch for custom routines 2018-11-29 12:14:54 +00:00
TenPlus1
51ab54bcfa remove self.gotten flip when using replace function, use on_replace inside mob def 2018-11-26 17:48:17 +00:00
TenPlus1
897f4a547e reduce knockback on normal tools without actual setting 2018-11-02 12:54:33 +00:00
TenPlus1
df63a37b08 and to or for jump counter 2018-11-02 08:34:39 +00:00
TenPlus1
71669d3c59 if mob jumps against wall 4 times then turn, moved back to old line_of_sight function 2018-11-01 09:49:15 +00:00
TenPlus1
e545cc80f4 tweak mob counter per area 2018-10-05 18:37:04 +01:00
TenPlus1
e17f8811b1 added attack_chance to mob definition 2018-10-01 09:20:27 +01:00
TenPlus1
6bf6e8fbd8 nil check on spawn collisionbox 2018-09-28 09:11:30 +01:00
TenPlus1
afb7e01b91 tweak collision function 2018-09-15 10:20:18 +01:00
TenPlus1
830b1698ff added pushable flag for mobs so they can be pushed by player 2018-09-14 17:13:40 +01:00
TenPlus1
82411330fc add custom on_punch for mob arrows 2018-09-09 11:11:08 +01:00
TenPlus1
2106a081b9 lifetimer check every 0.25 seconds 2018-09-08 18:21:33 +01:00
TenPlus1
f1476077bd added light damage _min and _max values, also igniter check for lava damage 2018-09-07 14:59:22 +01:00
TenPlus1
9737bde6fb tweak mob damage function, add {fire=1} weapon damage check 2018-09-05 10:33:17 +01:00
TenPlus1
607e596c05 tweaked line of sight, mob drops 2018-09-04 16:35:01 +01:00
TenPlus1
e64df178f8 added some checks 2018-08-31 10:31:30 +01:00
TenPlus1
42473cbc23 add nil check to line_of_sight 2018-08-08 11:23:40 +01:00
TenPlus1
77c19da8d4 make mobs:line_of_sight() function global 2018-08-08 10:35:37 +01:00
TenPlus1
dc7cdd4df0 make mobs:line_of_sight() global 2018-08-08 10:33:23 +01:00
TenPlus1
477ad59670 tidy code 2018-08-08 10:15:26 +01:00
TenPlus1
da0238cb84 fix animation flip 2018-08-03 10:06:05 +01:00
TenPlus1
0482581f18 Added ability for multiple animations per action 2018-08-03 09:43:50 +01:00
TenPlus1
4badcec318 add check for no drops 2018-07-19 09:19:00 +01:00
TenPlus1
63c9812dad new line_of_sight and fence_top added 2018-07-18 10:13:19 +01:00
TenPlus1
f6b5effe09 change aoc_range 2018-07-08 20:51:59 +01:00
TenPlus1
04ae3502a5 toolrank check bugfix 2018-07-01 14:19:34 +01:00
TenPlus1
40416aa4fd Added ToolRanks support when attacking mobs with tools/swords 2018-07-01 14:08:17 +01:00
TenPlus1
21c52c0a87 better 0.4.16 comatibility and new general attack function added 2018-06-27 09:44:00 +01:00
TenPlus1
7b7aa45da8 have protection check right before spawning mob 2018-06-17 10:14:01 +01:00
TenPlus1
e23f47922b tidy code and bug found (thanks hamlet) 2018-06-17 08:43:52 +01:00
TenPlus1
4a5563854d re-organise spawning checks (lightest first) 2018-06-04 16:51:11 +01:00
TenPlus1
c23d58f1ec entity check for minetest.after 2018-06-03 08:32:42 +01:00
TenPlus1
12a3c8975f add "all" to immune_to table, optimized floating code 2018-05-30 10:55:39 +01:00
TenPlus1
23f0571dee remove_far_mobs now defaults to true 2018-05-23 08:41:10 +01:00
TenPlus1
60eb37b3af mobs with self.order = "stand" will no longer move, even when attacking monsters 2018-05-17 09:20:44 +01:00
TenPlus1
33551a1441 fix runaway function 2018-05-05 15:49:28 +01:00
TenPlus1
a089d27db8 tweak attack functions to use line of sight better 2018-05-05 15:40:32 +01:00
TenPlus1
52b6a377f6 add pathfinding addition by Elkien3 (with changes) 2018-05-04 09:20:00 +01:00
TenPlus1
1a8f503e06 tweaked jump 2018-04-28 17:26:16 +01:00
TenPlus1
e4a2706bd6 fix jumping up 1 block 2018-04-27 20:22:55 +01:00
TenPlus1
22cf9b880a fix replace function running too often when mob attacks 2018-04-19 15:45:03 +01:00
TenPlus1
00f46f66d5 fix variable bug 2018-04-14 21:07:27 +01:00
TenPlus1
044d8f8169 default explode radius when mob in water is 1 instead of 0 2018-04-08 12:27:33 +01:00
TenPlus1
d05bf9b489 added simple smooth rotation (thanks ThomasMonroe) 2018-04-08 12:25:06 +01:00
TenPlus1
5889886f3c disable random up.down movement for flying/swimming mobs (for now) 2018-04-08 11:15:55 +01:00
TenPlus1
0849727ee9 knock_back defaults to true 2018-04-06 09:51:11 +01:00
TenPlus1
2f1ef11fa3 fix self.knock_back true error 2018-04-06 09:48:24 +01:00
TenPlus1
2418e2af21 add default collisionbox 2018-04-02 21:24:41 +01:00
TenPlus1
7bb3cd8d85 exploding mobs diffuse range is set using 'reach' 2018-03-31 09:21:58 +01:00
TenPlus1
28dc0d8be5 add nametag check when renaming 2018-03-28 18:39:48 +01:00
TenPlus1
a654a02505 animals will not runaway from it's owner (chickens) 2018-03-24 16:48:12 +00:00
TenPlus1
1bb95d742c add mobs:spawn_abm_check() function 2018-03-22 09:32:17 +00:00
TenPlus1
763fbee36d fix merge errors 2018-03-13 20:33:29 +00:00
TenPlus1
006f18c5c1 change vars always resulting in true 2018-03-12 11:42:35 +00:00
TenPlus1
609d52100c added new explosion mob functionality (thanks to Yukitty) 2018-03-12 11:32:21 +00:00
TenPlus1
2109814805 use war_cry sound in pathfinding when path found (thanks Yukitty) 2018-03-12 11:05:02 +00:00
TenPlus1
94e576c8ef tweak runaway from timer 2018-01-27 15:39:21 +00:00
TenPlus1
fc40d8d7e0 add runaway_from list for shy mobs 2018-01-26 15:34:06 +00:00
TenPlus1
2e9ebcced3 added mobs_spawn mobs_griefing and mobs_drop_items settings 2018-01-26 11:13:59 +00:00
TenPlus1
7d0a91936a jump sound only played when mob is moving, not when stuck 2018-01-22 21:18:28 +00:00
TenPlus1
5e238b168c added fallback to nil min/max for drops 2018-01-18 09:41:51 +00:00
TenPlus1
331c4e96d2 fix selectionbox error when var missing 2018-01-13 20:11:07 +00:00
TenPlus1
4bf4d42b07 added multiple blood textures 2018-01-12 19:18:48 +00:00
TenPlus1
5751d98ab0 add mobs:safe_boom and some nil checks 2018-01-12 14:56:26 +00:00
TenPlus1
0f480942b5 check height clearance before spawning mob 2018-01-04 11:13:08 +00:00
TenPlus1
07bb12acac added selectionbox to mob definition (dev only for now) 2018-01-04 10:16:21 +00:00
TenPlus1
9d653f894c min to max 2018-01-01 17:41:49 +00:00
TenPlus1
93ca01de00 changed 'mob_spawn_amend' to 'mob_chance_multiplier' 2017-12-30 19:39:42 +00:00
TenPlus1
e5baaa5e13 added mob_spawn_amend settings for minetest.conf 2017-12-30 16:41:20 +00:00
TenPlus1
da4ea0d5e3 only show mob HP when punched 2017-12-22 14:41:27 +00:00
TenPlus1
cf6b529627 tweaked pathfinding 2017-12-11 18:20:31 +00:00
TenPlus1
ec4ba73bab added custom after_activate function check 2017-10-18 19:56:04 +01:00
TenPlus1
5cedfcaae2 code tidy 2017-10-18 13:41:29 +01:00
TenPlus1
8dd6622855 added explosion timer, explosion counts until out of view range 2017-10-13 14:57:55 +01:00
TenPlus1
7c10fb7e27 getpos to get_pos 2017-10-09 15:24:40 +01:00
TenPlus1
2ffd942c2a updated to newer 0.4.16 functions 2017-10-09 11:59:01 +01:00
TenPlus1
27fe687f8a fixed flying mobs getting stuck in stairs and plants 2017-10-04 11:13:23 +01:00
TenPlus1
070f02126b add new_api.txt documentation 2017-09-25 13:48:16 +01:00
TenPlus1
8517f4d946 fix abm's on_spawn 2017-09-21 17:15:12 +01:00
TenPlus1
7c4dc07acd getyaw() to get_yaw() 2017-09-21 09:24:18 +01:00
TenPlus1
84672a07ce knockback can also use 'knockback' value inside tool groups if found 2017-09-20 20:06:53 +01:00
TenPlus1
f1a30679aa disable mob suffocation until stepheight glitch in engine fixed. 2017-09-18 20:41:05 +01:00
TenPlus1
6816158e87 tweak knockback 2017-09-17 21:11:50 +01:00
TenPlus1
4785c37f18 added on_breed on_grown and do_punch custom functions 2017-09-15 16:06:35 +01:00
TenPlus1
e90369ee21 better entity checking, few fixes 2017-09-08 09:37:30 +01:00
TenPlus1
80cf1ddb1c added nametag setting to mob registry 2017-09-05 16:32:46 +01:00
TenPlus1
d28c410095 added on_spawn function to mobs registry 2017-09-01 12:27:31 +01:00
TenPlus1
f19960e5db updated mod version 2017-09-01 10:59:50 +01:00
TenPlus1
8d3e6897bc any light damage > 12 harms light sensative mobs 2017-09-01 10:58:20 +01:00
TenPlus1
38d7a214b1 add explode_center flag to mobs:boom function 2017-08-12 18:20:01 +01:00
TenPlus1
4d80e58a2c added fence check to stop mobs walking forwards 2017-08-11 10:46:03 +01:00
TenPlus1
ba167a3451 added flight nil check 2017-08-07 10:53:51 +01:00
TenPlus1
bc13ef7410 quick fix for pathfinding glitch 2017-08-04 09:15:48 +01:00
TenPlus1
b95ca521ed show message when peaceful mode active 2017-08-04 08:53:54 +01:00
TenPlus1
d31010216a pathfinding level 2 liquid drop fixed 2017-08-03 19:41:22 +01:00
TenPlus1
2312319fe3 revert node_ok fallback return 2017-08-03 19:24:18 +01:00
TenPlus1
6bf601f29f fix local 2017-08-03 19:19:25 +01:00
TenPlus1
3e458e1e49 remove print statement 2017-07-29 19:58:26 +01:00
TenPlus1
83600fbba8 mobs turn in small rotations 2017-07-29 19:57:55 +01:00
TenPlus1
276c2fc0ce update death animation timers 2017-07-29 15:45:19 +01:00
TenPlus1
8ad63d35d0 if no run animation use walk instead 2017-07-26 18:13:39 +01:00
TenPlus1
c0e07d819b giced mobs:set_animation function 2017-07-26 10:03:37 +01:00
TenPlus1
ff13cd4e6f fixed mobs:boom sounds 2017-07-14 10:29:59 +01:00
TenPlus1
fc1960f5c9 change mobs_spawn_protected to bool (true by default) 2017-07-13 14:36:50 +01:00
TenPlus1
7fba32b8d9 added mobs:boom functin to replace mobs:explosion 2017-07-13 10:16:24 +01:00
TenPlus1
f985d00b61 added forgotton mobs:explosion global function for backwards compatibility 2017-07-11 21:22:58 +01:00
TenPlus1
e4ca054be3 if no tnt add entity damage/effects/sound 2017-07-09 08:57:37 +01:00
TenPlus1
7b02fef7a5 explosions use tnt.boom() when TNT mod found, otherwise only entity damage 2017-07-08 21:24:30 +01:00
TenPlus1
7e09281760 use tnt.boom() function instead of mobs:explosion 2017-07-08 21:11:22 +01:00
TenPlus1
7dc2d22ef6 remove hardcoded unbreakable nodes from explosions 2017-07-08 16:16:03 +01:00
TenPlus1
1f800ff583 code tweaks and new settings 2017-07-08 09:08:23 +01:00
TenPlus1
27390b2e36 if order change 2017-07-07 20:10:27 +01:00
TenPlus1
3965b237f1 mob arrows only affect player/node/mobs redo mob 2017-07-07 20:07:06 +01:00
TenPlus1
2b39c6f0fa increase explosion smoke effect 2017-07-05 20:52:57 +01:00
TenPlus1
75a2025871 updated intllib support and translations 2017-07-04 20:37:04 +01:00
TenPlus1
f78f7c3059 add on_replace function (thanks wuzzy) 2017-07-04 20:12:57 +01:00
TenPlus1
bad4dcb36f change sound names 2017-07-04 18:38:06 +01:00
TenPlus1
9494972483 add visual/sound when protecting mob, also when using net/lasso 2017-07-03 19:07:57 +01:00
TenPlus1
cf3a9fd679 placing stackable mob egg while holding sneak removes tamed status 2017-07-02 18:56:18 +01:00
TenPlus1
a9178b3cb2 gravity is a bummer 2017-07-02 18:47:11 +01:00
TenPlus1
a964aa028d reverted egg changes 2017-07-02 14:20:26 +01:00
TenPlus1
7b543fe1d7 stackable eggs (default) do not tame mob on place 2017-07-02 14:02:22 +01:00
TenPlus1
d0475fd4f5 fix lasso pickup 2017-06-30 20:47:21 +01:00
TenPlus1
6799a7ac15 Added spawn_egg groups 2017-06-28 09:52:54 +01:00
TenPlus1
d74f2fa27b falling velocity no longer exceeds self.fall_speed 2017-06-28 09:43:51 +01:00
TenPlus1
8924b05623 no drops for killing child mobs, fix base level of environ check 2017-06-24 18:21:15 +01:00
TenPlus1
af8963ec00 add explosion position for mob damage 2017-06-23 09:13:12 +01:00
TenPlus1
53563fe430 added animation loop flag 2017-06-23 08:57:51 +01:00
TenPlus1
0d27bbe02d update cmi components 2017-06-19 08:25:39 +01:00
TenPlus1
a58299479e added support for raymoo's cmi mod 2017-06-18 19:21:04 +01:00
TenPlus1
54b88e25b2 set min mob damage is 0 and fix runaway dir for rotated mobs. 2017-06-16 20:36:15 +01:00
TenPlus1
60c5b5628a increase foot level 2017-06-11 11:35:34 +01:00
TenPlus1
6f259cb047 mobs will not attack player in creative mode unless hit 1st 2017-06-11 09:27:26 +01:00
TenPlus1
18b90da257 added mob suffocation setting (only inside full blocks) 2017-06-10 09:47:24 +01:00
TenPlus1
4eb1c937e5 added obj nil check 2017-06-04 20:23:40 +01:00
TenPlus1
ffefd49c7b tweak pathfinding 2017-06-01 13:50:42 +01:00
TenPlus1
f40d260a81 fix constant health tag 2017-05-28 20:57:14 +01:00
TenPlus1
608a5178cf fix damage_per_sec checks wit some nested if's, add custom on_activate to arrows 2017-05-28 20:49:50 +01:00
TenPlus1
d6ff282917 localised functions, mobs floats on water only, damage_per_sec nodes hurt mobs 2017-05-27 21:29:46 +01:00
TenPlus1
ff4dfe4b4d bugfix 2017-05-27 18:36:30 +01:00
TenPlus1
646020db94 death check added, cooks drops if died in fire/lava/pick_lava 2017-05-27 10:18:21 +01:00
TenPlus1
e814a360f6 add owner loyalty so that aggressive tamed mobs will attack player foe's 2017-05-12 10:02:42 +01:00
TenPlus1
feb26ed940 tweak capture function 2017-04-27 14:37:30 +01:00
TenPlus1
52cf9be8eb updated api.txt 2017-04-27 14:07:23 +01:00
TenPlus1
b1c08d2261 Turkish translation by Admicos, protect tweak 2017-04-27 14:00:23 +01:00
TenPlus1
b2083fd120 line of sight only counts "normal" nodeboxes as obstruction 2017-04-20 19:09:44 +01:00
TenPlus1
ed28e9efea added return false to flight_check function 2017-04-19 18:41:12 +01:00
TenPlus1
e64530aa43 default stepheight is 1.1 for mobs to walk uphill properly 2017-04-13 11:01:38 +01:00
TenPlus1
8ed3672fb1 typo in var name 2017-04-08 18:09:06 +01:00
TenPlus1
13fcf68191 sanitize yaw 2017-04-08 17:55:51 +01:00
TenPlus1
6aead4ec5c code tidy 2017-03-30 19:33:07 +01:00
TenPlus1
bbaa1ff025 mob pathfinding level 2 adheres to protection and hard to break nodes when damaging builds 2017-03-29 11:49:38 +01:00
TenPlus1
e1f7453ee5 tidy code 2017-03-26 20:29:34 +01:00
TenPlus1
a37e38da60 Exploding mobs only drop items when killed, not when they explode 2017-03-24 10:13:25 +00:00
TenPlus1
374e7ac13b meh 2017-03-21 11:18:14 +00:00
TenPlus1
20f8183316 Fix variable nil default 2017-03-21 09:43:02 +00:00
TenPlus1
c2ecb8321e Fix staticdata, tidy code 2017-03-18 19:38:53 +00:00
TenPlus1
80a86b658c Separated dogshoot timers for different shoot/fight timings 2017-03-17 13:06:36 +00:00
TenPlus1
1205ec36a6 flying mobs go up and down, code tidy. 2017-03-17 11:30:16 +00:00
TenPlus1
aa591925b1 changed to look before you jump :) 2017-03-10 17:13:41 +00:00
TenPlus1
1f0969e6d3 Update do_jump function, tidied code 2017-03-10 16:05:37 +00:00
TenPlus1
1fbf0ff331 Updated replace function with new tables 2017-03-07 11:50:15 +00:00
TenPlus1
c1c17a6849 added new animation function 2017-03-06 14:19:51 +00:00
TenPlus1
36cf0693fe revert damage_per_second check (for now) 2017-03-05 09:39:47 +00:00
TenPlus1
18d42f2285 limit mob names to 64 chars, update mount lib to new 0.4.15 functions 2017-03-02 20:41:45 +00:00
TenPlus1
440d9874b5 added quick health check when punched 2017-02-24 09:38:11 +00:00
TenPlus1
59e8ba64f2 Tidied code, added fly arrow check 2017-02-22 12:57:02 +00:00
TenPlus1
8201282022 Tamed eggs are removed from inventory even in creative 2017-02-14 08:54:54 +00:00
TenPlus1
cce6eabd81 Tweaked mob counter/spawner abm 2017-02-10 11:47:42 +00:00
TenPlus1
fb850b0233 compatibility with older simple_mobs textures 2017-02-02 14:26:04 +00:00
TenPlus1
40e6eaf98a fix old texture support 2017-02-02 13:51:51 +00:00
TenPlus1
62d00489b3 changed capturing mobs with 'replacewith' item to override new mob eggs with information inside 2017-02-01 13:08:45 +00:00
TenPlus1
6d059ef980 add default mob egg to player inventory if 'force_take' true, otherwise save mob information inside of new egg 2017-02-01 12:59:44 +00:00
TenPlus1
f917bf8bbe added "fly" animation with check 2017-01-31 14:30:00 +00:00
TenPlus1
d574045930 added quick error check for self.drops 2017-01-23 20:25:00 +00:00
TenPlus1
e3515482cc added arrow rotation, added new mob eggs that save mob information, updated intllib routine 2017-01-21 19:23:41 +00:00
TenPlus1
4e231429d9 spawn egg checks for existing right_click functions 2017-01-21 10:38:43 +00:00
TenPlus1
52a2355954 arrow entity check, glow and expire added to arrows 2017-01-20 09:32:51 +00:00
TenPlus1
6eb6e458af Fixed rotation bug 2017-01-19 22:46:28 +00:00