mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Merge server to github
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
+-= MOBS-MOD for MINETEST =-
|
||||
-= MOBS-MOD for MINETEST =-
|
||||
by PilzAdam, KrupnovPavel, Zeg9 and TenPlus1
|
||||
|
||||
This mod contains the following additions:
|
||||
@ -30,4 +30,4 @@ Changelog:
|
||||
0.4 - Dungeon Masters and Mese Monsters have much better aim due to shoot_offset, also they can both shoot through nodes that aren't walkable (flowers, grass etc) plus new sheep sound :)
|
||||
0.3 - Added LOTT's Spider mob, made Cobwebs, added KPavel's Bee with Honey and Beehives (made texture), Warthogs now have sound and can be tamed, taming of shaved sheep or milked cow with 8 wheat so it will not despawn, many bug fixes :)
|
||||
0.2 - Cooking bucket of milk into cheese now returns empty bucket
|
||||
0.1 - Initial Release
|
||||
0.1 - Initial Release
|
||||
|
0
mods/mobs/models/mobs_chicken.png
Executable file → Normal file
0
mods/mobs/models/mobs_chicken.png
Executable file → Normal file
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
0
mods/mobs/models/mobs_rat.png
Executable file → Normal file
0
mods/mobs/models/mobs_rat.png
Executable file → Normal file
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -10,11 +10,10 @@ mobs:register_mob("mobs:oerkki", {
|
||||
mesh = "mobs_oerkki.x",
|
||||
--textures = {"mobs_oerkki.png"},
|
||||
available_textures = {
|
||||
total = 2,
|
||||
total = 2,
|
||||
texture_1 = {"mobs_oerkki.png"},
|
||||
texture_2 = {"mobs_oerkki2.png"},
|
||||
},
|
||||
|
||||
visual_size = {x=5, y=5},
|
||||
makes_footstep_sound = false,
|
||||
view_range = 16,
|
||||
|
56
mods/mobs/oerkki.lua~
Normal file
56
mods/mobs/oerkki.lua~
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
-- Oerkki
|
||||
|
||||
mobs:register_mob("mobs:oerkki", {
|
||||
type = "monster",
|
||||
hp_min = 40,
|
||||
hp_max = 50,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_oerkki.x",
|
||||
--textures = {"mobs_oerkki.png"},
|
||||
available_textures = {
|
||||
total = 2,
|
||||
texture_1 = {"mobs_oerkki.png"},
|
||||
texture_2 = {"mobs_oerkki2.png"},
|
||||
},
|
||||
visual_size = {x=5, y=5},
|
||||
makes_footstep_sound = false,
|
||||
view_range = 16,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
damage = 5,
|
||||
drops = {
|
||||
{name = "default:obsidian",
|
||||
chance = 3,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
{name = "maptools:silver_coin",
|
||||
chance = 2,
|
||||
min = 2,
|
||||
max = 3,},
|
||||
},
|
||||
armor = 90,
|
||||
drawtype = "front",
|
||||
light_resistant = true,
|
||||
water_damage = 1,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
attack_type = "dogfight",
|
||||
animation = {
|
||||
stand_start = 0,
|
||||
stand_end = 23,
|
||||
walk_start = 24,
|
||||
walk_end = 36,
|
||||
run_start = 37,
|
||||
run_end = 49,
|
||||
punch_start = 37,
|
||||
punch_end = 49,
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
},
|
||||
jump = true,
|
||||
step = 1,
|
||||
blood_texture = "mobs_blood.png",
|
||||
})
|
||||
mobs:register_spawn("mobs:oerkki", {"default:stone"}, 2, -1, 6000, 1, -10)
|
73
mods/mobs/sheep.lua~
Normal file
73
mods/mobs/sheep.lua~
Normal file
@ -0,0 +1,73 @@
|
||||
|
||||
-- Sheep
|
||||
|
||||
mobs:register_mob("mobs:sheep", {
|
||||
type = "animal",
|
||||
hp_min = 10,
|
||||
hp_max = 15,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
textures = {"mobs_sheep.png"},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_sheep.x",
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 1,
|
||||
armor = 200,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1,
|
||||
min = 2,
|
||||
max = 3,},
|
||||
},
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
},
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 80,
|
||||
walk_start = 81,
|
||||
walk_end = 100,
|
||||
},
|
||||
jump = true,
|
||||
step = 1,
|
||||
blood_texture = "mobs_blood.png",
|
||||
passive = true,
|
||||
follow = "farming:wheat",
|
||||
view_range = 8,
|
||||
on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
if item:get_name() == "farming:wheat" then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
self.food = (self.food or 0) + 1
|
||||
if self.food >= 8 then
|
||||
self.food = 0
|
||||
self.naked = false
|
||||
self.tamed = true
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep.png"},
|
||||
mesh = "mobs_sheep.x",
|
||||
})
|
||||
minetest.sound_play("mobs_sheep", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})
|
||||
end
|
||||
return
|
||||
end
|
||||
if clicker:get_inventory() and not self.naked then
|
||||
self.naked = true
|
||||
if minetest.registered_items["wool:white"] then
|
||||
clicker:get_inventory():add_item("main", ItemStack("wool:white "..math.random(1,3)))
|
||||
end
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep_shaved.png"},
|
||||
mesh = "mobs_sheep_shaved.x",
|
||||
})
|
||||
end
|
||||
end,
|
||||
})
|
||||
mobs:register_spawn("mobs:sheep", {"default:dirt_with_grass"}, 20, 8, 9000, 1, 31000)
|
80
mods/mobs/warthog.lua~
Normal file
80
mods/mobs/warthog.lua~
Normal file
@ -0,0 +1,80 @@
|
||||
-- Warthog
|
||||
|
||||
mobs:register_mob("mobs:pumba", {
|
||||
type = "animal",
|
||||
hp_min = 10,
|
||||
hp_max = 15,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
textures = {"mobs_pumba.png"},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_pumba.x",
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 2,
|
||||
armor = 200,
|
||||
drops = {
|
||||
{name = "mobs:pork_raw",
|
||||
chance = 1,
|
||||
min = 2,
|
||||
max = 3,},
|
||||
},
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
sounds = {
|
||||
random = "mobs_pig",
|
||||
},
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
stand_start = 25,
|
||||
stand_end = 55,
|
||||
walk_start = 70,
|
||||
walk_end = 100,
|
||||
},
|
||||
follow = "farming:wheat",
|
||||
view_range = 8,
|
||||
jump = true,
|
||||
step = 1,
|
||||
passive = true,
|
||||
blood_texture = "mobs_blood.png",
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
if item:get_name() == "farming:wheat" then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
self.food = (self.food or 0) + 1
|
||||
if self.food >= 8 then
|
||||
self.food = 0
|
||||
self.tamed = true
|
||||
minetest.sound_play("mobs_pig", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})
|
||||
end
|
||||
return
|
||||
end
|
||||
end,
|
||||
|
||||
})
|
||||
mobs:register_spawn("mobs:pumba", {"default:dirt_with_grass", "default:dirt"}, 20, 8, 9000, 1, 31000)
|
||||
|
||||
-- Porkchops
|
||||
|
||||
minetest.register_craftitem("mobs:pork_raw", {
|
||||
description = "Raw Porkchop",
|
||||
inventory_image = "mobs_pork_raw.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mobs:pork_cooked", {
|
||||
description = "Cooked Porkchop",
|
||||
inventory_image = "mobs_pork_cooked.png",
|
||||
on_use = minetest.item_eat(8),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mobs:pork_cooked",
|
||||
recipe = "mobs:pork_raw",
|
||||
cooktime = 5,
|
||||
})
|
Reference in New Issue
Block a user