Uh, what?

This commit is contained in:
James Stevenson 2016-01-27 04:55:42 -05:00
commit 99237a5dff
11 changed files with 130 additions and 7 deletions

View File

@ -20,3 +20,6 @@ movement_liquid_fluidity_smooth = 2
#other
selectionbox_color = (12,12,12)
#remove_items = 0
# Ambience
ambience_volume = 0.25

View File

@ -2,7 +2,7 @@
--= Ambience lite by TenPlus1 (30th September 2015)
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
local SOUNDVOLUME = 1
local SOUNDVOLUME = minetest.setting_get("ambience_volume") or 1
local volume = 0.3
local ambiences
local played_on_start = false
@ -312,7 +312,11 @@ minetest.register_chatcommand("svol", {
description = "set sound volume (0.1 to 1.0)",
privs = {server = true},
func = function(name, param)
if not param then
return true, "Ambience volume is set to " .. tostring(SOUNDVOLUME)
end
SOUNDVOLUME = param
minetest.chat_send_player(name, "Sound volume set.")
end,
})
--minetest.chat_send_player(name, "Sound volume set.")
return true, "Sound volume set to " .. tostring(SOUNDVOLUME)
end
})

View File

@ -88,9 +88,110 @@ minetest.register_node("default:stone_with_diamond", {
stack_max = 40
})
minetest.register_alias("default:stone_with_mese", "default:stone_with_gold")
minetest.register_alias("default:stone_with_mese", "oresplus:stone_with_emerald")--"default:stone_with_gold")
minetest.register_alias("default:mese", "default:stone_with_gold")
minetest.register_node("default:grass_1", {
description = "Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_grass_1.png"},
-- Use texture of a taller grass stage in inventory
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
on_place = function(itemstack, placer, pointed_thing)
-- place a random grass node
local stack = ItemStack("default:grass_" .. math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("default:grass_1 " ..
itemstack:get_count() - (1 - ret:get_count()))
end
})
for i = 2, 5 do
minetest.register_node("default:grass_" .. i, {
description = "Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_grass_" .. i .. ".png"},
inventory_image = "default_grass_" .. i .. ".png",
wield_image = "default_grass_" .. i .. ".png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "default:grass_1",
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
}
})
end
minetest.register_node("default:dry_grass_1", {
description = "Dry Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_dry_grass_1.png"},
inventory_image = "default_dry_grass_3.png",
wield_image = "default_dry_grass_3.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
on_place = function(itemstack, placer, pointed_thing)
-- place a random dry grass node
local stack = ItemStack("default:dry_grass_" .. math.random(1, 5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("default:dry_grass_1 " ..
itemstack:get_count() - (1 - ret:get_count()))
end,
})
for i = 2, 5 do
minetest.register_node("default:dry_grass_" .. i, {
description = "Dry Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_dry_grass_" .. i .. ".png"},
inventory_image = "default_dry_grass_" .. i .. ".png",
wield_image = "default_dry_grass_" .. i .. ".png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory=1},
drop = "default:dry_grass_1",
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
end
minetest.register_node("default:dry_dirt", {
description = "Dirt",
tiles = {"default_dry_dirt.png"},
@ -112,6 +213,19 @@ minetest.register_node("default:grass", {
stack_max = 40
})
minetest.register_node("default:dry_grass", {
description = "Dry Grass",
tiles = {"default_dry_grass.png",
"default_dirt.png",
{name = "default_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = default.dig.dirt, soil = 1},
drop = "default:dry_dirt",
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},
})
})
minetest.register_node("default:dirt_with_snow", {
description = "Dirt with Snow",
tiles = {"default_snow.png", "default_dry_dirt.png", "default_dry_dirt.png^default_snow_side.png"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

View File

@ -144,14 +144,16 @@ minetest.register_abm({
return
end
if not minetest.find_node_near(pos, 6, {"group:water", "default:junglegrass"}) then
minetest.set_node(pos, {name = "default:dry_dirt"})
--minetest.set_node(pos, {name = "default:dry_dirt"})
minetest.set_node(pos, {name = "default:dry_grass"})
else
pos.y = pos.y + 1
local nn = minetest.get_node(pos).name
pos.y = pos.y - 1
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable
and not minetest.registered_nodes[nn].sunlight_propagates then
minetest.set_node(pos, {name="default:dry_dirt"})
--minetest.set_node(pos, {name = "default:dry_dirt"})
minetest.set_node(pos, {name = "default:dry_grass"})
end
end
end