parent
92593968db
commit
856b45c7a2
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
|
|
||||||
-- creeper
|
-- creeper
|
||||||
mobs:register_mob("mobs_creeper:creeper", {
|
mobs:register_mob("mobs_creeper:creeper", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
|
@ -50,27 +48,6 @@ if mobs.mod and mobs.mod == "redo" then
|
||||||
{"air"},
|
{"air"},
|
||||||
-1, 20, 30, 20000, 1, -31000, 31000
|
-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
|
end
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
local ENABLE_PUMPKIN_BOOM = true
|
local ENABLE_PUMPKIN_BOOM = true
|
||||||
|
|
||||||
mobs:register_mob("mobs_pumpking:pumpking", {
|
mobs:register_mob("mobs_pumpking:pumpking", {
|
||||||
|
@ -109,25 +108,4 @@ if mobs.mod and mobs.mod == "redo" then
|
||||||
})
|
})
|
||||||
end
|
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
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
local spice_duration = 20.0 --seconds
|
local spice_duration = 20.0 --seconds
|
||||||
local spice_buff_speed = 1 --add to physics multiplier
|
local spice_buff_speed = 1 --add to physics multiplier
|
||||||
local spice_buff_jump = 0.5 --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
|
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
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
|
|
||||||
mobs:register_mob("mobs_senderman:senderman", {
|
mobs:register_mob("mobs_senderman:senderman", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
visual = "mesh",
|
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)
|
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
|
end
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
|
|
||||||
-- sounds
|
-- sounds
|
||||||
local green_sounds = {
|
local green_sounds = {
|
||||||
damage = "slimes_damage",
|
damage = "slimes_damage",
|
||||||
|
@ -141,26 +139,4 @@ minetest.register_craftitem("mobs_slimes:green_slimeball", {
|
||||||
image = "jeija_glue.png",
|
image = "jeija_glue.png",
|
||||||
description="Green Slime Ball",
|
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
|
end
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
|
|
||||||
-- sounds
|
-- sounds
|
||||||
local lava_sounds = {
|
local lava_sounds = {
|
||||||
damage = "slimes_damage",
|
damage = "slimes_damage",
|
||||||
|
@ -150,26 +148,4 @@ minetest.register_craftitem("mobs_slimes:lava_slime", {
|
||||||
image = "zmobs_lava_orb.png",
|
image = "zmobs_lava_orb.png",
|
||||||
description="Lava Slime Ball",
|
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
|
end
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
|
|
||||||
-- yeti
|
-- yeti
|
||||||
mobs:register_mob("mobs_yeti:yeti", {
|
mobs:register_mob("mobs_yeti:yeti", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
|
@ -98,25 +96,4 @@ if mobs.mod and mobs.mod == "redo" then
|
||||||
return item
|
return item
|
||||||
end
|
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
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
if mobs.mod and mobs.mod == "redo" then
|
if mobs.mod and mobs.mod == "redo" then
|
||||||
|
|
||||||
local ENABLE_SPAWN_NODE = true
|
|
||||||
local ENABLE_MINI_ZOMBIE = true
|
local ENABLE_MINI_ZOMBIE = true
|
||||||
|
|
||||||
-- zombie
|
-- zombie
|
||||||
|
@ -116,25 +115,4 @@ if mobs.mod and mobs.mod == "redo" then
|
||||||
on_use = minetest.item_eat(1),
|
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
|
end
|
||||||
|
|
Loading…
Reference in New Issue