1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-07 19:10:23 +01:00

tweak the mobs mod

- Remove the jump step (useless now)
- Some health adjustments
- Some damage adjustments
- Add blood textures for some mobs (spider/red, creeper/green)
- Begin the cleaning and organisation code for the wolfs and creepers
mobs
This commit is contained in:
Ombridride 2015-03-21 19:28:06 +01:00
parent 416a8a9110
commit d327fcb74a
20 changed files with 43 additions and 46 deletions

View File

@ -25,7 +25,6 @@ mobs:register_mob("mobs:bee", {
-- speed and jump
walk_velocity = 1,
jump = true,
step = 1,
-- drops honey when killed
drops = {
{name = "mobs:honey",

View File

@ -7,7 +7,7 @@ mobs:register_mob("mobs:bunny", {
-- is it aggressive
passive = true,
-- health & armor
hp_min = 1, hp_max = 4, armor = 200,
hp_min = 3, hp_max = 6, armor = 200,
-- textures and model
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
visual = "mesh",
@ -25,7 +25,6 @@ mobs:register_mob("mobs:bunny", {
-- speed and jump
walk_velocity = 1,
jump = true,
step = 0.5,
-- drops meat when deat
drops = {
{name = "mobs:meat_raw",

View File

@ -1,4 +1,3 @@
-- Chicken by JK Murray
mobs:register_mob("mobs:chicken", {
@ -7,7 +6,7 @@ mobs:register_mob("mobs:chicken", {
-- is it aggressive
passive = true,
-- health & armor
hp_min = 5, hp_max = 10, armor = 200,
hp_min = 4, hp_max = 8, armor = 200,
-- textures and model
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
@ -35,7 +34,6 @@ mobs:register_mob("mobs:chicken", {
-- speed and jump
walk_velocity = 1,
jump = true,
step = 1,
-- drops raw chicken when dead
drops = {
{name = "mobs:chicken_raw",

View File

@ -4,10 +4,10 @@
mobs:register_mob("mobs:cow", {
-- animal, monster, npc, barbarian
type = "animal",
-- aggressive, does 6 damage to player when threatened
-- aggressive, does 5 damage to player when threatened
passive = false,
attack_type = "dogfight",
damage = 6,
damage = 5,
-- health & armor
hp_min = 20, hp_max = 30, armor = 200,
-- textures and model
@ -30,8 +30,7 @@ mobs:register_mob("mobs:cow", {
-- speed and jump
walk_velocity = 1,
run_velocity = 2,
jump = true,
step = 0.5,
jump = false,
-- drops raw meat when dead
drops = {
{name = "mobs:meat_raw",

View File

@ -1,22 +1,33 @@
-- Creeper by Davedevils (from his subgame MineClone)
mobs:register_mob("mobs:creeper", {
-- animal, monster, npc, barbarian
type = "monster",
hp_min = 40,
hp_max = 50,
-- agressive, does 4 damage to player when hit
passive = false,
attack_type = "kamicaze",
damage = 0,
-- health & armor
hp_min = 40, hp_max = 50, armor = 90,
-- textures and model
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
visual = "mesh",
mesh = "mobs_tree_monster.x",
--textures = {"mobs_tree_monster.png"},
drawtype = "front",
available_textures = {
total = 1,
texture_1 = {"mobs_creeper.png"},
},
visual_size = {x=4.5,y=4.5},
blood_texture = "mobs_creeper_inv.png",
-- Continuer d'organiser le code à partir d'ici --
makes_footstep_sound = true,
view_range = 16,
walk_velocity = 2,
run_velocity = 4,
damage = 0,
drops = {
{name = "default:torch",
chance = 10,
@ -36,13 +47,10 @@ mobs:register_mob("mobs:creeper", {
max = 3,},
},
light_resistant = true,
armor = 80,
drawtype = "front",
water_damage = 0,
lava_damage = 15,
light_damage = 0,
disable_fall_damage = false,
attack_type = "kamicaze",
animation = {
speed_normal = 15,
speed_run = 15,
@ -59,8 +67,6 @@ mobs:register_mob("mobs:creeper", {
random = "mobs_treemonster",
},
jump = true,
step = 1,
blood_texture = "default_wood.png",
})
mobs:register_spawn("mobs:creeper", {"default:dirt_with_grass"}, 20, 8, 9000, 1, 31000)
mobs:register_egg("mobs:creeper", "Creeper", "mobs_creeper_inv.png", 1)

View File

@ -31,7 +31,6 @@ mobs:register_mob("mobs:dirt_monster", {
walk_velocity = 3,
run_velocity = 5,
jump = true,
step = 1,
-- drops dirt and coins when dead
drops = {
{name = "default:dirt",

View File

@ -40,8 +40,7 @@ mobs:register_mob("mobs:dungeon_master", {
-- speed and jump
walk_velocity = 1,
run_velocity = 2,
jump = true,
step = 0.5,
jump = false,
view_range = 16,
-- drops mese or diamond when dead
drops = {

View File

@ -7,7 +7,7 @@ mobs:register_mob("mobs:kitten", {
-- is it aggressive
passive = true,
-- health & armor
hp_min = 5, hp_max = 10, armor = 200,
hp_min = 4, hp_max = 8, armor = 200,
-- textures and model
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",

View File

@ -32,7 +32,7 @@ mobs:register_mob("mobs:lava_flan", {
walk_velocity = 0.5,
run_velocity = 2,
jump = true,
step = 2,
-- step = 2, (ça aurait été pas mal, voir comment faire pour le remettre comme ça ?)
view_range = 16,
floats = 0,
-- chance of dropping lava orb when dead

View File

@ -34,7 +34,6 @@ mobs:register_mob("mobs:mese_monster", {
walk_velocity = 0.5,
run_velocity = 2,
jump = true,
step = 1,
fall_damage = 0,
fall_speed = -6,
-- drops mese when dead

View File

@ -6,9 +6,9 @@ mobs.npc_drops = { "default:pick_steel", "mobs:meat", "default:sword_steel", "de
mobs:register_mob("mobs:npc", {
-- animal, monster, npc
type = "npc",
-- aggressive, deals 3 damage to player/monster when hit
-- aggressive, deals 4 damage to player/monster when hit
passive = false,
damage = 3,
damage = 4,
attack_type = "dogfight",
attacks_monsters = true,
-- health & armor

View File

@ -33,7 +33,6 @@ mobs:register_mob("mobs:oerkki", {
run_velocity = 4,
view_range = 16,
jump = true,
step = 1,
-- chance of dropping obsidian and coins
drops = {
{name = "default:obsidian",

View File

@ -7,7 +7,7 @@ mobs:register_mob("mobs:rat", {
-- not aggressive
passive = true,
-- health & armor
hp_min = 1, hp_max = 4, armor = 200,
hp_min = 2, hp_max = 4, armor = 200,
-- textures and model
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
visual = "mesh",
@ -18,6 +18,7 @@ mobs:register_mob("mobs:rat", {
texture_1 = {"mobs_rat.png"},
texture_2 = {"mobs_rat_brown.png"},
},
blood_texture = "mobs_blood.png",
-- sounds
makes_footstep_sound = false,
sounds = {
@ -26,7 +27,6 @@ mobs:register_mob("mobs:rat", {
-- speed and jump
walk_velocity = 1,
jump = true,
step = 1,
-- no drops
drops = {},
-- damaged by

View File

@ -31,7 +31,6 @@ mobs:register_mob("mobs:sand_monster", {
run_velocity = 5,
view_range = 16,
jump = true,
step = 1,
floats = 0,
-- drops desert sand when dead
drops = {

View File

@ -30,7 +30,6 @@ mobs:register_mob("mobs:sheep", {
-- speed and jump
walk_velocity = 1,
jump = true,
step = 1,
-- drops raw meat when dead
drops = {
{name = "mobs:meat_raw",

View File

@ -20,6 +20,7 @@ mobs:register_mob("mobs:spider", {
texture_1 = {"mobs_spider.png"},
},
visual_size = {x=7,y=7},
blood_texture = "mobs_blood.png",
-- sounds
makes_footstep_sound = true,
sounds = {
@ -32,7 +33,6 @@ mobs:register_mob("mobs:spider", {
walk_velocity = 1,
run_velocity = 3,
jump = true,
step = 1,
view_range = 16,
floats = 0,
-- drops string with a chance of sandstone or crystal spike if Ethereal installed
@ -56,7 +56,6 @@ mobs:register_mob("mobs:spider", {
run_start = 20, run_end = 40,
punch_start = 50, punch_end = 90,
},
blood_texture = "mobs_blood.png",
})
-- spawn on desert stone/crystal dirt, between 0 and 5 light, 1 in 7000 chance, 1 in area up to 71 in height
mobs:register_spawn("mobs:spider", {"default:jungleleaves", "default:jungletree"}, 20, -1, 8000, 1, 31000)

View File

@ -30,7 +30,6 @@ mobs:register_mob("mobs:stone_monster", {
walk_velocity = 2,
run_velocity = 4,
jump = true,
step = 1,
floats = 0,
view_range = 16,
-- chance of dropping torch, iron, lump and coins

View File

@ -30,7 +30,6 @@ mobs:register_mob("mobs:tree_monster", {
walk_velocity = 0.5,
run_velocity = 2.5,
jump = true,
step = 0.5,
view_range = 16,
-- drops saplings or apple
drops = {

View File

@ -31,7 +31,6 @@ mobs:register_mob("mobs:pumba", {
walk_velocity = 2,
run_velocity = 3,
jump = true,
step = 1,
-- follows apple
follow = "default:apple",
view_range = 8,

View File

@ -1,18 +1,29 @@
-- Wolf (from Mobs_plus)
mobs:register_mob("mobs:wolf", {
-- animal, monster, npc, barbarian
type = "monster",
hp_min = 15,
hp_max = 20,
-- agressive, does 4 damage to player when hit
passive = false,
attack_type = "dogfight",
damage = 4,
-- health & armor
hp_min = 15, hp_max = 20, armor = 200,
-- textures and model
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
mesh = "mobs_wolf.x",
--textures = {"mobs_wolf.png"},
drawtype = "front",
available_textures = {
total = 1,
texture_1 = {"mobs_wolf.png"},
},
--visual_size = {x=1, y=1},
--visual_size = {x=1,y=1}, --Quel valeur lui mettre ?
blood_texture = "mobs_blood.png",
-- Continuer d'organiser le code à partir d'ici --
makes_footstep_sound = true,
view_range = 16,
walk_velocity = 3,
@ -29,13 +40,10 @@ mobs:register_mob("mobs:wolf", {
max = 4,},
},
light_resistant = false,
armor = 200,
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 2,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 15,
speed_run = 15,
@ -52,7 +60,5 @@ mobs:register_mob("mobs:wolf", {
random = "mobs_wolf",
},
jump = true,
step = 1,
blood_texture = "mobs_blood.png",
})
mobs:register_spawn("mobs:wolf", {"default:dirt_with_grass"}, 3, -1, 10000, 1, 31000)