fire spirit additions

This commit is contained in:
tenplus1 2021-06-07 17:45:41 +01:00
parent 949bfec484
commit 9b3c1e156f
2 changed files with 30 additions and 16 deletions

View File

@ -1,6 +1,16 @@
local S = mobs.intllib local S = mobs.intllib
local mob_drops = {
{name = "fireflies:firefly", chance = 1, min = 1, max = 1}
}
if minetest.get_modpath("ethereal") then
table.insert(mob_drops,
{name = "ethereal:fire_dust", chance = 1, min = 1, max = 1})
end
-- Fire Spirit -- Fire Spirit
mobs:register_mob("mobs_monster:fire_spirit", { mobs:register_mob("mobs_monster:fire_spirit", {
@ -22,6 +32,8 @@ mobs:register_mob("mobs_monster:fire_spirit", {
glow = 14, glow = 14,
blood_texture = "fire_basic_flame.png", blood_texture = "fire_basic_flame.png",
immune_to = { immune_to = {
{"bucket:bucket_water", 1},
{"bucket:bucket_river_water", 1},
{"all"} {"all"}
}, },
makes_footstep_sound = false, makes_footstep_sound = false,
@ -34,9 +46,8 @@ mobs:register_mob("mobs_monster:fire_spirit", {
walk_velocity = 2, walk_velocity = 2,
run_velocity = 3, run_velocity = 3,
jump = true, jump = true,
drops = { jump_height = 6,
{name = "fireflies:firefly", chance = 2, min = 1, max = 1} drops = mob_drops,
},
water_damage = 1, water_damage = 1,
lava_damage = 0, lava_damage = 0,
fire_damage = 0, fire_damage = 0,
@ -56,7 +67,7 @@ mobs:register_mob("mobs_monster:fire_spirit", {
self.flame_timer = (self.flame_timer or 0) + dtime self.flame_timer = (self.flame_timer or 0) + dtime
if self.flame_timer < 0.5 then if self.flame_timer < 0.25 then
return return
end end
@ -65,24 +76,23 @@ mobs:register_mob("mobs_monster:fire_spirit", {
local pos = self.object:get_pos() local pos = self.object:get_pos()
-- pos, amount, texture, min_size, max_size, radius, gravity, glow, fall -- pos, amount, texture, min_size, max_size, radius, gravity, glow, fall
mobs:effect(pos, 5, "fire_basic_flame.png", 1, 2, 0.5, 0.5, 14, nil) mobs:effect(pos, 5, "fire_basic_flame.png", 1, 2, 0.1, 0.2, 14, nil)
end end
}) })
--[[
if not mobs.custom_spawn_monster then if not mobs.custom_spawn_monster then
mobs:spawn({ mobs:spawn({
name = "mobs_monster:dirt_monster", name = "mobs_monster:fire_spirit",
nodes = {"default:dirt_with_grass", "ethereal:gray_dirt", "ethereal:dry_dirt"}, nodes = {"default:obsidian", "caverealms:hot_cobble"},
min_light = 0, neighbors = {"group:fire"},
max_light = 7, min_light = 12,
chance = 6000, max_light = 15,
active_object_count = 2, chance = 1500,
min_height = 0, active_object_count = 1,
day_toggle = false, max_height = -150
}) })
end end
]]
mobs:register_egg("mobs_monster:fire_spirit", S("Fire Spirit"), "fire_basic_flame.png", 1) mobs:register_egg("mobs_monster:fire_spirit", S("Fire Spirit"), "fire_basic_flame.png", 1)

View File

@ -41,4 +41,8 @@ Land Guard
- These huge monsters roam the land in cold, hot and temperate areas and don't like players wandering around their domain. - These huge monsters roam the land in cold, hot and temperate areas and don't like players wandering around their domain.
Fire Spirit
- Fire Spirits will not tolerate players roaming around their domain and will fiercely attack until their dying puff of smoke. Will drop it's spirit and some fire dust when using ethereal.
Lucky Blocks: 11 Lucky Blocks: 11