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_more_monsters
Commits
a6740a8d
Commit
a6740a8d
authored
Nov 07, 2017
by
Milan
Browse files
add bone drops to pumpking,sandworm,senderman,yeti,zombie
replace random spawn with regular spawnrule for minizombie
parent
054236b1
Changes
5
Hide whitespace changes
Inline
Side-by-side
mobs_pumpking/init.lua
View file @
a6740a8d
...
...
@@ -38,7 +38,8 @@ if mobs.mod and mobs.mod == "redo" then
view_range
=
25
,
stepheight
=
1
.
1
,
drops
=
{
{
name
=
"farming:jackolantern"
,
chance
=
1
,
min
=
1
,
max
=
1
}
{
name
=
"farming:jackolantern"
,
chance
=
1
,
min
=
1
,
max
=
1
},
{
name
=
"ethereal:bone"
,
chance
=
2
,
min
=
2
,
max
=
4
}
},
lifetimer
=
180
,
-- 3 minutes
shoot_interval
=
135
,
-- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
...
...
mobs_sandworm/init.lua
View file @
a6740a8d
...
...
@@ -41,7 +41,8 @@ if mobs.mod and mobs.mod == "redo" then
stepheight
=
1
.
1
,
drops
=
{
{
name
=
"mobs_sandworm:wormflesh_raw"
,
chance
=
2
,
min
=
1
,
max
=
5
},
{
name
=
"mobs_sandworm:spice"
,
chance
=
2
,
min
=
1
,
max
=
1
}
{
name
=
"mobs_sandworm:spice"
,
chance
=
2
,
min
=
1
,
max
=
1
},
{
name
=
"ethereal:bone"
,
chance
=
2
,
min
=
2
,
max
=
4
}
}
})
...
...
mobs_senderman/init.lua
View file @
a6740a8d
...
...
@@ -29,7 +29,8 @@ if mobs.mod and mobs.mod == "redo" then
run_velocity
=
6
,
stepheight
=
1
.
1
,
drops
=
{
{
name
=
"default:diamond"
,
chance
=
1
,
min
=
1
,
max
=
2
,}
{
name
=
"default:diamond"
,
chance
=
1
,
min
=
1
,
max
=
1
},
{
name
=
"ethereal:bone"
,
chance
=
2
,
min
=
2
,
max
=
6
}
}
})
...
...
mobs_yeti/init.lua
View file @
a6740a8d
...
...
@@ -42,7 +42,8 @@ if mobs.mod and mobs.mod == "redo" then
stepheight
=
1
.
1
,
floats
=
0
,
drops
=
{
{
name
=
"default:ice"
,
chance
=
1
,
min
=
1
,
max
=
3
,}
{
name
=
"default:ice"
,
chance
=
1
,
min
=
1
,
max
=
3
},
{
name
=
"ethereal:bone"
,
chance
=
2
,
min
=
2
,
max
=
4
}
},
replace_rate
=
50
,
replace_what
=
{
"air"
},
...
...
mobs_zombie/init.lua
View file @
a6740a8d
if
mobs
.
mod
and
mobs
.
mod
==
"redo"
then
local
ENABLE_MINI_ZOMBIE
=
true
-- zombie
mobs
:
register_mob
(
"mobs_zombie:zombie"
,
{
type
=
"monster"
,
...
...
@@ -42,18 +39,11 @@ if mobs.mod and mobs.mod == "redo" then
run_velocity
=
0
.
5
,
jump
=
false
,
drops
=
{
{
name
=
"mobs_zombie:rotten_flesh"
,
chance
=
1
,
min
=
1
,
max
=
3
,}
{
name
=
"mobs_zombie:rotten_flesh"
,
chance
=
1
,
min
=
1
,
max
=
3
},
{
name
=
"ethereal:bone"
,
chance
=
2
,
min
=
2
,
max
=
4
}
},
lifetimer
=
180
,
-- 3 minutes
shoot_interval
=
135
,
-- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
do_custom
=
function
(
self
)
if
ENABLE_MINI_ZOMBIE
and
self
.
lifetimer
<=
self
.
shoot_interval
then
if
math.random
(
100
)
<=
50
then
minetest
.
add_entity
(
self
.
object
:
getpos
(),
"mobs_zombie:zombie_mini"
)
end
self
.
shoot_interval
=
self
.
shoot_interval
-
45
end
end
})
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
...
...
@@ -62,6 +52,11 @@ if mobs.mod and mobs.mod == "redo" then
{
"air"
},
-
1
,
7
,
30
,
10000
,
2
,
-
31000
,
31000
)
mobs
:
spawn_specific
(
"mobs_zombie:zombie_mini"
,
{
"default:stone"
,
"default:dirt_with_grass"
},
{
"air"
},
-
1
,
7
,
30
,
10000
,
2
,
-
31000
,
31000
)
mobs
:
register_egg
(
"mobs_zombie:zombie"
,
"Zombie"
,
"zombie_head.png"
,
0
)
-- mini zombie
...
...
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