mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +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:
parent
416a8a9110
commit
d327fcb74a
@ -25,7 +25,6 @@ mobs:register_mob("mobs:bee", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- drops honey when killed
|
-- drops honey when killed
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:honey",
|
{name = "mobs:honey",
|
||||||
|
@ -7,7 +7,7 @@ mobs:register_mob("mobs:bunny", {
|
|||||||
-- is it aggressive
|
-- is it aggressive
|
||||||
passive = true,
|
passive = true,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 1, hp_max = 4, armor = 200,
|
hp_min = 3, hp_max = 6, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
|
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -25,7 +25,6 @@ mobs:register_mob("mobs:bunny", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
|
||||||
-- drops meat when deat
|
-- drops meat when deat
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw",
|
{name = "mobs:meat_raw",
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
-- Chicken by JK Murray
|
-- Chicken by JK Murray
|
||||||
|
|
||||||
mobs:register_mob("mobs:chicken", {
|
mobs:register_mob("mobs:chicken", {
|
||||||
@ -7,7 +6,7 @@ mobs:register_mob("mobs:chicken", {
|
|||||||
-- is it aggressive
|
-- is it aggressive
|
||||||
passive = true,
|
passive = true,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 5, hp_max = 10, armor = 200,
|
hp_min = 4, hp_max = 8, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
|
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -35,7 +34,6 @@ mobs:register_mob("mobs:chicken", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- drops raw chicken when dead
|
-- drops raw chicken when dead
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:chicken_raw",
|
{name = "mobs:chicken_raw",
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
mobs:register_mob("mobs:cow", {
|
mobs:register_mob("mobs:cow", {
|
||||||
-- animal, monster, npc, barbarian
|
-- animal, monster, npc, barbarian
|
||||||
type = "animal",
|
type = "animal",
|
||||||
-- aggressive, does 6 damage to player when threatened
|
-- aggressive, does 5 damage to player when threatened
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
damage = 6,
|
damage = 5,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 20, hp_max = 30, armor = 200,
|
hp_min = 20, hp_max = 30, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
@ -30,8 +30,7 @@ mobs:register_mob("mobs:cow", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
run_velocity = 2,
|
run_velocity = 2,
|
||||||
jump = true,
|
jump = false,
|
||||||
step = 0.5,
|
|
||||||
-- drops raw meat when dead
|
-- drops raw meat when dead
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw",
|
{name = "mobs:meat_raw",
|
||||||
|
@ -1,22 +1,33 @@
|
|||||||
|
|
||||||
|
-- Creeper by Davedevils (from his subgame MineClone)
|
||||||
|
|
||||||
mobs:register_mob("mobs:creeper", {
|
mobs:register_mob("mobs:creeper", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_min = 40,
|
-- agressive, does 4 damage to player when hit
|
||||||
hp_max = 50,
|
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},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_tree_monster.x",
|
mesh = "mobs_tree_monster.x",
|
||||||
--textures = {"mobs_tree_monster.png"},
|
drawtype = "front",
|
||||||
available_textures = {
|
available_textures = {
|
||||||
total = 1,
|
total = 1,
|
||||||
texture_1 = {"mobs_creeper.png"},
|
texture_1 = {"mobs_creeper.png"},
|
||||||
},
|
},
|
||||||
visual_size = {x=4.5,y=4.5},
|
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,
|
makes_footstep_sound = true,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
walk_velocity = 2,
|
walk_velocity = 2,
|
||||||
run_velocity = 4,
|
run_velocity = 4,
|
||||||
damage = 0,
|
|
||||||
drops = {
|
drops = {
|
||||||
{name = "default:torch",
|
{name = "default:torch",
|
||||||
chance = 10,
|
chance = 10,
|
||||||
@ -36,13 +47,10 @@ mobs:register_mob("mobs:creeper", {
|
|||||||
max = 3,},
|
max = 3,},
|
||||||
},
|
},
|
||||||
light_resistant = true,
|
light_resistant = true,
|
||||||
armor = 80,
|
|
||||||
drawtype = "front",
|
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 15,
|
lava_damage = 15,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
disable_fall_damage = false,
|
disable_fall_damage = false,
|
||||||
attack_type = "kamicaze",
|
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 15,
|
speed_normal = 15,
|
||||||
speed_run = 15,
|
speed_run = 15,
|
||||||
@ -59,8 +67,6 @@ mobs:register_mob("mobs:creeper", {
|
|||||||
random = "mobs_treemonster",
|
random = "mobs_treemonster",
|
||||||
},
|
},
|
||||||
jump = true,
|
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_spawn("mobs:creeper", {"default:dirt_with_grass"}, 20, 8, 9000, 1, 31000)
|
||||||
mobs:register_egg("mobs:creeper", "Creeper", "mobs_creeper_inv.png", 1)
|
mobs:register_egg("mobs:creeper", "Creeper", "mobs_creeper_inv.png", 1)
|
||||||
|
@ -31,7 +31,6 @@ mobs:register_mob("mobs:dirt_monster", {
|
|||||||
walk_velocity = 3,
|
walk_velocity = 3,
|
||||||
run_velocity = 5,
|
run_velocity = 5,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- drops dirt and coins when dead
|
-- drops dirt and coins when dead
|
||||||
drops = {
|
drops = {
|
||||||
{name = "default:dirt",
|
{name = "default:dirt",
|
||||||
|
@ -40,8 +40,7 @@ mobs:register_mob("mobs:dungeon_master", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
run_velocity = 2,
|
run_velocity = 2,
|
||||||
jump = true,
|
jump = false,
|
||||||
step = 0.5,
|
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
-- drops mese or diamond when dead
|
-- drops mese or diamond when dead
|
||||||
drops = {
|
drops = {
|
||||||
|
@ -7,7 +7,7 @@ mobs:register_mob("mobs:kitten", {
|
|||||||
-- is it aggressive
|
-- is it aggressive
|
||||||
passive = true,
|
passive = true,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 5, hp_max = 10, armor = 200,
|
hp_min = 4, hp_max = 8, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
|
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -32,7 +32,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||||||
walk_velocity = 0.5,
|
walk_velocity = 0.5,
|
||||||
run_velocity = 2,
|
run_velocity = 2,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 2,
|
-- step = 2, (ça aurait été pas mal, voir comment faire pour le remettre comme ça ?)
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
floats = 0,
|
floats = 0,
|
||||||
-- chance of dropping lava orb when dead
|
-- chance of dropping lava orb when dead
|
||||||
|
@ -34,7 +34,6 @@ mobs:register_mob("mobs:mese_monster", {
|
|||||||
walk_velocity = 0.5,
|
walk_velocity = 0.5,
|
||||||
run_velocity = 2,
|
run_velocity = 2,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
fall_speed = -6,
|
fall_speed = -6,
|
||||||
-- drops mese when dead
|
-- drops mese when dead
|
||||||
|
@ -6,9 +6,9 @@ mobs.npc_drops = { "default:pick_steel", "mobs:meat", "default:sword_steel", "de
|
|||||||
mobs:register_mob("mobs:npc", {
|
mobs:register_mob("mobs:npc", {
|
||||||
-- animal, monster, npc
|
-- animal, monster, npc
|
||||||
type = "npc",
|
type = "npc",
|
||||||
-- aggressive, deals 3 damage to player/monster when hit
|
-- aggressive, deals 4 damage to player/monster when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
damage = 3,
|
damage = 4,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
|
@ -33,7 +33,6 @@ mobs:register_mob("mobs:oerkki", {
|
|||||||
run_velocity = 4,
|
run_velocity = 4,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- chance of dropping obsidian and coins
|
-- chance of dropping obsidian and coins
|
||||||
drops = {
|
drops = {
|
||||||
{name = "default:obsidian",
|
{name = "default:obsidian",
|
||||||
|
@ -7,7 +7,7 @@ mobs:register_mob("mobs:rat", {
|
|||||||
-- not aggressive
|
-- not aggressive
|
||||||
passive = true,
|
passive = true,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 1, hp_max = 4, armor = 200,
|
hp_min = 2, hp_max = 4, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
@ -18,6 +18,7 @@ mobs:register_mob("mobs:rat", {
|
|||||||
texture_1 = {"mobs_rat.png"},
|
texture_1 = {"mobs_rat.png"},
|
||||||
texture_2 = {"mobs_rat_brown.png"},
|
texture_2 = {"mobs_rat_brown.png"},
|
||||||
},
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
-- sounds
|
-- sounds
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
sounds = {
|
sounds = {
|
||||||
@ -26,7 +27,6 @@ mobs:register_mob("mobs:rat", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- no drops
|
-- no drops
|
||||||
drops = {},
|
drops = {},
|
||||||
-- damaged by
|
-- damaged by
|
||||||
|
@ -31,7 +31,6 @@ mobs:register_mob("mobs:sand_monster", {
|
|||||||
run_velocity = 5,
|
run_velocity = 5,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
floats = 0,
|
floats = 0,
|
||||||
-- drops desert sand when dead
|
-- drops desert sand when dead
|
||||||
drops = {
|
drops = {
|
||||||
|
@ -30,7 +30,6 @@ mobs:register_mob("mobs:sheep", {
|
|||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- drops raw meat when dead
|
-- drops raw meat when dead
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw",
|
{name = "mobs:meat_raw",
|
||||||
|
@ -20,6 +20,7 @@ mobs:register_mob("mobs:spider", {
|
|||||||
texture_1 = {"mobs_spider.png"},
|
texture_1 = {"mobs_spider.png"},
|
||||||
},
|
},
|
||||||
visual_size = {x=7,y=7},
|
visual_size = {x=7,y=7},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
-- sounds
|
-- sounds
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
@ -32,7 +33,6 @@ mobs:register_mob("mobs:spider", {
|
|||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
run_velocity = 3,
|
run_velocity = 3,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
floats = 0,
|
floats = 0,
|
||||||
-- drops string with a chance of sandstone or crystal spike if Ethereal installed
|
-- 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,
|
run_start = 20, run_end = 40,
|
||||||
punch_start = 50, punch_end = 90,
|
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
|
-- 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)
|
mobs:register_spawn("mobs:spider", {"default:jungleleaves", "default:jungletree"}, 20, -1, 8000, 1, 31000)
|
||||||
|
@ -30,7 +30,6 @@ mobs:register_mob("mobs:stone_monster", {
|
|||||||
walk_velocity = 2,
|
walk_velocity = 2,
|
||||||
run_velocity = 4,
|
run_velocity = 4,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
floats = 0,
|
floats = 0,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
-- chance of dropping torch, iron, lump and coins
|
-- chance of dropping torch, iron, lump and coins
|
||||||
|
@ -30,7 +30,6 @@ mobs:register_mob("mobs:tree_monster", {
|
|||||||
walk_velocity = 0.5,
|
walk_velocity = 0.5,
|
||||||
run_velocity = 2.5,
|
run_velocity = 2.5,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
-- drops saplings or apple
|
-- drops saplings or apple
|
||||||
drops = {
|
drops = {
|
||||||
|
@ -31,7 +31,6 @@ mobs:register_mob("mobs:pumba", {
|
|||||||
walk_velocity = 2,
|
walk_velocity = 2,
|
||||||
run_velocity = 3,
|
run_velocity = 3,
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
-- follows apple
|
-- follows apple
|
||||||
follow = "default:apple",
|
follow = "default:apple",
|
||||||
view_range = 8,
|
view_range = 8,
|
||||||
|
@ -1,18 +1,29 @@
|
|||||||
|
|
||||||
-- Wolf (from Mobs_plus)
|
-- Wolf (from Mobs_plus)
|
||||||
|
|
||||||
mobs:register_mob("mobs:wolf", {
|
mobs:register_mob("mobs:wolf", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_min = 15,
|
-- agressive, does 4 damage to player when hit
|
||||||
hp_max = 20,
|
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},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_wolf.x",
|
mesh = "mobs_wolf.x",
|
||||||
--textures = {"mobs_wolf.png"},
|
drawtype = "front",
|
||||||
available_textures = {
|
available_textures = {
|
||||||
total = 1,
|
total = 1,
|
||||||
texture_1 = {"mobs_wolf.png"},
|
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,
|
makes_footstep_sound = true,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
walk_velocity = 3,
|
walk_velocity = 3,
|
||||||
@ -29,13 +40,10 @@ mobs:register_mob("mobs:wolf", {
|
|||||||
max = 4,},
|
max = 4,},
|
||||||
},
|
},
|
||||||
light_resistant = false,
|
light_resistant = false,
|
||||||
armor = 200,
|
|
||||||
drawtype = "front",
|
|
||||||
water_damage = 1,
|
water_damage = 1,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
light_damage = 2,
|
light_damage = 2,
|
||||||
on_rightclick = nil,
|
on_rightclick = nil,
|
||||||
attack_type = "dogfight",
|
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 15,
|
speed_normal = 15,
|
||||||
speed_run = 15,
|
speed_run = 15,
|
||||||
@ -52,7 +60,5 @@ mobs:register_mob("mobs:wolf", {
|
|||||||
random = "mobs_wolf",
|
random = "mobs_wolf",
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
|
||||||
blood_texture = "mobs_blood.png",
|
|
||||||
})
|
})
|
||||||
mobs:register_spawn("mobs:wolf", {"default:dirt_with_grass"}, 3, -1, 10000, 1, 31000)
|
mobs:register_spawn("mobs:wolf", {"default:dirt_with_grass"}, 3, -1, 10000, 1, 31000)
|
||||||
|
Loading…
Reference in New Issue
Block a user