Merge branch 'master' into mcl_bamboo_too
|
@ -95,6 +95,7 @@
|
||||||
* anarquimico
|
* anarquimico
|
||||||
* TheOnlyJoeEnderman
|
* TheOnlyJoeEnderman
|
||||||
* Ranko Saotome
|
* Ranko Saotome
|
||||||
|
* Gregor Parzefall
|
||||||
|
|
||||||
## MineClone5
|
## MineClone5
|
||||||
* kay27
|
* kay27
|
||||||
|
|
|
@ -11,42 +11,22 @@ Creative Commons Attribution 3.0 Unported (CC BY-SA 3.0)
|
||||||
http://creativecommons.org/licenses/by/3.0/
|
http://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
Glass breaking sounds (CC BY 3.0):
|
Glass breaking sounds (CC BY 3.0):
|
||||||
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/
|
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/
|
||||||
2: http://www.freesound.org/people/Tomlija/sounds/97669/
|
2: http://www.freesound.org/people/Tomlija/sounds/97669/
|
||||||
3: http://www.freesound.org/people/lsprice/sounds/88808/
|
3: http://www.freesound.org/people/lsprice/sounds/88808/
|
||||||
|
|
||||||
default_tool_breaks.ogg by EdgardEdition (CC BY 3.0), http://www.freesound.org/people/EdgardEdition
|
default_tool_breaks.ogg by EdgardEdition (CC BY 3.0), http://www.freesound.org/people/EdgardEdition
|
||||||
|
|
||||||
Mito551 (sounds) (CC BY-SA 3.0):
|
Mito551 (sounds) (CC BY-SA 3.0):
|
||||||
default_dig_choppy.ogg
|
default_dig_crumbly.ogg
|
||||||
default_dig_cracky.ogg
|
|
||||||
default_dig_crumbly.1.ogg
|
|
||||||
default_dig_crumbly.2.ogg
|
|
||||||
default_dig_oddly_breakable_by_hand.ogg
|
default_dig_oddly_breakable_by_hand.ogg
|
||||||
default_dug_node.1.ogg
|
default_dug_node.*.ogg
|
||||||
default_dug_node.2.ogg
|
default_grass_footstep.*.ogg
|
||||||
default_grass_footstep.1.ogg
|
default_gravel_footstep.*.ogg
|
||||||
default_grass_footstep.2.ogg
|
default_place_node.*.ogg
|
||||||
default_grass_footstep.3.ogg
|
default_place_node_hard.*.ogg
|
||||||
default_gravel_footstep.1.ogg
|
default_wood_footstep.*.ogg
|
||||||
default_gravel_footstep.2.ogg
|
default_dirt_footstep.*.ogg
|
||||||
default_gravel_footstep.3.ogg
|
|
||||||
default_gravel_footstep.4.ogg
|
|
||||||
default_grass_footstep.1.ogg
|
|
||||||
default_place_node.1.ogg
|
|
||||||
default_place_node.2.ogg
|
|
||||||
default_place_node.3.ogg
|
|
||||||
default_place_node_hard.1.ogg
|
|
||||||
default_place_node_hard.2.ogg
|
|
||||||
default_hard_footstep.1.ogg
|
|
||||||
default_hard_footstep.2.ogg
|
|
||||||
default_hard_footstep.3.ogg
|
|
||||||
default_sand_footstep.1.ogg
|
|
||||||
default_sand_footstep.2.ogg
|
|
||||||
default_wood_footstep.1.ogg
|
|
||||||
default_wood_footstep.2.ogg
|
|
||||||
default_dirt_footstep.1.ogg
|
|
||||||
default_dirt_footstep.2.ogg
|
|
||||||
default_glass_footstep.ogg
|
default_glass_footstep.ogg
|
||||||
|
|
||||||
Metal sounds:
|
Metal sounds:
|
||||||
|
@ -54,35 +34,64 @@ Metal sounds:
|
||||||
- https://www.freesound.org/people/yadronoff/sounds/320397/
|
- https://www.freesound.org/people/yadronoff/sounds/320397/
|
||||||
default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
|
default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
|
||||||
- http://opengameart.org/users/qubodup
|
- http://opengameart.org/users/qubodup
|
||||||
default_metal_footstep.*.ogg - Ottomaani138 - CC0
|
default_metal_footstep.*.ogg - (CC0 1.0) - CC0 1.0
|
||||||
- https://www.freesound.org/people/Ottomaani138/sounds/232692/
|
- https://freesound.org/people/mypantsfelldown/sounds/398937/
|
||||||
default_place_node_metal.*.ogg - Ogrebane - CC0
|
default_place_node_metal.*.ogg - Ogrebane - CC0
|
||||||
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
|
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
|
||||||
|
|
||||||
AGFX (CC BY 3.0)
|
AGFX (CC BY 3.0):
|
||||||
https://www.freesound.org/people/AGFX/packs/1253/
|
https://www.freesound.org/people/AGFX/packs/1253/
|
||||||
default_water_footstep.1.ogg
|
default_water_footstep.*.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/
|
https://www.freesound.org/people/blukotek/sounds/251660/
|
||||||
default_dig_snappy.ogg
|
default_dig_snappy.ogg
|
||||||
|
|
||||||
sonictechtonic (CC BY 3.0)
|
sonictechtonic (CC BY 3.0):
|
||||||
https://www.freesound.org/people/sonictechtonic/sounds/241872/
|
https://www.freesound.org/people/sonictechtonic/sounds/241872/
|
||||||
player_damage.ogg
|
player_damage.ogg
|
||||||
|
|
||||||
Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0)
|
Sheyvan (CC0 1.0):
|
||||||
|
https://freesound.org/people/Sheyvan/sounds/476113/
|
||||||
|
default_dig_choppy.*.ogg
|
||||||
|
|
||||||
|
lolamadeus (CC0 1.0):
|
||||||
|
https://freesound.org/people/lolamadeus/sounds/179341/
|
||||||
|
default_gravel_dig.*.ogg
|
||||||
|
default_gravel_dug.*.ogg
|
||||||
|
|
||||||
|
Benboncan (CC BY 3.0):
|
||||||
|
https://freesound.org/people/Benboncan/sounds/71823/
|
||||||
|
default_dig_cracky.*.ogg
|
||||||
|
|
||||||
|
Erdie (CC BY 3.0):
|
||||||
|
https://freesound.org/people/Erdie/sounds/41579/
|
||||||
|
default_hard_footstep.*.ogg
|
||||||
|
|
||||||
|
worthahep88 (CC0 1.0):
|
||||||
|
https://freesound.org/people/worthahep88/sounds/319224/
|
||||||
|
default_sand_footstep.*.ogg
|
||||||
|
|
||||||
|
dheming (CC BY 3.0):
|
||||||
|
https://freesound.org/people/dheming/sounds/268023/
|
||||||
|
default_ice_dig.*.ogg
|
||||||
|
|
||||||
|
InspectorJ (CC BY 3.0):
|
||||||
|
https://freesound.org/people/InspectorJ/sounds/416967/
|
||||||
|
default_ice_footstep.*.ogg
|
||||||
|
|
||||||
|
Angel_Perez_Grandi (CC BY 3.0):
|
||||||
|
https://freesound.org/people/Angel_Perez_Grandi/sounds/49190/
|
||||||
|
default_ice_dug.ogg
|
||||||
|
|
||||||
|
Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0):
|
||||||
mcl_sounds_place_node_water.ogg
|
mcl_sounds_place_node_water.ogg
|
||||||
mcl_sounds_dug_water.ogg
|
mcl_sounds_dug_water.ogg
|
||||||
|
|
||||||
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
|
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
|
||||||
Tom Peter, Telaron, juskiddink)
|
Tom Peter, Telaron, juskiddink)
|
||||||
|
|
||||||
Michel Baradari <https://opengameart.org/content/lava-splash> (CC BY 3.0)
|
Michel Baradari <https://opengameart.org/content/lava-splash> (CC BY 3.0):
|
||||||
|
|
||||||
default_place_node_lava.ogg
|
default_place_node_lava.ogg
|
||||||
|
|
||||||
Adam_N (CC0 1.0):
|
Adam_N (CC0 1.0):
|
||||||
|
@ -90,7 +99,7 @@ Adam_N (CC0 1.0):
|
||||||
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
||||||
|
|
||||||
Alecia Shepherd (CC BY-SA 4.0):
|
Alecia Shepherd (CC BY-SA 4.0):
|
||||||
mcl_sounds_cloth.ogg
|
mcl_sounds_cloth.*.ogg
|
||||||
Source: SnowSong sound and music pack <https://opengameart.org/content/snowsong-sound-and-music-pack>
|
Source: SnowSong sound and music pack <https://opengameart.org/content/snowsong-sound-and-music-pack>
|
||||||
|
|
||||||
Unknown authors (WTFPL):
|
Unknown authors (WTFPL):
|
||||||
|
|
|
@ -11,7 +11,7 @@ function mcl_sounds.node_sound_defaults(table)
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_dug_node", gain=0.25}
|
{name="default_dug_node", gain=0.25}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_oddly_breakable_by_hand", gain=1.0}
|
{name="default_dig_oddly_breakable_by_hand", gain=0.5}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node_hard", gain=1.0}
|
{name="default_place_node_hard", gain=1.0}
|
||||||
return table
|
return table
|
||||||
|
@ -20,11 +20,11 @@ end
|
||||||
function mcl_sounds.node_sound_stone_defaults(table)
|
function mcl_sounds.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.2}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_hard_footstep", gain=1.0}
|
{name="default_hard_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_cracky", gain=1.0}
|
{name="default_dig_cracky", gain=0.5}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -32,13 +32,13 @@ end
|
||||||
function mcl_sounds.node_sound_metal_defaults(table)
|
function mcl_sounds.node_sound_metal_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name="default_metal_footstep", gain=0.5}
|
{name="default_metal_footstep", gain=0.2}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_dug_metal", gain=1.0}
|
{name="default_dug_metal", gain=0.5}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_metal", gain=1.0}
|
{name="default_dig_metal", gain=0.5}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node_metal", gain=1.0}
|
{name="default_place_node_metal", gain=0.5}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -46,11 +46,11 @@ end
|
||||||
function mcl_sounds.node_sound_dirt_defaults(table)
|
function mcl_sounds.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.25}
|
||||||
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.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_crumbly", gain=1.0}
|
{name="default_dig_crumbly", gain=0.4}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
@ -60,11 +60,25 @@ end
|
||||||
function mcl_sounds.node_sound_sand_defaults(table)
|
function mcl_sounds.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.05}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_sand_footstep", gain=1.0}
|
{name="default_sand_footstep", gain=0.15}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_crumbly", gain=1.0}
|
{name="default_dig_crumbly", gain=0.4}
|
||||||
|
table.place = table.place or
|
||||||
|
{name="default_place_node", gain=1.0}
|
||||||
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function mcl_sounds.node_sound_gravel_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or
|
||||||
|
{name="default_gravel_footstep", gain=0.25}
|
||||||
|
table.dug = table.dug or
|
||||||
|
{name="default_gravel_dug", gain=1.0}
|
||||||
|
table.dig = table.dig or
|
||||||
|
{name="default_gravel_dig", gain=0.35}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
@ -78,21 +92,33 @@ function mcl_sounds.node_sound_snow_defaults(table)
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="pedology_snow_soft_footstep", gain=1.0}
|
{name="pedology_snow_soft_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_crumbly", gain=1.0}
|
{name="pedology_snow_soft_footstep", gain=1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
{name="default_place_node", gain=1.0}
|
{name="default_place_node", gain=1.0}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mcl_sounds.node_sound_ice_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or
|
||||||
|
{name="default_ice_footstep", gain=0.15}
|
||||||
|
table.dug = table.dug or
|
||||||
|
{name="default_ice_dug", gain=0.5}
|
||||||
|
table.dig = table.dig or
|
||||||
|
{name="default_ice_dig", gain=0.5}
|
||||||
|
mcl_sounds.node_sound_defaults(table)
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
function mcl_sounds.node_sound_wood_defaults(table)
|
function mcl_sounds.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.15}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_wood_footstep", gain=1.0}
|
{name="default_wood_footstep", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_choppy", gain=1.0}
|
{name="default_dig_choppy", gain=0.4}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
@ -128,11 +154,11 @@ end
|
||||||
function mcl_sounds.node_sound_glass_defaults(table)
|
function mcl_sounds.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_glass_footstep", gain=0.3}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name="default_break_glass", gain=1.0}
|
{name="default_break_glass", gain=1.0}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name="default_dig_cracky", gain=1.0}
|
{name="default_dig_cracky", gain=0.5}
|
||||||
mcl_sounds.node_sound_defaults(table)
|
mcl_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
BIN
mods/CORE/mcl_sounds/sounds/default_dig_choppy.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_dig_choppy.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_dig_choppy.3.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_dig_cracky.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_dig_cracky.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_dig_cracky.3.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_gravel_dig.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_gravel_dig.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_gravel_dug.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_gravel_dug.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_gravel_dug.3.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_dig.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_dig.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_dig.3.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_dug.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_footstep.1.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_footstep.2.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_ice_footstep.3.ogg
Normal file
BIN
mods/CORE/mcl_sounds/sounds/default_sand_footstep.3.ogg
Normal file
Before Width: | Height: | Size: 702 B |
|
@ -3,26 +3,35 @@ local NIGHT_VISION_RATIO = 0.45
|
||||||
|
|
||||||
local water_color = "#0b4880"
|
local water_color = "#0b4880"
|
||||||
|
|
||||||
function mcl_weather.set_sky_box_clear(player)
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
|
||||||
|
function mcl_weather.set_sky_box_clear(player, sky, fog)
|
||||||
local pos = player:get_pos()
|
local pos = player:get_pos()
|
||||||
if minetest.get_item_group(minetest.get_node(vector.new(pos.x,pos.y+1.5,pos.z)).name, "water") ~= 0 then return end
|
if minetest.get_item_group(minetest.get_node(vector.new(pos.x,pos.y+1.5,pos.z)).name, "water") ~= 0 then return end
|
||||||
player:set_sky({
|
local sc = {
|
||||||
type = "regular",
|
day_sky = "#0000FF", -- Pure blue to make debugging this stuff easier. Not visible during normal gameplay.
|
||||||
sky_color = {
|
day_horizon = "#FF0000", -- Pure red to make debugging this stuff easier. Not visible during normal gameplay.
|
||||||
day_sky = "#92B9FF",
|
|
||||||
day_horizon = "#B4D0FF",
|
|
||||||
dawn_sky = "#B4BAFA",
|
dawn_sky = "#B4BAFA",
|
||||||
dawn_horizon = "#BAC1F0",
|
dawn_horizon = "#BAC1F0",
|
||||||
night_sky = "#000000",
|
night_sky = "#000000",
|
||||||
night_horizon = "#4A6790",
|
night_horizon = "#4A6790",
|
||||||
},
|
}
|
||||||
|
if sky then
|
||||||
|
sc.day_sky = sky
|
||||||
|
end
|
||||||
|
if fog then
|
||||||
|
sc.day_horizon = fog
|
||||||
|
end
|
||||||
|
player:set_sky({
|
||||||
|
type = "regular",
|
||||||
|
sky_color = sc,
|
||||||
clouds = true,
|
clouds = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_weather.set_sky_color(player, def)
|
function mcl_weather.set_sky_color(player, def)
|
||||||
local pos = player:get_pos()
|
local pos = player:get_pos()
|
||||||
if minetest.get_item_group(minetest.get_node(vector.new(pos.x,pos.y+1.5,pos.z)).name, "water") ~= 0 then return end
|
if minetest.get_item_group(minetest.get_node(vector.offset(pos, 0, 1.5, 0)).name, "water") ~= 0 then return end
|
||||||
player:set_sky({
|
player:set_sky({
|
||||||
type = def.type,
|
type = def.type,
|
||||||
sky_color = def.sky_color,
|
sky_color = def.sky_color,
|
||||||
|
@ -124,9 +133,16 @@ mcl_weather.skycolor = {
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
if dim == "overworld" then
|
if dim == "overworld" then
|
||||||
|
local biomesky
|
||||||
|
local biomefog
|
||||||
|
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||||
|
local biome = minetest.get_biome_name(minetest.get_biome_data(player:get_pos()).biome)
|
||||||
|
biomesky = minetest.registered_biomes[biome]._mcl_skycolor
|
||||||
|
biomefog = minetest.registered_biomes[biome]._mcl_fogcolor
|
||||||
|
end
|
||||||
if (mcl_weather.state == "none") then
|
if (mcl_weather.state == "none") then
|
||||||
-- Clear weather
|
-- Clear weather
|
||||||
mcl_weather.set_sky_box_clear(player)
|
mcl_weather.set_sky_box_clear(player,biomesky,biomefog)
|
||||||
player:set_sun({visible = true, sunrise_visible = true})
|
player:set_sun({visible = true, sunrise_visible = true})
|
||||||
player:set_moon({visible = true})
|
player:set_moon({visible = true})
|
||||||
player:set_stars({visible = true})
|
player:set_stars({visible = true})
|
||||||
|
|
|
@ -699,6 +699,7 @@ minetest.register_on_joinplayer(function(player)
|
||||||
players[name].start_i = 0
|
players[name].start_i = 0
|
||||||
end
|
end
|
||||||
init(player)
|
init(player)
|
||||||
|
-- Setup initial creative inventory to the "nix" page.
|
||||||
mcl_inventory.set_creative_formspec(player, 0, 1, nil, false, "nix", "")
|
mcl_inventory.set_creative_formspec(player, 0, 1, nil, false, "nix", "")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
@ -169,12 +169,6 @@ minetest.register_on_joinplayer(function(player)
|
||||||
player:hud_set_hotbar_image("mcl_inventory_hotbar.png")
|
player:hud_set_hotbar_image("mcl_inventory_hotbar.png")
|
||||||
player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png")
|
player:hud_set_hotbar_selected_image("mcl_inventory_hotbar_selected.png")
|
||||||
|
|
||||||
local old_update_player = mcl_armor.update_player
|
|
||||||
function mcl_armor.update_player(player, info)
|
|
||||||
old_update_player(player, info)
|
|
||||||
set_inventory(player, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
-- In Creative Mode, the initial inventory setup is handled in creative.lua
|
||||||
if not minetest.is_creative_enabled(player:get_player_name()) then
|
if not minetest.is_creative_enabled(player:get_player_name()) then
|
||||||
set_inventory(player)
|
set_inventory(player)
|
||||||
|
|
Before Width: | Height: | Size: 6.9 KiB |
|
@ -124,7 +124,7 @@ end
|
||||||
local default_sounds
|
local default_sounds
|
||||||
if minetest.get_modpath("mcl_sounds") then
|
if minetest.get_modpath("mcl_sounds") then
|
||||||
default_sounds = mcl_sounds.node_sound_wood_defaults({
|
default_sounds = mcl_sounds.node_sound_wood_defaults({
|
||||||
footstep = { gain = 0.5, name = "mcl_sounds_cloth" },
|
footstep = mcl_sounds.node_sound_wool_defaults().footstep,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 2.1 KiB |
|
@ -32,8 +32,10 @@ end
|
||||||
|
|
||||||
local tiles_chest_ender_small = {"mcl_chests_ender.png"}
|
local tiles_chest_ender_small = {"mcl_chests_ender.png"}
|
||||||
|
|
||||||
|
local ender_chest_texture = {"mcl_chests_ender.png"}
|
||||||
if it_is_christmas then
|
if it_is_christmas then
|
||||||
tiles_chest_ender_small = {"mcl_chests_ender_present.png^mcl_chests_noise.png"}
|
tiles_chest_ender_small = {"mcl_chests_ender_present.png^mcl_chests_noise.png"}
|
||||||
|
ender_chest_texture = {"mcl_chests_ender_present.png"}
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Chest Entity
|
-- Chest Entity
|
||||||
|
@ -1010,7 +1012,7 @@ minetest.register_node("mcl_chests:ender_chest_small", {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.4375, -0.5, -0.4375, 0.4375, 0.375, 0.4375},
|
fixed = {-0.4375, -0.5, -0.4375, 0.4375, 0.375, 0.4375},
|
||||||
},
|
},
|
||||||
_chest_entity_textures = {"mcl_chests_ender.png"},
|
_chest_entity_textures = ender_chest_texture,
|
||||||
_chest_entity_sound = "mcl_chests_enderchest",
|
_chest_entity_sound = "mcl_chests_enderchest",
|
||||||
_chest_entity_mesh = "mcl_chests_chest",
|
_chest_entity_mesh = "mcl_chests_chest",
|
||||||
_chest_entity_animation_type = "chest",
|
_chest_entity_animation_type = "chest",
|
||||||
|
@ -1026,7 +1028,7 @@ minetest.register_node("mcl_chests:ender_chest_small", {
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
drop = "mcl_core:obsidian 8",
|
drop = "mcl_core:obsidian 8",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
create_entity(pos, "mcl_chests:ender_chest_small", {"mcl_chests_ender.png"}, minetest.get_node(pos).param2, false, "mcl_chests_enderchest", "mcl_chests_chest", "chest")
|
create_entity(pos, "mcl_chests:ender_chest_small", ender_chest_texture, minetest.get_node(pos).param2, false, "mcl_chests_enderchest", "mcl_chests_chest", "chest")
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
if minetest.registered_nodes[minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name].groups.opaque == 1 then
|
if minetest.registered_nodes[minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name].groups.opaque == 1 then
|
||||||
|
@ -1034,7 +1036,7 @@ minetest.register_node("mcl_chests:ender_chest_small", {
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
minetest.show_formspec(clicker:get_player_name(), "mcl_chests:ender_chest_"..clicker:get_player_name(), formspec_ender_chest)
|
minetest.show_formspec(clicker:get_player_name(), "mcl_chests:ender_chest_"..clicker:get_player_name(), formspec_ender_chest)
|
||||||
player_chest_open(clicker, pos, "mcl_chests:ender_chest_small", {"mcl_chests_ender.png"}, node.param2, false, "mcl_chests_enderchest", "mcl_chests_chest")
|
player_chest_open(clicker, pos, "mcl_chests:ender_chest_small", ender_chest_texture, node.param2, false, "mcl_chests_enderchest", "mcl_chests_chest")
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
if fields.quit then
|
if fields.quit then
|
||||||
|
|
|
@ -1559,7 +1559,7 @@ function mcl_core.register_snowed_node(itemstring_snowed, itemstring_clear, tile
|
||||||
end
|
end
|
||||||
if not sounds then
|
if not sounds then
|
||||||
def.sounds = mcl_sounds.node_sound_dirt_defaults({
|
def.sounds = mcl_sounds.node_sound_dirt_defaults({
|
||||||
footstep = { name = "pedology_snow_soft_footstep", gain = 0.5 }
|
footstep = mcl_sounds.node_sound_snow_defaults().footstep,
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
def.sounds = sounds
|
def.sounds = sounds
|
||||||
|
|
|
@ -542,9 +542,7 @@ minetest.register_node("mcl_core:gravel", {
|
||||||
{items = {"mcl_core:gravel"}}
|
{items = {"mcl_core:gravel"}}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sounds = mcl_sounds.node_sound_dirt_defaults({
|
sounds = mcl_sounds.node_sound_gravel_defaults(),
|
||||||
footstep = {name="default_gravel_footstep", gain=0.45},
|
|
||||||
}),
|
|
||||||
_mcl_blast_resistance = 0.6,
|
_mcl_blast_resistance = 0.6,
|
||||||
_mcl_hardness = 0.6,
|
_mcl_hardness = 0.6,
|
||||||
_mcl_silk_touch_drop = true,
|
_mcl_silk_touch_drop = true,
|
||||||
|
@ -901,7 +899,7 @@ minetest.register_node("mcl_core:ice", {
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1},
|
groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1},
|
||||||
drop = "",
|
drop = "",
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_ice_defaults(),
|
||||||
node_dig_prediction = "mcl_core:water_source",
|
node_dig_prediction = "mcl_core:water_source",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
mcl_core.melt_ice(pos)
|
mcl_core.melt_ice(pos)
|
||||||
|
@ -919,7 +917,7 @@ minetest.register_node("mcl_core:packed_ice", {
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1},
|
groups = {handy=1,pickaxey=1, slippery=3, building_block=1, ice=1},
|
||||||
drop = "",
|
drop = "",
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_ice_defaults(),
|
||||||
_mcl_blast_resistance = 0.5,
|
_mcl_blast_resistance = 0.5,
|
||||||
_mcl_hardness = 0.5,
|
_mcl_hardness = 0.5,
|
||||||
_mcl_silk_touch_drop = true,
|
_mcl_silk_touch_drop = true,
|
||||||
|
@ -967,7 +965,7 @@ for i=0,3 do
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {handy=1, frosted_ice=1, slippery=3, not_in_creative_inventory=1, ice=1},
|
groups = {handy=1, frosted_ice=1, slippery=3, not_in_creative_inventory=1, ice=1},
|
||||||
drop = "",
|
drop = "",
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_ice_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local timer = minetest.get_node_timer(pos)
|
local timer = minetest.get_node_timer(pos)
|
||||||
timer:start(1.5)
|
timer:start(1.5)
|
||||||
|
|
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 183 B |
|
@ -615,8 +615,8 @@ mcl_doors:register_door("mcl_crimson:crimson_door", {
|
||||||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||||
_mcl_hardness = 3,
|
_mcl_hardness = 3,
|
||||||
_mcl_blast_resistance = 3,
|
_mcl_blast_resistance = 3,
|
||||||
tiles_bottom = {"mcl_crimson_crimson_door_bottom.png", "crimson_hyphae_wood.png"},
|
tiles_bottom = {"mcl_crimson_crimson_door_bottom.png", "mcl_doors_door_crimson_side_lower.png"},
|
||||||
tiles_top = {"mcl_crimson_crimson_door_top.png", "crimson_hyphae_wood.png"},
|
tiles_top = {"mcl_crimson_crimson_door_top.png", "mcl_doors_door_crimson_side_upper.png"},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -653,8 +653,8 @@ mcl_doors:register_door("mcl_crimson:warped_door", {
|
||||||
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
groups = {handy=1,axey=1, material_wood=1, flammable=-1},
|
||||||
_mcl_hardness = 3,
|
_mcl_hardness = 3,
|
||||||
_mcl_blast_resistance = 3,
|
_mcl_blast_resistance = 3,
|
||||||
tiles_bottom = {"mcl_crimson_warped_door_bottom.png", "warped_hyphae_wood.png"},
|
tiles_bottom = {"mcl_crimson_warped_door_bottom.png", "mcl_doors_door_warped_side_lower.png"},
|
||||||
tiles_top = {"mcl_crimson_warped_door_top.png", "warped_hyphae_wood.png"},
|
tiles_top = {"mcl_crimson_warped_door_top.png", "mcl_doors_door_warped_side_upper.png"},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 928 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 214 B |
BIN
mods/ITEMS/mcl_crimson/textures/mcl_crimson_warped_door_alt.png
Normal file
After Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 287 B |
After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 539 B After Width: | Height: | Size: 281 B |
After Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 156 B |
After Width: | Height: | Size: 158 B |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 151 B |
After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 581 B After Width: | Height: | Size: 309 B |
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 217 B |