Set creeper radius_damage from 3 to 2

Wolves are hostile now
This commit is contained in:
sys4 2017-11-11 18:13:09 +01:00
parent 6241f4ecaf
commit 853837fb40
2 changed files with 64 additions and 59 deletions

View File

@ -5,7 +5,7 @@ mobs:register_mob("creeper:creeper", {
type = "monster", type = "monster",
passive = false, passive = false,
attack_type = "explode", attack_type = "explode",
explosion_radius = 3, explosion_radius = 2,
damage = 21, damage = 21,
hp_min = 30, hp_min = 30,
hp_max = 40, hp_max = 40,

View File

@ -1,64 +1,69 @@
-- Wolf by KrupnoPavel -- Wolf by KrupnoPavel
mobs:register_mob("pmobs:wolf", { mobs:register_mob(
type = "animal", "pmobs:wolf",
hp_max = 5, {
passive = false, type = "monster",
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4}, passive = false,
visual = "mesh", pathfinding = false,
mesh = "mobs_wolf.x", reach = 2,
textures = { hp_max = 20,
{"mobs_wolf.png"}, passive = false,
}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
makes_footstep_sound = true, visual = "mesh",
sounds = { mesh = "mobs_wolf.x",
random = "mobs_wolf", textures = {
war_cry = "mobs_wolf_attack", {"mobs_wolf.png"},
}, },
view_range = 7, makes_footstep_sound = true,
walk_velocity = 2, sounds = {
run_velocity = 3, random = "mobs_wolf",
stepheight = 1.1, war_cry = "mobs_wolf_attack",
damage = 2, },
armor = 200, view_range = 7,
attack_type = "dogfight", walk_velocity = 2,
drops = { run_velocity = 3,
{name = "mobs:meat_raw", stepheight = 1.1,
chance = 1, damage = 3,
min = 2, armor = 200,
max = 3,}, attack_type = "dogfight",
{name = "maptools:silver_coin", drops = {
chance = 4, min = 1, max = 1,}, {name = "mobs:meat_raw",
}, chance = 1,
drawtype = "front", min = 2,
water_damage = 0, max = 3,},
lava_damage = 5, {name = "maptools:silver_coin",
light_damage = 0, chance = 4, min = 1, max = 1,},
on_rightclick = function(self, clicker) },
tool = clicker:get_wielded_item() drawtype = "front",
if tool:get_name() == "mobs:meat_raw" then water_damage = 0,
clicker:get_inventory():remove_item("main", "mobs:meat_raw") lava_damage = 5,
minetest.add_entity(self.object:getpos(), "pmobs:dog") light_damage = 0,
self.object:remove() on_rightclick = function(self, clicker)
end tool = clicker:get_wielded_item()
end, if tool:get_name() == "mobs:meat_raw" then
animation = { clicker:get_inventory():remove_item("main", "mobs:meat_raw")
speed_normal = 20, minetest.add_entity(self.object:getpos(), "pmobs:dog")
speed_run = 30, self.object:remove()
stand_start = 10, end
stand_end = 20, end,
walk_start = 75, animation = {
walk_end = 100, speed_normal = 20,
run_start = 100, speed_run = 30,
run_end = 130, stand_start = 10,
punch_start = 135, stand_end = 20,
punch_end = 155, walk_start = 75,
}, walk_end = 100,
jump = true, run_start = 100,
step = 0.5, run_end = 130,
blood_texture = "mobs_blood.png", punch_start = 135,
}) punch_end = 155,
},
jump = true,
step = 0.5,
blood_texture = "mobs_blood.png",
})
mobs:register_spawn("pmobs:wolf", {"default:dirt_with_grass","default:dirt","default:snow", "default:snowblock"}, 20, -1, 22000, 1, 31000) mobs:register_spawn("pmobs:wolf", {"default:dirt_with_grass","default:dirt","default:snow", "default:snowblock"}, 20, -1, 22000, 1, 31000)
mobs:register_egg("pmobs:wolf", "Wolf", "wool_grey.png", 1) mobs:register_egg("pmobs:wolf", "Wolf", "wool_grey.png", 1)