Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
puppetmaster
Minetest
Commits
dc291218
Commit
dc291218
authored
Feb 17, 2022
by
puppetmaster
Browse files
changes init
parent
7f8c2417
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
atrapa/mods/willy/init.lua
atrapa/mods/willy/init.lua
+21
-13
No files found.
atrapa/mods/willy/init.lua
View file @
dc291218
...
...
@@ -3,7 +3,7 @@ if mobs.mod and mobs.mod== "redo" then
mobs
:
register_mob
(
"willy:willy"
,{
--vida,armadura y reaccion
type
=
"
npc
"
,
type
=
"
animal
"
,
passive
=
true
,
--attack_type = "dogfight",
reach
=
2
,
...
...
@@ -13,7 +13,7 @@ hp_max = 200,
armor
=
200
,
collisionbox
=
{
-
0
.
5
,
-
0
.
5
,
-
0
.
5
,
0
.
5
,
0
.
5
,
0
.
5
},
visual
=
"mesh"
,
--Tamao de nuestro modelo
--Tama
ñ
o de nuestro modelo
visual_size
=
{
x
=
2
,
y
=
2
},
mesh
=
"willy.b3d"
,
--drawtype="front",
...
...
@@ -82,20 +82,28 @@ total=total+1
end
end
)
mobs
:
spawn
({
name
=
"willy:willy"
,
max_light
=
7
,
})
mobs
:
register_spawn
(
"willy:willy"
,
{
"default:dirt_with_grass"
,
"ethereal:green_dirt"
},
20
,
10
,
15000
,
1
,
31000
,
true
)
mobs
:
register_egg
(
"willy:willy"
,
"Willy"
,
"default_dirt.png"
,
1
)
local
spawn_on
=
{
"default:dirt_with_grass"
}
mobs
:
spawn
({
name
=
"willy:willy"
,
nodes
=
spawn_on
,
min_light
=
14
,
interval
=
30
,
chance
=
5000
,
min_height
=
5
,
max_height
=
200
,
day_toggle
=
true
,
})
end
--end
--end
-- mobs:register_spawn("willy:willy",
-- {"default:dirt_with_grass", "ethereal:green_dirt"}, 20, 10, 15000, 1, 31000, true)
-- mobs:register_egg("willy:willy", "Willy", "default_dirt.png", 1)
...
...
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