Commit Graph

183 Commits

Author SHA1 Message Date
Nils Dagsson Moskopp 66dd87af25
Give mobs sunburn at correct light level
Before this patch, the light level that makes mobs that burn in sunlight
catch fire had been mistakenly specified as minetest.LIGHT_MAX or more.

The correct light level for sunlight is LIGHT_SUN, which is one higher
than minetest.LIGHT_MAX. Since minetest.LIGHT_MAX is the maximum light
value that a node can have and torches emit light at that light level,
mobs that burn in sunlight caught fire inside torch nodes.
2021-11-19 03:14:36 +01:00
Elias Fleckenstein 5de9d90569 Simplify mcl_burning API 2021-02-22 10:55:14 +01:00
kay27 0ba7e4fc4d Fix Runtime error: attempt to index a nil value (api.lua:399 <- is_node_dangerous <- is_at_cliff_or_danger <- on_step_old <- void_damage:16) 2021-02-22 13:40:40 +04:00
epCode 512765a37d Make use_texture_alpha an mobs_mc.entity setting 2021-02-21 17:10:04 -08:00
epCode 393bc195fb Enable alpha for mobs 2021-02-19 13:11:18 -08:00
Elias Fleckenstein c9e589b931 Add mcl_burning damage interval 2021-02-18 14:47:35 +01:00
Elias Fleckenstein eddef41e6b Fix #1132 2021-02-18 09:41:06 +01:00
MysticTempest 0ec64189dc Partial creeper explode distance fix, and fix to stop punching mobs into the air. 2021-02-11 17:27:55 -06:00
kay27 696ae8e6fe Merge pull request 'Fix Mobs not taking knockback on the Y-axis' (#1061) from Code-Sploit/MineClone2:master into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1061
2021-02-05 21:41:38 +00:00
kay27 fa3e37c604 A mob does not drop XP unless it dies within 5 s of an attack registered as a player hit, https://git.minetest.land/MineClone2/MineClone2/issues/1021#issuecomment-13894 2021-02-05 16:34:49 +04:00
Code-Sploit 95b0a27213 Fix Mobs not taking knockback on the Y-axis 2021-02-05 10:36:48 +00:00
kay27 7210dfcc1c Make mobs only drop XP orbs when they're killed by hit, attempt to fix https://git.minetest.land/Wuzzy/MineClone2/issues/978 2021-01-27 16:12:34 +04:00
Elias Åström 174a3a2968 Fix creeper explosions only doing 1/2 heart damage
The solution was to move the creeper explosions to originate from the
center of the creepers collisionbox and not its entity position.
2021-01-26 14:13:30 +01:00
MysticTempest c1c5ed4869 Fix crash in 'mcl_spawn' in v6,flat,singlenode mapgens; and fix mobs despawning when attacking/following players. 2021-01-24 17:47:28 -06:00
Elias Fleckenstein 76bd139f1b Rise mob spawning distance to 24 (Closes #982) 2021-01-24 19:07:56 +01:00
Elias Fleckenstein f9a82aab05 Implement curing zombie villagers 2021-01-23 15:40:12 +01:00
kay27 a41e0628e5 Fix https://git.minetest.land/Wuzzy/MineClone2/issues/994 Crash in mcl_mobs 2021-01-21 12:36:33 +04:00
Elias Fleckenstein 1f05d8f876 Knockback enchantment working on mobs 2021-01-11 16:38:05 +01:00
Elias Fleckenstein b616ce734f Fix mobs taking damage from fire and lava even if they shouldn't 2021-01-06 13:31:51 +01:00
Elias Fleckenstein 3a02e90c3a Fix mobs jumping against walls again and again due to a typo 2021-01-06 12:14:20 +01:00
Elias Fleckenstein f2c978c892 Fix #885 2021-01-06 12:04:02 +01:00
Elias Fleckenstein fd5f3a8df7 Mobs can't jump while already in air 2021-01-06 11:47:50 +01:00
kay27 bdd0123c77 keep mobs from disappearance 2021-01-06 11:25:56 +01:00
Elias Fleckenstein 52ed7f668e Small mob shoot raycast improvement 2021-01-06 11:18:18 +01:00
Elias Fleckenstein bc15c9c22d Fix #965 2021-01-06 10:36:57 +01:00
kay27 faa944193a try to fix https://git.minetest.land/Wuzzy/MineClone2/issues/963 2021-01-05 20:45:56 +01:00
Elias Fleckenstein 059629c51f Fix wrong mob spawning distance from player 2021-01-05 20:29:10 +01:00
Elias Fleckenstein 5899c2059f Fix #860 2021-01-05 18:02:41 +01:00
Elias Fleckenstein 6f49a3d535 Fix #788 2021-01-05 17:52:27 +01:00
Elias Fleckenstein ac54e3caf3 Fix despawning once and for all (hopefully) 2021-01-04 16:40:18 +01:00
Elias Fleckenstein 9e97331bdc Fix mobs despawning while close to player 2021-01-03 15:10:50 +01:00
kay27 30379c823c Clean up some spaces in code after merging https://git.minetest.land/EliasFleckenstein03/MineClone2 2021-01-03 00:42:07 +04:00
Elias Fleckenstein 7d45055a59 Remove minetest.env in mcl_mobs API 2021-01-02 12:45:23 +01:00
Elias Fleckenstein 081ae7fbff Make undead mobs burn in sunlight instead of dealing damage directly 2021-01-02 12:43:50 +01:00
Elias Fleckenstein 84708c3870 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2021-01-02 10:58:02 +01:00
Elias Fleckenstein fbd4a3a516 Fix burning sound keeping playing 2021-01-02 10:56:40 +01:00
Elias Fleckenstein 212e895c1a Fire Aspect for Mobs 2021-01-01 19:59:34 +01:00
Elias Fleckenstein 2932837951 Fix mobs always dropping cooked loot 2021-01-01 19:52:34 +01:00
Elias Fleckenstein 92bf864807 Fire Aspect 2021-01-01 19:51:31 +01:00
Elias Fleckenstein 071ba77bb0 mcl_burning fully working 2021-01-01 19:25:47 +01:00
Elias Fleckenstein a6eed5c5b3 Rework system 2020-12-29 22:08:38 +01:00
Elias Fleckenstein 7545e29f58 Burning objects 2020-12-24 17:48:40 +01:00
Elias Fleckenstein b017fd7405 Looting actually works now 2020-12-23 19:01:49 +01:00
Elias Fleckenstein da7240d6c1 looting 2020-12-23 17:41:42 +01:00
MysticTempest b56ae38939 Make lava/fire wait 2 seconds before destroying items to allow chance for pickup, fix dogs following when sitting, and add some rotation so mobs don't idle at cliffs. 2020-12-22 08:29:24 -06:00
MysticTempest cb3fa6cd09 Fix magma cubes and zombies not taking damage from hands; and adjust magma cube armors to their proper values. 2020-12-17 16:07:20 -06:00
MysticTempest fb51ab05ea Enable basic mob despawning. 2020-12-17 09:22:34 -06:00
kay27 e7aa873968 Fix https://git.minetest.land/EliasFleckenstein03/MineClone2/issues/3 2020-12-13 03:09:32 +04:00
Wuzzy d699459bac Fix carrot param2 reset to 0 when ate by rabbit 2020-12-09 22:10:42 +01:00
Wuzzy d17c53cb0c Fix mob spawn height for real 2020-12-08 22:42:01 +01:00