RE-ADDED Wither explosion to nodes.
This commit is contained in:
parent
2e1e2a2dd6
commit
d197048c0b
17
wither.lua
17
wither.lua
@ -108,9 +108,9 @@ mobs:register_arrow("mobs_mc:roar_of_the_dragon", {
|
||||
|
||||
minetest.set_node(pos, {name="air"})
|
||||
if math.random(1,2)==1 then
|
||||
local dx = math.random(-1,1)
|
||||
local dy = math.random(-1,1)
|
||||
local dz = math.random(-1,1)
|
||||
dx = math.random(-1,1)
|
||||
dy = math.random(-1,1)
|
||||
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
|
||||
@ -127,7 +127,7 @@ mobs:register_arrow(":mobs_mc:fireball", {
|
||||
|
||||
-- direct hit, no fire... just plenty of pain
|
||||
hit_player = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = player:getpos(), gain = 1.5, max_hear_distance = 16})
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5, max_hear_distance = 16})
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 8},
|
||||
@ -135,9 +135,9 @@ mobs:register_arrow(":mobs_mc:fireball", {
|
||||
|
||||
end,
|
||||
|
||||
hit_mob = function(self, mob)
|
||||
minetest.sound_play("tnt_explode", {pos = mob:getpos(), gain = 1.5,max_hear_distance = 16})
|
||||
mob:punch(self.object, 1.0, {
|
||||
hit_mob = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5,max_hear_distance = 16})
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 8},
|
||||
}, nil)
|
||||
@ -146,7 +146,8 @@ mobs:register_arrow(":mobs_mc:fireball", {
|
||||
|
||||
-- node hit, bursts into flame
|
||||
hit_node = function(self, pos, node)
|
||||
mobs:explosion(pos, 3, 0, 1)
|
||||
--mobs:explosion(pos, 3, 0, 1) --WHY THE ACTUAL FUCK DOES THIS NOT WORK ANYMORE? Because wuzzy uses his own mobs.
|
||||
mobs:explosion(pos, 3) --USE THIS IF USING MINECLONE
|
||||
--from tnt
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5, max_hear_distance = 16})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user