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
0b62965e
Commit
0b62965e
authored
Sep 22, 2016
by
Tai Kedzierski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always pig, conditionally explode
parent
84cd5c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
baddies.lua
baddies.lua
+12
-9
No files found.
baddies.lua
View file @
0b62965e
-- Fox
if
dmobs
.
destructive
then
mobs
:
register_mob
(
"dmobs:pig_evil"
,
{
local
pigdef
=
{
type
=
"monster"
,
passive
=
true
,
reach
=
3
,
damage
=
2
,
attack_type
=
"
explode
"
,
attack_type
=
"
dogfight
"
,
explosion_radius
=
2
,
hp_min
=
12
,
hp_max
=
22
,
...
...
@@ -31,9 +29,8 @@ mobs:register_mob("dmobs:pig_evil", {
drops
=
{
{
name
=
"mobs:meat_raw"
,
chance
=
2
,
min
=
1
,
max
=
1
},
},
sounds
=
{
random
=
"mobs_pig"
,
explode
=
"tnt_explode"
,
pigdef
.
sounds
=
{
random
=
"mobs_pig"
,
},
do_custom
=
function
(
self
)
if
self
.
state
==
"attack"
then
...
...
@@ -65,12 +62,18 @@ mobs:register_mob("dmobs:pig_evil", {
mobs
:
capture_mob
(
self
,
clicker
,
0
,
5
,
50
,
false
,
nil
)
end
,
})
}
if
dmobs
.
destructive
then
pigdef
.
sounds
.
explode
=
"mobs_pig"
pigdef
.
attack_type
=
"explode"
,
end
mobs
:
register_mob
(
"dmobs:pig_evil"
,
pigdef
)
mobs
:
register_spawn
(
"dmobs:pig_evil"
,
{
"default:pine_needles"
,
"default:leaves"
},
20
,
10
,
15000
,
2
,
31000
)
mobs
:
register_egg
(
"dmobs:pig_evil"
,
"kamikaze Pig"
,
"wool_pink.png"
,
1
)
end
-- Fox
mobs
:
register_mob
(
"dmobs:fox"
,
{
...
...
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