Commit 27351e25 authored by Milan's avatar Milan
Browse files

merge blert2112/mobs_more_monster into master

parents 41a0e9b2 0b92cb84
Pipeline #223 skipped
......@@ -109,25 +109,4 @@ if mobs.mod and mobs.mod == "redo" then
})
end
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_pumpking:pumpking_spawner", {
description = "Pumpkin King Spawner",
tiles = {"pumpboom.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="king", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_pumpking:pumpking_spawner"},
interval = 180.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_pumpking:pumpking")
end
})
end
end
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
local spice_duration = 20.0 --seconds
local spice_buff_speed = 1 --add to physics multiplier
local spice_buff_jump = 0.5 --add to physics multiplier
......@@ -94,37 +93,19 @@ if mobs.mod and mobs.mod == "redo" then
jump = physics.jump + spice_buff_jump,
gravity = physics.gravity - spice_buff_gravity
})
minetest.after(spice_duration, function(armorgroups)
user:set_armor_groups(armorgroups)
local physics = user:get_physics_override()
minetest.after(spice_duration, function(user)
if user and user:is_player() then
user:set_armor_groups({immortal = 0})
local phys = user:get_physics_override()
user:set_physics_override({
speed = physics.speed - spice_buff_speed,
jump = physics.jump - spice_buff_jump,
gravity = physics.gravity + spice_buff_gravity
speed = phys.speed - spice_buff_speed,
jump = phys.jump - spice_buff_jump,
gravity = phys.gravity + spice_buff_gravity
})
end, armorgroups)
end
end, user)
return itemstack
end
})
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_sandworm:sandworm_spawner", {
description = "Sand Worm Spawner",
tiles = {"sandworm.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="sand", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_sandworm:sandworm_spawner"},
interval = 180.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_sandworm:sandworm")
end
})
end
end
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
mobs:register_mob("mobs_senderman:senderman", {
type = "monster",
visual = "mesh",
......@@ -49,22 +47,4 @@ if mobs.mod and mobs.mod == "redo" then
)
mobs:register_egg("mobs_senderman:senderman", "Spawn Senderman", "senderman_egg.png", 0)
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_senderman:senderman_spawner", {
description = "Senderman Spawner",
tiles = {"senderman_face.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1}
})
minetest.register_abm({
nodenames = {"mobs_senderman:senderman_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_senderman:senderman")
end
})
end
end
local ENABLE_SPAWN_NODE = true
-- sounds
local green_sounds = {
damage = "slimes_damage",
......@@ -141,26 +139,3 @@ minetest.register_craftitem("mobs_slimes:green_slimeball", {
image = "mobs_green_slimeball.png",
description="Green Slime Ball",
})
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_slimes:green_spawner", {
description = "Green Slime Spawner",
tiles = {"green_slime_front.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="slimes_death", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_slimes:green_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local p = pos
p.y = p.y + 1
minetest.add_entity(p, "mobs_slimes:green_big")
end
})
end
local ENABLE_SPAWN_NODE = true
-- sounds
local lava_sounds = {
damage = "slimes_damage",
......@@ -150,26 +148,3 @@ minetest.register_craftitem("mobs_slimes:lava_slime", {
image = "mobs_lava_slimeball.png",
description="Lava Slime Ball",
})
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_slimes:lava_spawner", {
description = "Lava Slime Spawner",
tiles = {"lava_slime_front.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="slimes_death", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_slimes:lava_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local p = pos
p.y = p.y + 1
minetest.add_entity(p, "mobs_slimes:lava_big")
end
})
end
......@@ -3,8 +3,6 @@
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
-- yeti
mobs:register_mob("mobs_yeti:yeti", {
type = "monster",
......@@ -98,25 +96,4 @@ if mobs.mod and mobs.mod == "redo" then
return item
end
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_yeti:yeti_spawner", {
description = "Yeti Spawner",
tiles = {"mobs_yeti_face.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="mobs_stonemonster", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_yeti:yeti_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_yeti:yeti")
end
})
end
end
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
local ENABLE_MINI_ZOMBIE = true
-- zombie
......@@ -118,25 +117,4 @@ if mobs.mod and mobs.mod == "redo" then
on_use = minetest.item_eat(-3),
})
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_zombie:zombie_spawner", {
description = "Zombie Spawner",
tiles = {"zombie_head.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="mobs_zombie_death", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_zombie:zombie_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_zombie:zombie")
end
})
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment