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
022b94bc
Commit
022b94bc
authored
6 years ago
by
Milan
Browse files
Options
Downloads
Patches
Plain Diff
replace evil pig spawn with spawn_specific, make them passive again
parent
82ea2241
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mobs/pig_evil.lua
+2
-2
2 additions, 2 deletions
mobs/pig_evil.lua
spawn.lua
+2
-1
2 additions, 1 deletion
spawn.lua
with
4 additions
and
3 deletions
mobs/pig_evil.lua
+
2
−
2
View file @
022b94bc
local
pigdef
=
{
type
=
"monster"
,
passive
=
fals
e
,
passive
=
tru
e
,
reach
=
3
,
damage
=
12
,
damage
=
6
,
attack_type
=
"explode"
,
explosion_radius
=
4
,
hp_min
=
62
,
...
...
This diff is collapsed.
Click to expand it.
spawn.lua
+
2
−
1
View file @
022b94bc
...
...
@@ -42,7 +42,8 @@ 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
,
2000
,
510
,
2000
)
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
mobs
:
spawn_specific
(
"dmobs:pig_evil"
,
{
"group:leaves"
},
"air"
,
10
,
20
,
1
,
8000
,
1
,
510
,
2000
)
if
dmobs
.
dragons
then
--mobs:register_spawn("dmobs:dragon2", {"default:pine_needles"}, 20, 10, 64000, 2, 31000)
...
...
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