added a new skunk mob
This commit is contained in:
parent
47b87f12bb
commit
da3d802a18
@ -43,7 +43,7 @@ mobs:register_mob(
|
|||||||
walk_start = 61,
|
walk_start = 61,
|
||||||
walk_end = 80,
|
walk_end = 80,
|
||||||
punch_start = 90,
|
punch_start = 90,
|
||||||
punch_end = 110,
|
punch_end = 101,
|
||||||
},
|
},
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
mobs:feed_tame(self, clicker, 8, true)
|
mobs:feed_tame(self, clicker, 8, true)
|
||||||
|
@ -12,6 +12,7 @@ dofile(path.."/api.lua")
|
|||||||
-- Animals
|
-- Animals
|
||||||
dofile(path.."/sheep.lua") -- PilzAdam
|
dofile(path.."/sheep.lua") -- PilzAdam
|
||||||
dofile(path.."/boar.lua") -- KrupnoPavel
|
dofile(path.."/boar.lua") -- KrupnoPavel
|
||||||
|
dofile(path.."/skunk.lua") -- Kaadmy
|
||||||
dofile(path.."/mineturtle.lua") -- Kaadmy
|
dofile(path.."/mineturtle.lua") -- Kaadmy
|
||||||
|
|
||||||
-- NPC
|
-- NPC
|
||||||
|
BIN
mods/mobs/models/mobs_skunk.blend
Normal file
BIN
mods/mobs/models/mobs_skunk.blend
Normal file
Binary file not shown.
4399
mods/mobs/models/mobs_skunk.x
Normal file
4399
mods/mobs/models/mobs_skunk.x
Normal file
File diff suppressed because it is too large
Load Diff
53
mods/mobs/skunk.lua
Normal file
53
mods/mobs/skunk.lua
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
-- Boar by KrupnoPavel
|
||||||
|
-- Changed to Skunk and tweaked by Kaadmy
|
||||||
|
|
||||||
|
mobs:register_mob(
|
||||||
|
"mobs:skunk",
|
||||||
|
{
|
||||||
|
type = "animal",
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 1,
|
||||||
|
hp_min = 16,
|
||||||
|
hp_max = 22,
|
||||||
|
armor = 130,
|
||||||
|
collisionbox = {-0.2, -0.45, -0.2, 0.2, 0.1, 0.2},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_skunk.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_skunk.png"},
|
||||||
|
},
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
attack = "mobs_boar_angry",
|
||||||
|
distance = 16,
|
||||||
|
},
|
||||||
|
walk_velocity = 1.5,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = true,
|
||||||
|
follow = "default:apple",
|
||||||
|
view_range = 15,
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:meat_raw",
|
||||||
|
chance = 1, min = 1, max = 2},
|
||||||
|
},
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 7,
|
||||||
|
light_damage = 0,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 20,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 60,
|
||||||
|
walk_start = 61,
|
||||||
|
walk_end = 80,
|
||||||
|
punch_start = 90,
|
||||||
|
punch_end = 101,
|
||||||
|
},
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
mobs:feed_tame(self, clicker, 6, true)
|
||||||
|
mobs:capture_mob(self, clicker, 10, 40, 20, false, nil)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_spawn("mobs:skunk", {"default:dirt_with_grass"}, 20, 10, 15000, 1, 31000)
|
||||||
|
mobs:register_egg("mobs:skunk", "Skunk", "mobs_skunk_inventory.png")
|
BIN
mods/mobs/textures/mobs_skunk.png
Normal file
BIN
mods/mobs/textures/mobs_skunk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
mods/mobs/textures/mobs_skunk.xcf
Normal file
BIN
mods/mobs/textures/mobs_skunk.xcf
Normal file
Binary file not shown.
BIN
mods/mobs/textures/mobs_skunk_inventory.png
Normal file
BIN
mods/mobs/textures/mobs_skunk_inventory.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 912 B |
BIN
mods/mobs/textures/mobs_skunk_inventory.xcf
Normal file
BIN
mods/mobs/textures/mobs_skunk_inventory.xcf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user