Texture and model improvements

master
D00Med 2016-12-10 07:00:35 +10:00
parent 6f4ae44937
commit fc45818ceb
23 changed files with 119 additions and 54 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 B

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 243 B

View File

@ -104,8 +104,8 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"moreplants:tallgrass", "moreplants:bulrush"},
interval = 7.0,
chance = 6,
interval = 10.0,
chance = 60,
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")
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},
})
minetest.register_node("hyrule_mapgen:stalagmite", {
description = "Stalagmite",
minetest.register_node("hyrule_mapgen:stalagtite", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"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},
})
minetest.register_node("hyrule_mapgen:stalagmite1", {
description = "Stalagmite",
minetest.register_node("hyrule_mapgen:stalagtite1", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"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},
})
minetest.register_node("hyrule_mapgen:stalagmite2", {
description = "Stalagmite",
minetest.register_node("hyrule_mapgen:stalagtite2", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"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},
})
minetest.register_node("hyrule_mapgen:stalagmite3", {
description = "Stalagmite",
minetest.register_node("hyrule_mapgen:stalagtite3", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"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},
})
minetest.register_node("hyrule_mapgen:stalagtite0", {
description = "Stalagtite",
minetest.register_node("hyrule_mapgen:stalagmite0", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"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},
})
minetest.register_node("hyrule_mapgen:stalagtite1", {
description = "Stalagtite",
minetest.register_node("hyrule_mapgen:stalagmite1", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"hyrule_mapgen_stalagmite3.png^[transformFY"},
@ -1130,8 +1130,8 @@ minetest.register_node("hyrule_mapgen:stalagtite1", {
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagtite2", {
description = "Stalagtite",
minetest.register_node("hyrule_mapgen:stalagmite2", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"hyrule_mapgen_stalagmite2.png^[transformFY"},

View File

@ -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 }
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" 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
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
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
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
@ -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 }
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" 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
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
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

View File

@ -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_ocarina_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 B

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

After

Width:  |  Height:  |  Size: 473 B

View File

@ -1,55 +1,59 @@
-- 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", {
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
reach = 2,
damage = 5,
hp_min = 5,
hp_max = 10,
hp_min = 50,
hp_max = 90,
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",
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
textures = {
{"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.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"},
{"mobs_cucco.png"},
},
child_texture = {
{"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png",
"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png"},
{"mobs_cucco_chick.png"},
},
makes_footstep_sound = true,
sounds = {
random = "mobs_chicken",
},
walk_velocity = 1,
run_velocity = 3,
runaway = true,
walk_velocity = 0.5,
run_velocity = 3.5,
jump = true,
jump_height = 4,
drops = {
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 2},
},
water_damage = 1,
water_damage = 0,
lava_damage = 5,
light_damage = 0,
fall_damage = 0,
fall_speed = -8,
fear_height = 5,
animation = {
speed_normal = 15,
stand_start = 0,
stand_end = 1, -- 20
speed_normal = 10,
speed_run = 33,
stand_start = 1,
stand_end = 15,
walk_start = 20,
walk_end = 40,
run_start = 50,
run_end = 70,
},
follow = {"farming:seed_wheat", "farming:seed_cotton"},
view_range = 5,
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then
@ -78,10 +82,69 @@ mobs:register_mob("mobs_animal:chicken", {
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",
{"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
mobs:alias_mob("mobs:chicken", "mobs_animal:chicken")

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 699 B

After

Width:  |  Height:  |  Size: 714 B

View File

@ -10,9 +10,9 @@ mobs:register_mob("mobs_loz:chuchu", {
hp_min = 3,
hp_max = 27,
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",
mesh = "mobs_chuchu.b3d",
mesh = "chuchu.b3d",
textures = {
{"mobs_chuchu.png"},
},
@ -38,16 +38,16 @@ mobs:register_mob("mobs_loz:chuchu", {
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 15,
speed_normal = 12,
speed_run = 15,
stand_start = 3,
stand_end = 22,
walk_start = 3,
walk_end = 22,
run_start = 3,
run_end = 22,
punch_start = 25,
punch_end = 42,
stand_start = 1,
stand_end = 20,
walk_start = 52,
walk_end = 72,
run_start = 52,
run_end = 72,
punch_start = 30,
punch_end = 50,
},
})

Binary file not shown.

Binary file not shown.

View File

@ -16,7 +16,7 @@ mobs:register_mob("mobs_loz:poe", {
{"mobs_poe2.png"},
{"mobs_poe3.png"},
},
visual_size = {x=1, y=1},
visual_size = {x=1.2, y=1.2},
makes_footstep_sound = false,
walk_velocity = 1,
run_velocity = 2,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 824 B