Original recording by Ryding.
http://freesound.org/people/Ryding/
Found by Anth0rx, edited by paramat.
Add and use 'default.node_sound_snow_defaults()' function.
asl97 (CC BY-SA 3.0):
default_ice.png
-KevDoy (CC BY-SA 3.0)
+KevDoy (CC BY-SA 3.0):
heart.png
Pithydon (CC BY-SA 3.0)
default_coral_orange.png
default_coral_skeleton.png
-Ferk (CC0 1.0)
+Ferk (CC0 1.0):
default_item_smoke.png
default_item_smoke.ogg, based on sound by http://opengameart.org/users/bart
-npx (CC BY-SA 3.0)
+npx (CC BY-SA 3.0):
default_rainforest_litter.png
default_rainforest_litter_side.png
default_place_node.3.ogg
default_place_node_hard.1.ogg
default_place_node_hard.2.ogg
- default_snow_footstep.1.ogg
- default_snow_footstep.2.ogg
default_hard_footstep.1.ogg
default_hard_footstep.2.ogg
default_hard_footstep.3.ogg
Tool breaking sounds added by sofar: CC-BY-3.0
default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
-AGFX (CC BY 3.0)
+AGFX (CC BY 3.0):
https://www.freesound.org/people/AGFX/packs/1253/
default_water_footstep.1.ogg
default_water_footstep.2.ogg
default_water_footstep.3.ogg
(default_water_footstep.4.ogg is silent)
-blukotek (CC0 1.0)
+blukotek (CC0 1.0):
https://www.freesound.org/people/blukotek/sounds/251660/
default_dig_snappy.ogg
- http://www.freesound.org/people/kingsamas/sounds/135576/ CC-BY-3.0
- http://www.freesound.org/people/bulbastre/sounds/126887/ CC-BY-3.0
- http://www.freesound.org/people/Yoyodaman234/sounds/183541/ CC0
+
+Ryding (CC0 1.0):
+http://freesound.org/people/Ryding/sounds/94337/
+ default_snow_footstep.*.ogg
--- mods/default/functions.lua
-
--
-- Sounds
--
return table
end
+function default.node_sound_snow_defaults(table)
+ table = table or {}
+ table.footstep = table.footstep or
+ {name = "default_snow_footstep", gain = 0.2}
+ table.dig = table.dig or
+ {name = "default_snow_footstep", gain = 0.3}
+ table.dug = table.dug or
+ {name = "default_snow_footstep", gain = 0.3}
+ table.place = table.place or
+ {name = "default_place_node", gain = 1.0}
+ default.node_sound_defaults(table)
+ return table
+end
+
+
--
-- Lavacooling
--
})
end
+
--
--- optimized helper to put all items in an inventory into a drops list
+-- Optimized helper to put all items in an inventory into a drops list
--
function default.get_inventory_drops(pos, inventory, drops)
end
end
+
--
-- Papyrus and cactus growing
--
--- wrapping the functions in abm action is necessary to make overriding them possible
+-- Wrapping the functions in ABM action is necessary to make overriding them possible
function default.grow_cactus(pos, node)
if node.param2 >= 4 then
--
--- dig upwards
+-- Dig upwards
--
function default.dig_up(pos, node, digger)
end
end
+
--
-- Convert dirt to something that fits the environment
--
--
--- NOTICE: This method is not an official part of the API yet!
+-- NOTICE: This method is not an official part of the API yet.
-- This method may change in future.
--
return true
end
- -- is player wielding the right key?
+ -- Is player wielding the right key?
local item = player:get_wielded_item()
if item:get_name() == "default:key" then
local key_meta = item:get_meta()
For more details:
http://creativecommons.org/licenses/by/3.0/
+
+-----------------------
+
+CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
+Iwan Gabovitch
+Ottomaani138
+Ogrebane
+blukotek
+Sevin7
+Yoyodaman234
+Ryding
+
+No Copyright
+
+The person who associated a work with this deed has dedicated the work to the
+public domain by waiving all of his or her rights to the work worldwide under
+copyright law, including all related and neighboring rights, to the extent
+allowed by law.
+
+You can copy, modify, distribute and perform the work, even for commercial
+purposes, all without asking permission. See Other Information below.
+
+Other Information:
+
+In no way are the patent or trademark rights of any person affected by CC0, nor
+are the rights that other persons may have in the work or in how the work is
+used, such as publicity or privacy rights.
+
+Unless expressly stated otherwise, the person who associated a work with this
+deed makes no warranties about the work, and disclaims liability for all uses
+of the work, to the fullest extent permitted by applicable law.
+
+When using or citing the work, you should not imply endorsement by the author
+or the affirmer.
+
+For more details:
+https://creativecommons.org/publicdomain/zero/1.0/
groups = {crumbly = 3, spreading_dirt_type = 1, snowy = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
- footstep = {name = "default_snow_footstep", gain = 0.15},
+ footstep = {name = "default_snow_footstep", gain = 0.2},
}),
})
},
},
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1, snowy = 1},
- sounds = default.node_sound_dirt_defaults({
- footstep = {name = "default_snow_footstep", gain = 0.15},
- dug = {name = "default_snow_footstep", gain = 0.2},
- dig = {name = "default_snow_footstep", gain = 0.2}
- }),
+ sounds = default.node_sound_snow_defaults(),
on_construct = function(pos)
pos.y = pos.y - 1
description = "Snow Block",
tiles = {"default_snow.png"},
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1},
- sounds = default.node_sound_dirt_defaults({
- footstep = {name = "default_snow_footstep", gain = 0.15},
- dug = {name = "default_snow_footstep", gain = 0.2},
- dig = {name = "default_snow_footstep", gain = 0.2}
- }),
+ sounds = default.node_sound_snow_defaults(),
on_construct = function(pos)
pos.y = pos.y - 1
{"default_snow.png"},
"Snow Block Stair",
"Snow Block Slab",
- default.node_sound_dirt_defaults({
- footstep = {name = "default_snow_footstep", gain = 0.15},
- dug = {name = "default_snow_footstep", gain = 0.2},
- dig = {name = "default_snow_footstep", gain = 0.2}
- })
+ default.node_sound_snow_defaults()
)