BFD 0.5-rc1 contains kittens, headstones, shiny textures and other stuff

This commit is contained in:
Jordach 2014-12-24 16:32:39 +00:00
parent e573ebd2d2
commit ef2e7bd4fb
119 changed files with 253 additions and 56 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 639 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -9,15 +9,42 @@ local function is_owner(pos, name)
return false return false
end end
local death_strings = {}
death_strings[1] = " didn't check their health bar."
death_strings[2] = " didn't bring a sword."
death_strings[3] = " should have ate more often."
death_strings[4] = " somehow died, but time will tell."
death_strings[5] = " died as they lived - running away!"
death_strings[6] = " could have done a better job when living."
death_strings[7] = " was just a pawn in the game of life."
death_strings[8] = " didn't think mobs would spawn here."
death_strings[9] = " died by stupidity."
death_strings[10] = " looked left and right, but not behind oneself."
death_strings[11] = " could have easily avoided death, but still managed to die."
death_strings[12] = " drank from the wrong pool of liquid."
minetest.register_node("bones:bones", { minetest.register_node("bones:bones", {
description = "Bones", description = "Headstone",
tiles = { tiles = {
"bones_top.png", "deco_cobble.png",
"bones_bottom.png", "deco_cobble.png",
"bones_side.png", "deco_cobble.png",
"bones_side.png", "deco_cobble.png",
"bones_rear.png", "deco_cobble.png",
"bones_front.png" "deco_cobble.png^bones_overlay.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{0.375, -0.5, 0.5, -0.375, -0.375, 0}, --base
{0.3125, -0.375, 0.375, -0.3125, 0.375, 0.125}, --mid segment
{0.25, 0.375, 0.375, -0.25, 0.5, 0.125}, --top segment
},
}, },
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {dig_immediate=2}, groups = {dig_immediate=2},
@ -52,7 +79,7 @@ minetest.register_node("bones:bones", {
on_metadata_inventory_take = function(pos, listname, index, stack, player) on_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
if meta:get_string("owner") ~= "" and meta:get_inventory():is_empty("main") then if meta:get_string("owner") ~= "" and meta:get_inventory():is_empty("main") then
meta:set_string("infotext", meta:get_string("owner").."'s old bones") --meta:set_string("infotext", meta:get_string("owner").."'s old bones")
meta:set_string("formspec", "") meta:set_string("formspec", "")
meta:set_string("owner", "") meta:set_string("owner", "")
end end
@ -61,7 +88,7 @@ minetest.register_node("bones:bones", {
on_timer = function(pos, elapsed) on_timer = function(pos, elapsed)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local time = meta:get_int("time")+elapsed local time = meta:get_int("time")+elapsed
local publish = 1200 local publish = 240
if tonumber(minetest.setting_get("share_bones_time")) then if tonumber(minetest.setting_get("share_bones_time")) then
publish = tonumber(minetest.setting_get("share_bones_time")) publish = tonumber(minetest.setting_get("share_bones_time"))
end end
@ -69,7 +96,7 @@ minetest.register_node("bones:bones", {
return return
end end
if time >= publish then if time >= publish then
meta:set_string("infotext", meta:get_string("owner").."'s old bones") --meta:set_string("infotext", meta:get_string("owner").."'s old headstone")
meta:set_string("owner", "") meta:set_string("owner", "")
else else
return true return true
@ -119,12 +146,16 @@ minetest.register_on_dieplayer(function(player)
player_inv:set_stack("craft", i, nil) player_inv:set_stack("craft", i, nil)
end end
local d_msg = math.random(1, #death_strings)
local p_name = player:get_player_name()
meta:set_string("formspec", "size[8,9;]".. meta:set_string("formspec", "size[8,9;]"..
"list[current_name;main;0,0;8,4;]".. "list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]".. "list[current_player;main;0,5;8,4;]"..
"listcolors[#49413f;#7c7371;#7b7675;#8d7e77;#ffffff]".. "listcolors[#49413f;#7c7371;#7b7675;#8d7e77;#ffffff]"..
"background[-0.5,-0.65;9,10.35;".."bones.png".."]") "background[-0.5,-0.65;9,10.35;".."bones.png".."]")
meta:set_string("infotext", player:get_player_name().."'s fresh bones")
meta:set_string("infotext", player:get_player_name()..death_strings[d_msg])
meta:set_string("owner", player:get_player_name()) meta:set_string("owner", player:get_player_name())
meta:set_int("time", 0) meta:set_int("time", 0)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 407 B

View File

@ -1 +1 @@
deco_cobble.png is licensed by BlockMen as CC BY-SA 3.0 deco_cobble.png and deco_mossy_cobble.png is licensed by BlockMen as CC BY-SA 3.0

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 814 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 863 B

View File

@ -7,20 +7,40 @@
function default.node_sound_defaults(table) function default.node_sound_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="", gain=1.0} {name = "default_hard_footstep", gain = 0.6}
table.dig = table.dig or
{name = "default_hard_footstep", gain = 0.7}
table.dug = table.dug or table.dug = table.dug or
{name="default_dug_node", gain=0.25} {name = "default_hard_footstep", gain = 0.8}
table.place = table.place or table.place = table.place or
{name="default_place_node_hard", gain=1.0} {name = "default_hard_footstep", gain = 0.8}
return table return table
end end
function default.node_sound_stone_defaults(table) function default.node_sound_stone_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_hard_footstep", gain=0.5} {name = "default_hard_footstep", gain = 0.6}
table.dig = table.dig or
{name = "default_hard_footstep", gain = 0.7}
table.dug = table.dug or table.dug = table.dug or
{name="default_hard_footstep", gain=1.0} {name = "default_hard_footstep", gain = 0.8}
table.place = table.place or
{name = "default_hard_footstep", gain = 0.8}
default.node_sound_defaults(table)
return table
end
function default.node_sound_metal_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "default_metal_footstep", gain = 0.575}
table.dig = table.dig or
{name = "default_metal_footstep", gain = 0.65}
table.dug = table.dug or
{name = "default_metal_footstep", gain = 0.8}
table.place = table.place or
{name = "default_metal_footstep", gain = 0.8}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
@ -28,11 +48,41 @@ end
function default.node_sound_dirt_defaults(table) function default.node_sound_dirt_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_dirt_footstep", gain=1.0} {name = "default_dirt_footstep", gain = 0.8}
table.dig = table.dig or
{name = "default_dirt_footstep", gain = 0.9}
table.dug = table.dug or table.dug = table.dug or
{name="default_dirt_footstep", gain=1.5} {name = "default_dirt_footstep", gain = 1.0}
table.place = table.place or table.place = table.place or
{name="default_place_node", gain=1.0} {name = "default_dirt_footstep", gain = 1.0}
default.node_sound_defaults(table)
return table
end
function default.node_sound_snow_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "default_dirt_footstep", gain = 0.15/2}
table.dig = table.dig or
{name = "default_dirt_footstep", gain = 0.1}
table.dug = table.dug or
{name = "default_dirt_footstep", gain = 0.2525/2}
table.place = table.place or
{name = "default_dirt_footstep", gain = 0.15}
default.node_sound_defaults(table)
return table
end
function default.node_sound_gravel_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "default_dirt_footstep", gain = 0.8}
table.dig = table.dig or
{name = "default_dirt_footstep", gain = 0.9}
table.dug = table.dug or
{name = "default_dirt_footstep", gain = 1.0}
table.place = table.place or
{name = "default_dirt_footstep", gain = 1.0}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
@ -40,11 +90,13 @@ end
function default.node_sound_sand_defaults(table) function default.node_sound_sand_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_sand_footstep", gain=0.5} {name = "default_sand_footstep", gain = 0.6}
table.dig = table.dig or
{name = "default_sand_footstep", gain = 0.7}
table.dug = table.dug or table.dug = table.dug or
{name="default_sand_footstep", gain=1.0} {name = "default_sand_footstep", gain = 0.8}
table.place = table.place or table.place = table.place or
{name="default_place_node", gain=1.0} {name = "default_sand_footstep", gain = 0.8}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
@ -52,9 +104,13 @@ end
function default.node_sound_wood_defaults(table) function default.node_sound_wood_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_wood_footstep", gain=0.5} {name = "default_wood_footstep", gain = 0.625}
table.dig = table.dig or
{name = "default_wood_footstep", gain = 0.7}
table.dug = table.dug or table.dug = table.dug or
{name="default_wood_footstep", gain=1.0} {name = "default_wood_footstep", gain = 0.8}
table.place = table.place or
{name = "default_wood_footstep", gain = 0.8}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
@ -62,13 +118,13 @@ end
function default.node_sound_leaves_defaults(table) function default.node_sound_leaves_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_grass_footstep", gain=0.35} {name = "default_grass_footstep", gain = 0.6}
table.dug = table.dug or
{name="default_grass_footstep", gain=0.85}
table.dig = table.dig or table.dig = table.dig or
{name="default_dig_crumbly", gain=0.4} {name = "default_grass_footstep", gain = 0.7}
table.dug = table.dug or
{name = "default_snow_footstep", gain = 0.8}
table.place = table.place or table.place = table.place or
{name="default_place_node", gain=1.0} {name = "default_snow_footstep", gain = 0.8}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
@ -76,9 +132,13 @@ end
function default.node_sound_glass_defaults(table) function default.node_sound_glass_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or
{name="default_glass_footstep", gain=0.5} {name = "default_hard_footstep", gain = 0.55}
table.dig = table.dig or
{name = "default_hard_footstep", gain = 0.65}
table.dug = table.dug or table.dug = table.dug or
{name="default_break_glass", gain=1.0} {name = "default_break_glass", gain = 0.8}
table.place = table.place or
{name = "default_hard_footstep", gain = 0.75}
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
mods/default/sounds/hit.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -30,7 +30,20 @@ minetest.register_alias("mapgen_stone", "mapgen:stone")
minetest.register_alias("mapgen_dirt", "mapgen:dirt") minetest.register_alias("mapgen_dirt", "mapgen:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "mapgen:grass") minetest.register_alias("mapgen_dirt_with_grass", "mapgen:grass")
local function player_join_sounds()
minetest.register_on_joinplayer(function()
minetest.sound_play("player_join", {gain = 0.75})
end)
end
local function player_leave_sounds()
minetest.register_on_leaveplayer(function()
minetest.sound_play("player_leave", {gain = 1})
end)
end
minetest.after(5, player_join_sounds)
minetest.after(5, player_leave_sounds)
minetest.register_item(":", { minetest.register_item(":", {
type = "none", type = "none",
@ -116,7 +129,7 @@ minetest.register_node("mapgen:snowy_grass", {
is_ground_content = true, is_ground_content = true,
drop = 'mapgen:dirt', drop = 'mapgen:dirt',
groups = {crumbly=3, soil=1}, groups = {crumbly=3, soil=1},
sounds = default.node_sound_dirt_defaults(), sounds = default.node_sound_snow_defaults(),
}) })
@ -579,20 +592,6 @@ end
crustymese("mapgen:stone", "mapgen:mese_stone") crustymese("mapgen:stone", "mapgen:mese_stone")
-- liquid sounds
minetest.register_abm({
nodenames = {"mapgen:lava_source", "mapgen:lava_flowing"},
interval = 2,
chance = 2,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.sound_play("mapgen_lava", {pos = pos, gain = 0.05, max_hear_distance = 1.5})
if math.random(1,13) == 8 then
local rnd = math.random(0,1)*-1
--minetest.add_particle(pos, {x=0.1*rnd, y=0.8, z=-0.1*rnd}, {x=-0.5*rnd, y=0.2, z=0.5*rnd}, 1.7,1.2, true, "mapgen_lava_particle.png")
end
end})
-- --
-- Flowing water sound -- Flowing water sound
-- --

View File

@ -18,6 +18,8 @@
-- You should have received a copy of the GNU General Public License -- You should have received a copy of the GNU General Public License
-- along with BFD. If not, see <http://www.gnu.org/licenses/>. -- along with BFD. If not, see <http://www.gnu.org/licenses/>.
--minetest.clear_registered_biomes()
minetest.register_biome({ minetest.register_biome({
name = "plains", name = "plains",

View File

@ -617,7 +617,7 @@ minetest.register_node("mapgen:evergreen_leaves_snowy", {
} }
} }
}, },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_snow_defaults(),
}) })
minetest.register_node("mapgen:evergreen_sapling", { minetest.register_node("mapgen:evergreen_sapling", {
@ -659,10 +659,7 @@ minetest.register_node("mapgen:snow", {
}, },
}, },
groups = {crumbly=3,falling_node=1}, groups = {crumbly=3,falling_node=1},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_snow_defaults(),
footstep = {name="default_snow_footstep", gain=0.25},
dug = {name="default_snow_footstep", gain=0.75},
}),
on_construct = function(pos) on_construct = function(pos)
pos.y = pos.y - 1 pos.y = pos.y - 1
if minetest.get_node(pos).name == "mapgen:grass" then if minetest.get_node(pos).name == "mapgen:grass" then
@ -676,10 +673,7 @@ minetest.register_node("mapgen:snowblock", {
tiles = {"mapgen_snow.png"}, tiles = {"mapgen_snow.png"},
is_ground_content = true, is_ground_content = true,
groups = {crumbly=3}, groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults({ sounds = default.node_sound_snow_defaults(),
footstep = {name="default_snow_footstep", gain=0.25},
dug = {name="default_snow_footstep", gain=0.75},
}),
}) })
minetest.register_craft({ minetest.register_craft({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 B

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 B

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 304 B

View File

@ -501,6 +501,105 @@ mobs:register_mob("mobs:evergreen_tree", {
} }
}) })
mobs:register_mob("mobs:kitten_striped", {
type = "animal",
hp_max = 5,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
visual_size = {x=0.5, y=0.5},
mesh = "mobs_kitten.b3d",
textures = {"mobs_kitten_striped.png"},
makes_footstep_sound = false,
view_range = 15,
walk_velocity = 0.6,
drops = {
{name = "tools:sword_air",
chance = 400000,
min = 1,
max = 1,}
},
water_damage = 1,
lava_damage = 10,
on_rightclick = nil,
armor = 100,
sounds = {
random = "mobs_kitten",
},
animation = {
stand_start = 97,
stand_end = 192,
walk_start = 0,
walk_end = 96,
speed_normal = 42,
}
})
mobs:register_mob("mobs:kitten_splotchy", {
type = "animal",
hp_max = 5,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
visual_size = {x=0.5, y=0.5},
mesh = "mobs_kitten.b3d",
textures = {"mobs_kitten_splotchy.png"},
makes_footstep_sound = false,
view_range = 15,
walk_velocity = 0.6,
drops = {
{name = "tools:sword_air",
chance = 400000,
min = 1,
max = 1,}
},
water_damage = 1,
lava_damage = 10,
on_rightclick = nil,
armor = 100,
sounds = {
random = "mobs_kitten",
},
animation = {
stand_start = 97,
stand_end = 192,
walk_start = 0,
walk_end = 96,
speed_normal = 42,
}
})
mobs:register_mob("mobs:kitten_ginger", {
type = "animal",
hp_max = 5,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
visual_size = {x=0.5, y=0.5},
mesh = "mobs_kitten.b3d",
textures = {"mobs_kitten_ginger.png"},
makes_footstep_sound = false,
view_range = 15,
walk_velocity = 0.6,
drops = {
{name = "tools:sword_air",
chance = 400000,
min = 1,
max = 1,}
},
water_damage = 1,
lava_damage = 10,
on_rightclick = nil,
armor = 100,
sounds = {
random = "mobs_kitten",
},
animation = {
stand_start = 97,
stand_end = 192,
walk_start = 0,
walk_end = 96,
speed_normal = 42,
}
})
if minetest.setting_get("log_mods") then if minetest.setting_get("log_mods") then
minetest.log("action", "mobs loaded") minetest.log("action", "mobs loaded")
end end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More