forked from mtcontrib/mobs_monster
lava flan heals while in lava
This commit is contained in:
parent
9b3c1e156f
commit
5009e7439d
@ -36,7 +36,7 @@ mobs:register_mob("mobs_monster:lava_flan", {
|
|||||||
{name = "mobs:lava_orb", chance = 15, min = 1, max = 1},
|
{name = "mobs:lava_orb", chance = 15, min = 1, max = 1},
|
||||||
},
|
},
|
||||||
water_damage = 8,
|
water_damage = 8,
|
||||||
lava_damage = 0,
|
lava_damage = -1,
|
||||||
fire_damage = 0,
|
fire_damage = 0,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
immune_to = {
|
immune_to = {
|
||||||
@ -53,7 +53,7 @@ mobs:register_mob("mobs_monster:lava_flan", {
|
|||||||
run_start = 20,
|
run_start = 20,
|
||||||
run_end = 28,
|
run_end = 28,
|
||||||
punch_start = 20,
|
punch_start = 20,
|
||||||
punch_end = 28,
|
punch_end = 28
|
||||||
},
|
},
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
|
|
||||||
@ -174,9 +174,13 @@ minetest.register_tool(":mobs:pick_lava", {
|
|||||||
inventory_image = "mobs_pick_lava.png",
|
inventory_image = "mobs_pick_lava.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.4,
|
full_punch_interval = 0.4,
|
||||||
max_drop_level=3,
|
max_drop_level = 3,
|
||||||
groupcaps={
|
groupcaps = {
|
||||||
cracky = {times={[1]=1.80, [2]=0.80, [3]=0.40}, uses=40, maxlevel=3},
|
cracky = {
|
||||||
|
times = {[1] = 1.80, [2] = 0.80, [3] = 0.40},
|
||||||
|
uses = 40,
|
||||||
|
maxlevel = 3
|
||||||
|
}
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 6, fire = 1},
|
damage_groups = {fleshy = 6, fire = 1},
|
||||||
},
|
},
|
||||||
@ -189,7 +193,7 @@ minetest.register_craft({
|
|||||||
recipe = {
|
recipe = {
|
||||||
{"mobs:lava_orb", "mobs:lava_orb", "mobs:lava_orb"},
|
{"mobs:lava_orb", "mobs:lava_orb", "mobs:lava_orb"},
|
||||||
{"", "default:obsidian_shard", ""},
|
{"", "default:obsidian_shard", ""},
|
||||||
{"", "default:obsidian_shard", ""},
|
{"", "default:obsidian_shard", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -253,7 +257,7 @@ mobs:register_mob("mobs_monster:obsidian_flan", {
|
|||||||
run_start = 20,
|
run_start = 20,
|
||||||
run_end = 28,
|
run_end = 28,
|
||||||
punch_start = 20,
|
punch_start = 20,
|
||||||
punch_end = 28,
|
punch_end = 28
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -296,9 +300,11 @@ mobs:register_arrow("mobs_monster:obsidian_arrow", {
|
|||||||
|
|
||||||
local radius = 1
|
local radius = 1
|
||||||
local def = minetest.registered_nodes[node]
|
local def = minetest.registered_nodes[node]
|
||||||
|
|
||||||
if def then
|
if def then
|
||||||
node = { name = node }
|
node = {name = node}
|
||||||
end
|
end
|
||||||
|
|
||||||
if def and def.tiles and def.tiles[1] then
|
if def and def.tiles and def.tiles[1] then
|
||||||
texture = def.tiles[1]
|
texture = def.tiles[1]
|
||||||
end
|
end
|
||||||
@ -325,7 +331,7 @@ mobs:register_arrow("mobs_monster:obsidian_arrow", {
|
|||||||
texture = texture,
|
texture = texture,
|
||||||
-- ^ only as fallback for clients without support for `node` parameter
|
-- ^ only as fallback for clients without support for `node` parameter
|
||||||
node = node,
|
node = node,
|
||||||
collisiondetection = true,
|
collisiondetection = true
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
|
Loading…
Reference in New Issue
Block a user