diff --git a/danglers.lua b/danglers.lua index 8c5df19..46dbff6 100644 --- a/danglers.lua +++ b/danglers.lua @@ -48,6 +48,7 @@ mobs:register_mob("fun_caves:dangler", { }, water_damage = 1, lava_damage = 5, + cold_damage = 1, light_damage = 0, fall_damage = 0, lifetimer = 360, diff --git a/goblin_coal.lua b/goblin_coal.lua index 272a788..1ea0a59 100644 --- a/goblin_coal.lua +++ b/goblin_coal.lua @@ -39,7 +39,8 @@ mobs:register_mob("fun_caves:goblin_coal", { chance = 3, min = 1, max = 10}, }, water_damage = 0, - lava_damage = 2, + lava_damage = 0, + cold_damage = 1, light_damage = 0, follow = {"default:diamond"}, view_range = 10, @@ -114,8 +115,8 @@ mobs:register_mob("fun_caves:goblin_coal", { }) mobs:register_egg("fun_caves:goblin_coal", "Goblin Egg (coal)", "default_mossycobble.png", 1) -mobs:register_spawn("fun_caves:goblin_coal", {"default:stone_with_coal"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 31000) -mobs:register_spawn("fun_caves:goblin_coal", {"default:mossycobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_coal", {"default:coalblock", "default:stone_with_coal"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_coal", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 31000) minetest.register_node("fun_caves:stone_with_coal_trap", { description = "Coal Trap", diff --git a/goblin_cobbler.lua b/goblin_cobbler.lua index e5612cd..5c70e0b 100644 --- a/goblin_cobbler.lua +++ b/goblin_cobbler.lua @@ -43,6 +43,7 @@ mobs:register_mob("fun_caves:goblin_cobble", { }, water_damage = 0, lava_damage = 2, + cold_damage = 1, light_damage = 0, lifetimer = 360, follow = {"default:diamond"}, diff --git a/goblin_copper.lua b/goblin_copper.lua index 819fda3..54f7931 100644 --- a/goblin_copper.lua +++ b/goblin_copper.lua @@ -40,6 +40,7 @@ mobs:register_mob("fun_caves:goblin_copper", { }, water_damage = 0, lava_damage = 2, + cold_damage = 1, light_damage = 0, follow = "default:diamond", view_range = 15, diff --git a/goblin_diamond.lua b/goblin_diamond.lua index 2886d7c..7e99dd4 100644 --- a/goblin_diamond.lua +++ b/goblin_diamond.lua @@ -41,7 +41,8 @@ mobs:register_mob("fun_caves:goblin_diamond", { chance = 5, min = 1, max = 1}, }, water_damage = 0, - lava_damage = 2, + lava_damage = 0, + cold_damage = 1, light_damage = 0, follow = "default:diamond", view_range = 10, @@ -117,7 +118,7 @@ mobs:register_mob("fun_caves:goblin_diamond", { }) mobs:register_egg("fun_caves:goblin_diamond", "Goblin Egg (diamond)", "default_mossycobble.png", 1) mobs:register_spawn("fun_caves:goblin_diamond", {"default:stone_with_diamond" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, 31000) -mobs:register_spawn("fun_caves:goblin_diamond", {"default:mossycobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_diamond", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) minetest.register_node("fun_caves:stone_with_diamond_trap", { description = "Diamond Trap", diff --git a/goblin_digger.lua b/goblin_digger.lua index 60963eb..9d14d40 100644 --- a/goblin_digger.lua +++ b/goblin_digger.lua @@ -134,6 +134,7 @@ mobs:register_mob("fun_caves:goblin_digger", { }, water_damage = 0, lava_damage = 2, + cold_damage = 1, light_damage = 0, lifetimer = 360, follow = {"default:diamond"}, diff --git a/goblin_gold.lua b/goblin_gold.lua index 2696498..47caab3 100644 --- a/goblin_gold.lua +++ b/goblin_gold.lua @@ -39,7 +39,8 @@ mobs:register_mob("fun_caves:goblin_gold", { chance = 5, min = 1, max = 1}, }, water_damage = 0, - lava_damage = 2, + lava_damage = 0, + cold_damage = 1, light_damage = 0, follow = "default:diamond", view_range = 10, @@ -114,7 +115,7 @@ mobs:register_mob("fun_caves:goblin_gold", { }) mobs:register_egg("fun_caves:goblin_gold", "Goblin Egg (gold)", "default_mossycobble.png", 1) mobs:register_spawn("fun_caves:goblin_gold", {"default:stone_with_gold" }, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 2, 31000) -mobs:register_spawn("fun_caves:goblin_gold", {"default:mossycobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_gold", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) minetest.register_node("fun_caves:molten_gold_source", { description = "Molten Gold Source", diff --git a/goblin_iron.lua b/goblin_iron.lua index 5b77bba..0f6be4b 100644 --- a/goblin_iron.lua +++ b/goblin_iron.lua @@ -41,7 +41,8 @@ mobs:register_mob("fun_caves:goblin_iron", { chance = 5, min = 1, max = 1}, }, water_damage = 0, - lava_damage = 2, + lava_damage = 0, + cold_damage = 1, light_damage = 0, follow = "default:diamond", view_range = 10, @@ -116,7 +117,7 @@ mobs:register_mob("fun_caves:goblin_iron", { }) mobs:register_egg("fun_caves:goblin_iron", "Goblin Egg (iron)", "default_mossycobble.png", 1) mobs:register_spawn("fun_caves:goblin_iron", {"default:stone_with_iron"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 3, 31000) -mobs:register_spawn("fun_caves:goblin_iron", {"default:mossycobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_iron", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 2 * fun_caves.goblin_spawn_frequency, 3, 31000) minetest.register_node("fun_caves:stone_with_iron_trap", { description = "Iron Trap", diff --git a/goblin_king.lua b/goblin_king.lua index cae35f9..770ec33 100644 --- a/goblin_king.lua +++ b/goblin_king.lua @@ -40,7 +40,8 @@ mobs:register_mob("fun_caves:goblin_king", { chance = 5, min = 1, max = 1}, }, water_damage = 0, - lava_damage = 2, + lava_damage = 0, + cold_damage = 1, light_damage = 0, follow = "default:diamond", view_range = 10, @@ -119,5 +120,5 @@ mobs:register_mob("fun_caves:goblin_king", { }) mobs:register_egg("fun_caves:goblin_king", "Goblin King Egg", "default_mossycobble.png", 1) mobs:register_spawn("fun_caves:goblin_king", {"default:stone_with_mese"}, 100, 0, 1 * fun_caves.goblin_spawn_frequency, 1, 31000) -mobs:register_spawn("fun_caves:goblin_king", {"default:mossycobble"}, 100, 0, 3 * fun_caves.goblin_spawn_frequency, 3, 31000) +mobs:register_spawn("fun_caves:goblin_king", {"default:mossycobble", "fun_caves:hot_cobble"}, 100, 0, 3 * fun_caves.goblin_spawn_frequency, 3, 31000) diff --git a/lava_flan.lua b/lava_flan.lua index 1638206..91376cb 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -33,6 +33,7 @@ mobs:register_mob("fun_caves:lava_flan", { {name = "mobs:lava_orb", chance = 15, min = 1, max = 1}, }, water_damage = 5, + cold_damage = 5, lava_damage = 0, light_damage = 0, animation = { diff --git a/mobs.lua b/mobs.lua index e0ebddf..fcbdd6d 100644 --- a/mobs.lua +++ b/mobs.lua @@ -20,6 +20,7 @@ end dofile(fun_caves.path .. "/mobs_crafts.lua") dofile(fun_caves.path .. "/danglers.lua") dofile(fun_caves.path .. "/spider.lua") +dofile(fun_caves.path .. "/spider_ice.lua") dofile(fun_caves.path .. "/dirt_monster.lua") dofile(fun_caves.path .. "/stone_monster.lua") dofile(fun_caves.path .. "/lava_flan.lua") diff --git a/mobs_api.lua b/mobs_api.lua index 8a7c5fc..c749928 100644 --- a/mobs_api.lua +++ b/mobs_api.lua @@ -2135,7 +2135,7 @@ minetest.register_entity(name, { light_damage = def.light_damage or 0, water_damage = def.water_damage or 0, lava_damage = def.lava_damage or 0, - cold_damage = def.cold_damage or 1, + cold_damage = def.cold_damage or 0, fall_damage = def.fall_damage or 1, fall_speed = def.fall_speed or -10, -- must be lower than -2 (default: -10) drops = def.drops or {}, diff --git a/nodes.lua b/nodes.lua index 58106f4..c8f9f48 100644 --- a/nodes.lua +++ b/nodes.lua @@ -116,7 +116,7 @@ minetest.register_node("fun_caves:glowing_fungal_stone", { description = "Glowing Fungal Stone", tiles = {"default_stone.png^vmg_glowing_fungal.png",}, is_ground_content = true, - light_source = 14, + light_source = 10, groups = {cracky=3, stone=1}, drop = {items={ {items={"default:cobble"},}, {items={"fun_caves:glowing_fungus",},},},}, sounds = default.node_sound_stone_defaults(), diff --git a/spider_ice.lua b/spider_ice.lua new file mode 100644 index 0000000..a7a41f9 --- /dev/null +++ b/spider_ice.lua @@ -0,0 +1,55 @@ + +-- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture) + +mobs:register_mob("fun_caves:spider_ice", { + docile_by_day = true, + type = "monster", + passive = false, + attack_type = "dogfight", + reach = 2, + damage = 3, + hp_min = 20, + hp_max = 40, + armor = 200, + collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7}, + visual = "mesh", + mesh = "fun_caves_spider.x", + textures = { + {"fun_caves_spider_ice.png"}, + }, + visual_size = {x = 7, y = 7}, + makes_footstep_sound = false, + sounds = { + random = "mobs_spider", + attack = "mobs_spider", + }, + walk_velocity = 1, + run_velocity = 3, + jump = true, + view_range = 15, + floats = 0, + drops = { + {name = "mobs:meat_raw", chance = 1, min = 1, max = 3}, + {name = "wool:white", chance = 1, min = 1, max = 3}, + }, + water_damage = 0, + lava_damage = 5, + cold_damage = 0, + light_damage = 0, + animation = { + speed_normal = 15, + speed_run = 15, + stand_start = 1, + stand_end = 1, + walk_start = 20, + walk_end = 40, + run_start = 20, + run_end = 40, + punch_start = 50, + punch_end = 90, + }, +}) + +mobs:register_spawn("fun_caves:spider_ice", {"default:ice"}, 14, 0, 1000, 2, 31000) + +mobs:register_egg("fun_caves:spider_ice", "Ice Spider", "mobs_cobweb.png", 1) diff --git a/textures/fun_caves_spider_ice.png b/textures/fun_caves_spider_ice.png new file mode 100644 index 0000000..74d447d Binary files /dev/null and b/textures/fun_caves_spider_ice.png differ