Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Illuna-Minetest
mobs_monster
Commits
949bfec4
Commit
949bfec4
authored
May 12, 2021
by
tenplus1
Browse files
initial fire spirit upload
parent
e39d06b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
fire_spirit.lua
0 → 100644
View file @
949bfec4
local
S
=
mobs
.
intllib
-- Fire Spirit
mobs
:
register_mob
(
"mobs_monster:fire_spirit"
,
{
type
=
"monster"
,
passive
=
false
,
attack_type
=
"dogfight"
,
pathfinding
=
true
,
reach
=
2
,
damage
=
4
,
hp_min
=
25
,
hp_max
=
45
,
armor
=
100
,
collisionbox
=
{
-
0
.
1
,
-
0
.
1
,
-
0
.
1
,
0
.
1
,
0
.
1
,
0
.
1
},
visual_scale
=
{
x
=
0
.
5
,
y
=
0
.
5
,
z
=
0
.
5
},
visual
=
"sprite"
,
textures
=
{
{
"mobs_fire_spirit.png"
}
},
glow
=
14
,
blood_texture
=
"fire_basic_flame.png"
,
immune_to
=
{
{
"all"
}
},
makes_footstep_sound
=
false
,
sounds
=
{
random
=
"fire_fire"
,
damage
=
"fire_extinguish_flame"
,
death
=
"fire_extinguish_flame"
},
view_range
=
14
,
walk_velocity
=
2
,
run_velocity
=
3
,
jump
=
true
,
drops
=
{
{
name
=
"fireflies:firefly"
,
chance
=
2
,
min
=
1
,
max
=
1
}
},
water_damage
=
1
,
lava_damage
=
0
,
fire_damage
=
0
,
light_damage
=
0
,
fall_damage
=
false
,
fear_height
=
8
,
animation
=
{},
on_die
=
function
(
self
,
pos
)
mobs
:
effect
(
pos
,
20
,
"tnt_smoke.png"
,
3
,
5
,
2
,
0
.
5
,
nil
,
false
)
self
.
object
:
remove
()
end
,
do_custom
=
function
(
self
,
dtime
)
self
.
flame_timer
=
(
self
.
flame_timer
or
0
)
+
dtime
if
self
.
flame_timer
<
0
.
5
then
return
end
self
.
flame_timer
=
0
local
pos
=
self
.
object
:
get_pos
()
-- 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
)
end
})
--[[
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "mobs_monster:dirt_monster",
nodes = {"default:dirt_with_grass", "ethereal:gray_dirt", "ethereal:dry_dirt"},
min_light = 0,
max_light = 7,
chance = 6000,
active_object_count = 2,
min_height = 0,
day_toggle = false,
})
end
]]
mobs
:
register_egg
(
"mobs_monster:fire_spirit"
,
S
(
"Fire Spirit"
),
"fire_basic_flame.png"
,
1
)
init.lua
View file @
949bfec4
...
...
@@ -29,6 +29,7 @@ dofile(path .. "lava_flan.lua") -- Zeg9
dofile
(
path
..
"mese_monster.lua"
)
dofile
(
path
..
"spider.lua"
)
-- AspireMint
dofile
(
path
..
"land_guard.lua"
)
dofile
(
path
..
"fire_spirit.lua"
)
-- Load custom spawning
...
...
textures/mobs_fire_spirit.png
0 → 100644
View file @
949bfec4
274 Bytes
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment