Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dmobs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
dmobs
Commits
1c994617
Commit
1c994617
authored
8 years ago
by
D00Med
Browse files
Options
Downloads
Patches
Plain Diff
Kamikaze pigs
Added evil explosive piggies
parent
342b788d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
init.lua
+87
-9
87 additions, 9 deletions
init.lua
textures/dmobs_flying_pig_mean.png
+0
-0
0 additions, 0 deletions
textures/dmobs_flying_pig_mean.png
with
87 additions
and
9 deletions
init.lua
+
87
−
9
View file @
1c994617
...
...
@@ -68,12 +68,84 @@ mobs:register_spawn("dmobs:panda", {"default:dirt_with_grass","ethereal:bamboo_d
mobs
:
register_egg
(
"dmobs:panda"
,
"Panda"
,
"default_papyrus.png"
,
1
)
mobs
:
register_mob
(
"dmobs:pig_evil"
,
{
type
=
"monster"
,
passive
=
true
,
reach
=
3
,
damage
=
2
,
attack_type
=
"explode"
,
explosion_radius
=
2
,
hp_min
=
12
,
hp_max
=
22
,
armor
=
130
,
collisionbox
=
{
-
0
.
4
,
0
,
-
0
.
4
,
0
.
4
,
1
,
0
.
4
},
visual
=
"mesh"
,
mesh
=
"flying_pig.b3d"
,
textures
=
{
{
"dmobs_flying_pig_mean.png"
},
},
jump
=
true
,
fly
=
true
,
fall_speed
=
0
,
stepheight
=
1
.
5
,
blood_texture
=
"mobs_blood.png"
,
visual_size
=
{
x
=
1
,
y
=
1
},
makes_footstep_sound
=
true
,
runaway
=
false
,
walk_velocity
=
2
,
run_velocity
=
3
,
run_chance
=
20
,
jump
=
true
,
drops
=
{
{
name
=
"mobs:meat_raw"
,
chance
=
2
,
min
=
1
,
max
=
1
},
},
sounds
=
{
random
=
"mobs_pig"
,
explode
=
"tnt_explode"
,
},
do_custom
=
function
(
self
)
if
self
.
state
==
"attack"
then
self
.
fly
=
false
self
.
fall_speed
=
-
4
end
end
,
water_damage
=
0
,
lava_damage
=
2
,
light_damage
=
0
,
follow
=
{
"default:apple"
},
view_range
=
14
,
animation
=
{
speed_normal
=
10
,
speed_run
=
15
,
walk_start
=
1
,
walk_end
=
20
,
stand_start
=
1
,
stand_end
=
20
,
run_start
=
22
,
run_end
=
28
,
},
on_rightclick
=
function
(
self
,
clicker
)
if
mobs
:
feed_tame
(
self
,
clicker
,
8
,
true
,
true
)
then
return
end
mobs
:
capture_mob
(
self
,
clicker
,
0
,
5
,
50
,
false
,
nil
)
end
,
})
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
)
mobs
:
register_mob
(
"dmobs:pig"
,
{
type
=
"animal"
,
passive
=
fals
e
,
reach
=
1
,
passive
=
tru
e
,
reach
=
4
,
damage
=
2
,
attack_type
=
"dogfight"
,
attack_type
=
"explode"
,
explosion_radius
=
3
,
hp_min
=
12
,
hp_max
=
22
,
armor
=
130
,
...
...
@@ -86,22 +158,28 @@ mobs:register_mob("dmobs:pig", {
jump
=
true
,
fly
=
true
,
fall_speed
=
0
,
stepheight
=
1
0
,
stepheight
=
1
.
5
,
blood_texture
=
"mobs_blood.png"
,
visual_size
=
{
x
=
1
,
y
=
1
},
makes_footstep_sound
=
true
,
runaway
=
tru
e
,
walk_velocity
=
3
,
run_velocity
=
6
,
runaway
=
fals
e
,
walk_velocity
=
2
,
run_velocity
=
3
,
run_chance
=
20
,
jump
=
true
,
drops
=
{
{
name
=
"mobs:meat_raw"
,
chance
=
1
,
min
=
1
,
max
=
1
},
{
name
=
"mobs:meat_raw"
,
chance
=
2
,
min
=
1
,
max
=
1
},
},
sounds
=
{
random
=
"mobs_pig"
,
distance
=
23
,
explode
=
"tnt_explode"
,
},
do_custom
=
function
(
self
)
if
self
.
state
==
"attack"
then
self
.
fly
=
false
self
.
fall_speed
=
-
4
end
end
,
water_damage
=
0
,
lava_damage
=
2
,
light_damage
=
0
,
...
...
This diff is collapsed.
Click to expand it.
textures/dmobs_flying_pig_mean.png
0 → 100644
+
0
−
0
View file @
1c994617
11.2 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment