Texture and model improvements
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 243 B |
|
@ -104,8 +104,8 @@ minetest.register_abm({
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"moreplants:tallgrass", "moreplants:bulrush"},
|
nodenames = {"moreplants:tallgrass", "moreplants:bulrush"},
|
||||||
interval = 7.0,
|
interval = 10.0,
|
||||||
chance = 6,
|
chance = 60,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
minetest.env:add_entity({x=pos.x,y=pos.y+0.5,z=pos.z}, "hyrule_mapgen:dragonfly")
|
minetest.env:add_entity({x=pos.x,y=pos.y+0.5,z=pos.z}, "hyrule_mapgen:dragonfly")
|
||||||
end
|
end
|
||||||
|
@ -1039,8 +1039,8 @@ minetest.register_node("hyrule_mapgen:red_ore", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1, xp=1, not_in_creative_inventory=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1, xp=1, not_in_creative_inventory=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagmite", {
|
minetest.register_node("hyrule_mapgen:stalagtite", {
|
||||||
description = "Stalagmite",
|
description = "Stalagtite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"hyrule_mapgen_stalagmite0.png"},
|
tiles = {"hyrule_mapgen_stalagmite0.png"},
|
||||||
inventory_image = "hyrule_mapgen_stalagmite0.png",
|
inventory_image = "hyrule_mapgen_stalagmite0.png",
|
||||||
|
@ -1054,8 +1054,8 @@ minetest.register_node("hyrule_mapgen:stalagmite", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagmite1", {
|
minetest.register_node("hyrule_mapgen:stalagtite1", {
|
||||||
description = "Stalagmite",
|
description = "Stalagtite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"hyrule_mapgen_stalagmite1.png"},
|
tiles = {"hyrule_mapgen_stalagmite1.png"},
|
||||||
inventory_image = "hyrule_mapgen_stalagmite1.png",
|
inventory_image = "hyrule_mapgen_stalagmite1.png",
|
||||||
|
@ -1069,8 +1069,8 @@ minetest.register_node("hyrule_mapgen:stalagmite1", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagmite2", {
|
minetest.register_node("hyrule_mapgen:stalagtite2", {
|
||||||
description = "Stalagmite",
|
description = "Stalagtite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"hyrule_mapgen_stalagmite2.png"},
|
tiles = {"hyrule_mapgen_stalagmite2.png"},
|
||||||
inventory_image = "hyrule_mapgen_stalagmite2.png",
|
inventory_image = "hyrule_mapgen_stalagmite2.png",
|
||||||
|
@ -1084,8 +1084,8 @@ minetest.register_node("hyrule_mapgen:stalagmite2", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagmite3", {
|
minetest.register_node("hyrule_mapgen:stalagtite3", {
|
||||||
description = "Stalagmite",
|
description = "Stalagtite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"hyrule_mapgen_stalagmite3.png"},
|
tiles = {"hyrule_mapgen_stalagmite3.png"},
|
||||||
inventory_image = "hyrule_mapgen_stalagmite3.png",
|
inventory_image = "hyrule_mapgen_stalagmite3.png",
|
||||||
|
@ -1099,8 +1099,8 @@ minetest.register_node("hyrule_mapgen:stalagmite3", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagtite0", {
|
minetest.register_node("hyrule_mapgen:stalagmite0", {
|
||||||
description = "Stalagtite",
|
description = "Stalagmite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"hyrule_mapgen_stalagmite0.png^[transformFY"},
|
tiles = {"hyrule_mapgen_stalagmite0.png^[transformFY"},
|
||||||
inventory_image = "hyrule_mapgen_stalagmite0.png^[transformFY",
|
inventory_image = "hyrule_mapgen_stalagmite0.png^[transformFY",
|
||||||
|
@ -1114,8 +1114,8 @@ minetest.register_node("hyrule_mapgen:stalagtite0", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagtite1", {
|
minetest.register_node("hyrule_mapgen:stalagmite1", {
|
||||||
description = "Stalagtite",
|
description = "Stalagmite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.5,
|
visual_scale = 1.5,
|
||||||
tiles = {"hyrule_mapgen_stalagmite3.png^[transformFY"},
|
tiles = {"hyrule_mapgen_stalagmite3.png^[transformFY"},
|
||||||
|
@ -1130,8 +1130,8 @@ minetest.register_node("hyrule_mapgen:stalagtite1", {
|
||||||
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("hyrule_mapgen:stalagtite2", {
|
minetest.register_node("hyrule_mapgen:stalagmite2", {
|
||||||
description = "Stalagtite",
|
description = "Stalagmite",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.5,
|
visual_scale = 1.5,
|
||||||
tiles = {"hyrule_mapgen_stalagmite2.png^[transformFY"},
|
tiles = {"hyrule_mapgen_stalagmite2.png^[transformFY"},
|
||||||
|
|
|
@ -1030,13 +1030,13 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
||||||
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
|
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
|
||||||
if math.random(1,2) == 1 then
|
if math.random(1,2) == 1 then
|
||||||
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite"})
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagtite"})
|
||||||
elseif math.random(1,2) == 1 then
|
elseif math.random(1,2) == 1 then
|
||||||
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite1"})
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagtite1"})
|
||||||
elseif math.random(1,2) == 1 then
|
elseif math.random(1,2) == 1 then
|
||||||
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite2"})
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagtite2"})
|
||||||
else
|
else
|
||||||
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite3"})
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagtite3"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1054,11 +1054,11 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
||||||
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" then
|
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" then
|
||||||
if math.random(1,2) == 1 then
|
if math.random(1,2) == 1 then
|
||||||
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite0"})
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagmite0"})
|
||||||
elseif math.random(1,2) == 1 then
|
elseif math.random(1,2) == 1 then
|
||||||
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite1"})
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagmite1"})
|
||||||
else
|
else
|
||||||
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite2"})
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagmite2"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,3 +26,5 @@ CC-BY-SA 3.0 UNPORTED. Created by D00Med
|
||||||
|
|
||||||
hyruletools_bomb.b3d, hyruletools_medallion*.png, hyruletools_bombflower.png, hyruletools_bomb.png, hyruletools_bombflower_plant.png, hyruletools_boomer_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy) and D00Med
|
hyruletools_bomb.b3d, hyruletools_medallion*.png, hyruletools_bombflower.png, hyruletools_bomb.png, hyruletools_bombflower_plant.png, hyruletools_boomer_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy) and D00Med
|
||||||
|
|
||||||
|
hyruletools_ocarina_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy)
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 330 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 473 B |
|
@ -1,55 +1,59 @@
|
||||||
|
|
||||||
-- Chicken by JK Murray
|
-- Chicken by JK Murray
|
||||||
|
|
||||||
|
|
||||||
|
--cucco.b3d, cucco.png CC-BY-SA 3.0 UNPORTED Created by toby109tt(aka tobyplowy) and D00Med
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:chicken", {
|
mobs:register_mob("mobs_animal:chicken", {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = false,
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
group_attack = true,
|
||||||
reach = 2,
|
reach = 2,
|
||||||
damage = 5,
|
damage = 5,
|
||||||
hp_min = 5,
|
hp_min = 50,
|
||||||
hp_max = 10,
|
hp_max = 90,
|
||||||
armor = 200,
|
armor = 200,
|
||||||
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
|
collisionbox = {-0.25, -0.05, -0.25, 0.25, 0.5, 0.25},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_chicken.x",
|
visual_size = {x=1.2, y=1.2},
|
||||||
|
mesh = "cucco.b3d",
|
||||||
-- seems a lot of textures but this fixes the problem with the model
|
-- seems a lot of textures but this fixes the problem with the model
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png",
|
{"mobs_cucco.png"},
|
||||||
"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png"},
|
|
||||||
{"mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png",
|
|
||||||
"mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png"},
|
|
||||||
},
|
},
|
||||||
child_texture = {
|
child_texture = {
|
||||||
{"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png",
|
{"mobs_cucco_chick.png"},
|
||||||
"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png"},
|
|
||||||
},
|
},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_chicken",
|
random = "mobs_chicken",
|
||||||
},
|
},
|
||||||
walk_velocity = 1,
|
walk_velocity = 0.5,
|
||||||
run_velocity = 3,
|
run_velocity = 3.5,
|
||||||
runaway = true,
|
|
||||||
jump = true,
|
jump = true,
|
||||||
|
jump_height = 4,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 2},
|
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 2},
|
||||||
},
|
},
|
||||||
water_damage = 1,
|
water_damage = 0,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
fall_speed = -8,
|
fall_speed = -8,
|
||||||
fear_height = 5,
|
fear_height = 5,
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 15,
|
speed_normal = 10,
|
||||||
stand_start = 0,
|
speed_run = 33,
|
||||||
stand_end = 1, -- 20
|
stand_start = 1,
|
||||||
|
stand_end = 15,
|
||||||
walk_start = 20,
|
walk_start = 20,
|
||||||
walk_end = 40,
|
walk_end = 40,
|
||||||
|
run_start = 50,
|
||||||
|
run_end = 70,
|
||||||
},
|
},
|
||||||
follow = {"farming:seed_wheat", "farming:seed_cotton"},
|
follow = {"farming:seed_wheat", "farming:seed_cotton"},
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
|
|
||||||
if mobs:feed_tame(self, clicker, 8, true, true) then
|
if mobs:feed_tame(self, clicker, 8, true, true) then
|
||||||
|
@ -78,10 +82,69 @@ mobs:register_mob("mobs_animal:chicken", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
mobs:register_mob("mobs_animal:chicken_evil", {
|
||||||
|
type = "monster",
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
|
damage = 5,
|
||||||
|
hp_min = 50,
|
||||||
|
hp_max = 90,
|
||||||
|
armor = 10,
|
||||||
|
collisionbox = {-0.25, -0.05, -0.25, 0.25, 0.5, 0.25},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "cucco.b3d",
|
||||||
|
-- seems a lot of textures but this fixes the problem with the model
|
||||||
|
textures = {
|
||||||
|
{"mobs_cucco.png"},
|
||||||
|
},
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_chicken",
|
||||||
|
},
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 3,
|
||||||
|
jump = true,
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 2},
|
||||||
|
},
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
fall_damage = 0,
|
||||||
|
fall_speed = -1,
|
||||||
|
fear_height = 5,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 12,
|
||||||
|
speed_run = 17,
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 15,
|
||||||
|
walk_start = 20,
|
||||||
|
walk_end = 40,
|
||||||
|
run_start = 50,
|
||||||
|
run_end = 70,
|
||||||
|
},
|
||||||
|
view_range = 5,
|
||||||
|
on_punch = function(self)
|
||||||
|
local pos = self.object:get_pos()
|
||||||
|
minetest.env:add_entity({x=pos.x+1, y=pos.y, z=pos.z+1}, "mobs_animal:chicken_evil")
|
||||||
|
minetest.env:add_entity({x=pos.x-2, y=pos.y, z=pos.z+1}, "mobs_animal:chicken_evil")
|
||||||
|
minetest.env:add_entity({x=pos.x+1, y=pos.y, z=pos.z-2}, "mobs_animal:chicken_evil")
|
||||||
|
minetest.env:add_entity({x=pos.x-1, y=pos.y, z=pos.z-1}, "mobs_animal:chicken_evil")
|
||||||
|
minetest.env:add_entity({x=pos.x, y=pos.y, z=pos.z+1}, "mobs_animal:chicken_evil")
|
||||||
|
minetest.env:add_entity({x=pos.x+1, y=pos.y, z=pos.z}, "mobs_animal:chicken_evil")
|
||||||
|
end,
|
||||||
|
on_activate = function(self)
|
||||||
|
minetest.after(60, function()
|
||||||
|
self.object:remove()
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
mobs:register_spawn("mobs_animal:chicken",
|
mobs:register_spawn("mobs_animal:chicken",
|
||||||
{"default:dirt_with_grass", "ethereal:bamboo_dirt"}, 20, 10, 15000, 1, 31000, true)
|
{"default:dirt_with_grass", "ethereal:bamboo_dirt"}, 20, 10, 15000, 1, 31000, true)
|
||||||
|
|
||||||
mobs:register_egg("mobs_animal:chicken", "Chicken", "mobs_chicken_inv.png", 0)
|
mobs:register_egg("mobs_animal:chicken", "Cucco", "mobs_chicken_inv.png", 0)
|
||||||
|
|
||||||
-- compatibility
|
-- compatibility
|
||||||
mobs:alias_mob("mobs:chicken", "mobs_animal:chicken")
|
mobs:alias_mob("mobs:chicken", "mobs_animal:chicken")
|
||||||
|
|
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 714 B |
|
@ -10,9 +10,9 @@ mobs:register_mob("mobs_loz:chuchu", {
|
||||||
hp_min = 3,
|
hp_min = 3,
|
||||||
hp_max = 27,
|
hp_max = 27,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2},
|
collisionbox = {-0.2, -0, -0.2, 0.2, 0.6, 0.2},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_chuchu.b3d",
|
mesh = "chuchu.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_chuchu.png"},
|
{"mobs_chuchu.png"},
|
||||||
},
|
},
|
||||||
|
@ -38,16 +38,16 @@ mobs:register_mob("mobs_loz:chuchu", {
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
fear_height = 3,
|
fear_height = 3,
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 15,
|
speed_normal = 12,
|
||||||
speed_run = 15,
|
speed_run = 15,
|
||||||
stand_start = 3,
|
stand_start = 1,
|
||||||
stand_end = 22,
|
stand_end = 20,
|
||||||
walk_start = 3,
|
walk_start = 52,
|
||||||
walk_end = 22,
|
walk_end = 72,
|
||||||
run_start = 3,
|
run_start = 52,
|
||||||
run_end = 22,
|
run_end = 72,
|
||||||
punch_start = 25,
|
punch_start = 30,
|
||||||
punch_end = 42,
|
punch_end = 50,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ mobs:register_mob("mobs_loz:poe", {
|
||||||
{"mobs_poe2.png"},
|
{"mobs_poe2.png"},
|
||||||
{"mobs_poe3.png"},
|
{"mobs_poe3.png"},
|
||||||
},
|
},
|
||||||
visual_size = {x=1, y=1},
|
visual_size = {x=1.2, y=1.2},
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
run_velocity = 2,
|
run_velocity = 2,
|
||||||
|
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 824 B |