Commit 856b45c7 authored by blert2112's avatar blert2112
Browse files

removed spawners

spawners are automatically created by the mobs_redo mod
parent 92593968
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
-- creeper
mobs:register_mob("mobs_creeper:creeper", {
type = "monster",
......@@ -50,27 +48,6 @@ if mobs.mod and mobs.mod == "redo" then
{"air"},
-1, 20, 30, 20000, 1, -31000, 31000
)
mobs:register_egg("mobs_creeper:creeper", "Creeper", "mobs_creeper_inv.png", 1)
mobs:register_egg("mobs_creeper:creeper", "Creeper", "mobs_creeper_inv.png", 1)
-- spawner block
if ENABLE_SPAWN_NODE then
minetest.register_node("mobs_creeper:creeper_spawner", {
description = "Creeper Spawner",
tiles = {"mobs_creeper_face.png"},
is_ground_content = false,
groups = {cracky=3, stone=1, mob_spawner=1},
sounds = default.node_sound_stone_defaults({
dug = {name="tnt_explode", gain=0.25}
})
})
minetest.register_abm({
nodenames = {"mobs_creeper:creeper_spawner"},
interval = 60.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs_creeper:creeper")
end
})
end
end
\ No newline at end of file
if mobs.mod and mobs.mod == "redo" then
local ENABLE_SPAWN_NODE = true
local ENABLE_PUMPKIN_BOOM = true
mobs:register_mob("mobs_pumpking:pumpking", {
......@@ -109,25 +108,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
......@@ -106,25 +105,4 @@ if mobs.mod and mobs.mod == "redo" then
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,4 @@ minetest.register_craftitem("mobs_slimes:green_slimeball", {
image = "jeija_glue.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,4 @@ minetest.register_craftitem("mobs_slimes:lava_slime", {
image = "zmobs_lava_orb.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
......@@ -116,25 +115,4 @@ if mobs.mod and mobs.mod == "redo" then
on_use = minetest.item_eat(1),
})
-- 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