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
cd201150
Commit
cd201150
authored
Sep 01, 2021
by
tenplus1
Browse files
add nether varients of dungeon master
parent
1c4ce9e4
Changes
5
Hide whitespace changes
Inline
Side-by-side
dungeon_master.lua
View file @
cd201150
local
S
=
mobs
.
intllib
local
master_types
=
{
{
nodes
=
{
"nether:rack"
},
skins
=
{
"mobs_dungeon_master_nether.png"
},
},
{
nodes
=
{
"nether:rack_deep"
},
skins
=
{
"mobs_dungeon_master_netherdeep.png"
},
}
}
-- Dungeon Master by PilzAdam
...
...
@@ -59,13 +69,39 @@ mobs:register_mob("mobs_monster:dungeon_master", {
speed_normal
=
15
,
speed_run
=
15
,
},
-- check surrounding nodes and spawn a specific monster
on_spawn
=
function
(
self
)
local
pos
=
self
.
object
:
get_pos
()
;
pos
.
y
=
pos
.
y
-
1
local
tmp
for
n
=
1
,
#
master_types
do
tmp
=
master_types
[
n
]
if
minetest
.
find_node_near
(
pos
,
1
,
tmp
.
nodes
)
then
self
.
base_texture
=
tmp
.
skins
self
.
object
:
set_properties
({
textures
=
tmp
.
skins
})
if
tmp
.
drops
then
self
.
drops
=
tmp
.
drops
end
return
true
end
end
return
true
-- run only once, false/nil runs every activation
end
})
if
not
mobs
.
custom_spawn_monster
then
mobs
:
spawn
({
name
=
"mobs_monster:dungeon_master"
,
nodes
=
{
"default:stone"
},
nodes
=
{
"default:stone"
,
"nether:rack"
,
"nether:rack_deep"
},
max_light
=
5
,
chance
=
9000
,
active_object_count
=
1
,
...
...
license.txt
View file @
cd201150
...
...
@@ -30,3 +30,7 @@ mobs.fireball.png was originally made by Sapier and edited by Benrob:
--
-- (c) Sapier
-- Contact sapier a t gmx net
Textures created by wwar (cc0)
mobs_dungeon_master_nether.png
mobs_dungeon_master_netherdeep.png
mese_monster.lua
View file @
cd201150
...
...
@@ -12,6 +12,9 @@ mobs:register_mob("mobs_monster:mese_monster", {
shoot_interval
=
0
.
5
,
arrow
=
"mobs_monster:mese_arrow"
,
shoot_offset
=
2
,
--arrow_override = function(self)
-- self.velocity = 20
--end,
hp_min
=
10
,
hp_max
=
25
,
armor
=
80
,
...
...
textures/mobs_dungeon_master_nether.png
0 → 100644
View file @
cd201150
3.12 KB
textures/mobs_dungeon_master_netherdeep.png
0 → 100644
View file @
cd201150
2.73 KB
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