remove stuff, add some cool stuff

master
Jordan Snelling 2014-05-16 20:29:07 +01:00
parent dccfa4a28a
commit d8ab5dfcf6
18 changed files with 63 additions and 4 deletions

View File

@ -1,6 +1,7 @@
movement_liquid_sink = 36
movement_acceleration_air = 0.5
movement_speed_descend = 0.6
movement_speed_climb = 0.4
movement_acceleration_default = 3
remove_items = 86400
enable_item_pickup = true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 243 B

View File

@ -425,4 +425,31 @@ local function crustymese(old, new)
end
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
--
minetest.register_abm({
nodenames = {"mapgen:water_flowing"},
interval = 1.8,
chance = 1.5,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.sound_play("mapgen_water", {pos = pos, gain = 0.025, max_hear_distance = 5})
end})

View File

@ -190,11 +190,23 @@ minetest.register_node("mapgen:long_grass_5", {
minetest.register_node("mapgen:cactus", {
description = "Cactus",
tiles = {"mapgen_cactus_top.png", "mapgen_cactus_top.png", "mapgen_cactus_side.png"},
paramtype2 = "facedir",
is_ground_content = true,
groups = {snappy=1,choppy=3,flammable=2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
on_place = minetest.rotate_node,
drawtype = "nodebox",
paramtype = "light",
damage_per_second = 1,
node_box = {
type = "fixed",
fixed = {{-7/16, -0.5, -7/16, 7/16, 0.5, 7/16}, {-8/16, -0.5, -7/16, -7/16, 0.5, -7/16},
{7/16, -0.5, -7/16, 7/16, 0.5, -8/16},{-7/16, -0.5, 7/16, -7/16, 0.5, 8/16},{7/16, -0.5, 7/16, 8/16, 0.5, 7/16}}--
},
selection_box = {
type = "fixed",
fixed = {-7/16, -0.5, -7/16, 7/16, 0.5, 7/16},
},
})
minetest.register_node("mapgen:sand", {
@ -305,6 +317,25 @@ minetest.register_node("mapgen:oak_leaves", {
}
},
sounds = default.node_sound_leaves_defaults(),
on_place = function(itemstack, placer, pointed_thing)
-- place a random grass node
local stack = ItemStack("mapgen:oak_leaves_deco")
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("mapgen:oak_leaves".." "..itemstack:get_count()-(1-ret:get_count()))
end,
})
minetest.register_node("mapgen:oak_leaves_deco", {
description = "Oak Leaves",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tiles = {"mapgen_oak_leaves.png"},
paramtype = "light",
waving=1,
is_ground_content = false,
groups = {snappy=3, flammable=2, leaves=1},
sounds = default.node_sound_leaves_defaults(),
drop = {'mapgen:oak_leaves'},
})
minetest.register_node("mapgen:oak_sapling", {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B