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
82ea2241
Commit
82ea2241
authored
Jan 18, 2019
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak pig_evil
parent
6130294f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
mobs/pig_evil.lua
mobs/pig_evil.lua
+8
-8
spawn.lua
spawn.lua
+1
-1
No files found.
mobs/pig_evil.lua
View file @
82ea2241
local
pigdef
=
{
type
=
"monster"
,
passive
=
tru
e
,
passive
=
fals
e
,
reach
=
3
,
damage
=
2
,
attack_type
=
"
dogfight
"
,
explosion_radius
=
2
,
hp_min
=
1
2
,
hp_max
=
22
,
damage
=
1
2
,
attack_type
=
"
explode
"
,
explosion_radius
=
4
,
hp_min
=
6
2
,
hp_max
=
125
,
armor
=
130
,
collisionbox
=
{
-
0
.
4
,
0
,
-
0
.
4
,
0
.
4
,
1
,
0
.
4
},
visual
=
"mesh"
,
...
...
@@ -64,10 +64,10 @@ local pigdef = {
end
,
}
if
dmobs
.
destructive
then
--
if dmobs.destructive then
pigdef
.
sounds
.
explode
=
"tnt_explode"
pigdef
.
attack_type
=
"explode"
end
--
end
mobs
:
register_mob
(
"dmobs:pig_evil"
,
pigdef
)
...
...
spawn.lua
View file @
82ea2241
...
...
@@ -42,7 +42,7 @@ end
--mobs:register_spawn("dmobs:dragon", {"default:leaves","default:dirt_with_grass"}, 20, 10, 64000, 2, 31000)
mobs
:
register_spawn
(
"dmobs:pig_evil"
,
{
"group:leaves"
},
20
,
10
,
3
2000
,
510
,
2000
)
mobs
:
register_spawn
(
"dmobs:pig_evil"
,
{
"group:leaves"
},
20
,
10
,
2000
,
510
,
2000
)
if
dmobs
.
dragons
then
--mobs:register_spawn("dmobs:dragon2", {"default:pine_needles"}, 20, 10, 64000, 2, 31000)
...
...
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