Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dmobs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Illuna-Minetest
dmobs
Commits
cb8ef827
Commit
cb8ef827
authored
Sep 09, 2016
by
James Stevenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix var names.
parent
c5bf909b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
14 deletions
+12
-14
baddies.lua
baddies.lua
+4
-7
dragons.lua
dragons.lua
+2
-4
init.lua
init.lua
+6
-3
No files found.
baddies.lua
View file @
cb8ef827
-- Enable fireballs/explosions
dmobs
.
destructive
=
true
-- Fox
if
destructive
then
if
d
mobs
.
d
estructive
then
mobs
:
register_mob
(
"dmobs:pig_evil"
,
{
type
=
"monster"
,
passive
=
true
,
...
...
@@ -232,7 +229,7 @@ mobs:register_mob("dmobs:orc_redesign", {
},
})
if
not
dragons
==
true
then
if
not
d
mobs
.
d
ragons
==
true
then
mobs
:
register_spawn
(
"dmobs:orc"
,
{
"default:snow"
,
"default:snow_block"
,
"default:desert_sand"
},
20
,
10
,
15000
,
2
,
31000
)
else
mobs
:
register_spawn
(
"dmobs:orc"
,
{
"default:snow"
,
"default:snow_block"
,
"default:desert_sand"
},
20
,
10
,
350
,
2
,
31000
)
...
...
@@ -289,7 +286,7 @@ mobs:register_mob("dmobs:ogre", {
},
})
if
not
dragons
==
true
then
if
not
d
mobs
.
d
ragons
==
true
then
mobs
:
register_spawn
(
"dmobs:ogre"
,
{
"default:snow"
,
"default:dirt_with_dry_grass"
,
"default:desert_sand"
},
20
,
10
,
15000
,
2
,
31000
)
else
mobs
:
register_spawn
(
"dmobs:ogre"
,
{
"default:snow"
,
"default:dirt_with_dry_grass"
,
"default:desert_sand"
},
20
,
10
,
350
,
2
,
31000
)
...
...
@@ -367,7 +364,7 @@ else
})
--Thanks to Tenplus1
if
destructive
==
true
then
if
d
mobs
.
d
estructive
==
true
then
mobs
:
register_arrow
(
"dmobs:fire"
,
{
visual
=
"sprite"
,
visual_size
=
{
x
=
0
.
5
,
y
=
0
.
5
},
...
...
dragons.lua
View file @
cb8ef827
dmobs
=
{}
--thanks to diriel, blert2112 and taikedz
local
step_custom
=
function
(
self
,
dtime
)
...
...
@@ -14,9 +12,9 @@ local tamed_dragons = {}
local
node_hit
=
{}
local
destructive
=
true
dmobs
.
destructive
=
true
if
destructive
==
true
then
if
d
mobs
.
d
estructive
==
true
then
node_hit
=
function
(
self
,
pos
,
node
)
mobs
:
explosion
(
pos
,
2
,
1
,
1
)
end
...
...
init.lua
View file @
cb8ef827
...
...
@@ -6,15 +6,18 @@ dmobs = {}
dofile
(
minetest
.
get_modpath
(
"dmobs"
)
..
"/api.lua"
)
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs
.
dragons
=
true
-- Enable fireballs/explosions
dmobs
.
destructive
=
true
--peaceful mobs setting
if
not
minetest
.
setting_getbool
(
"only_peaceful_mobs"
)
then
dofile
(
minetest
.
get_modpath
(
"dmobs"
)
..
"/baddies.lua"
)
end
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs
.
dragons
=
true
--friendly mobs
mobs
:
register_mob
(
"dmobs:panda"
,
{
...
...
Write
Preview
Markdown
is supported
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