Update mobs_mc
This commit is contained in:
parent
a0347a6700
commit
3fb0b6dd44
14 changed files with 30 additions and 23 deletions
|
@ -133,9 +133,9 @@ mobs:register_arrow("mobs_mc:roar_of_the_dragon2", {
|
|||
|
||||
minetest.set_node(pos, {name="air"})
|
||||
if math.random(1,2)==1 then
|
||||
dx = math.random(-1,1)
|
||||
dy = math.random(-1,1)
|
||||
dz = math.random(-1,1)
|
||||
local dx = math.random(-1,1)
|
||||
local dy = math.random(-1,1)
|
||||
local dz = math.random(-1,1)
|
||||
local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
|
||||
minetest.set_node(p, {name="air"})
|
||||
end
|
||||
|
@ -152,7 +152,7 @@ mobs:register_arrow(":mobs_mc:fireball2", {
|
|||
|
||||
-- direct hit, no fire... just plenty of pain
|
||||
hit_player = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5, max_hear_distance = 2*64})
|
||||
minetest.sound_play("tnt_explode", {pos = player:getpos(), gain = 1.5, max_hear_distance = 2*64})
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 6},
|
||||
|
@ -160,9 +160,9 @@ mobs:register_arrow(":mobs_mc:fireball2", {
|
|||
|
||||
end,
|
||||
|
||||
hit_mob = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5, max_hear_distance = 2*64})
|
||||
player:punch(self.object, 1.0, {
|
||||
hit_mob = function(self, mob)
|
||||
minetest.sound_play("tnt_explode", {pos = mob:getpos(), gain = 1.5, max_hear_distance = 2*64})
|
||||
mob:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 12},
|
||||
}, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue