Remove hard dependency on default
This commit is contained in:
parent
d9d9f0a502
commit
1a5e8a70d7
|
@ -82,4 +82,5 @@ read_globals = {
|
||||||
"x_obsidianmese",
|
"x_obsidianmese",
|
||||||
"x_farming",
|
"x_farming",
|
||||||
"x_clay",
|
"x_clay",
|
||||||
|
"mcl_fences",
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,8 @@
|
||||||
"XTumbleweed",
|
"XTumbleweed",
|
||||||
"x_obsidianmese",
|
"x_obsidianmese",
|
||||||
"x_farming",
|
"x_farming",
|
||||||
"x_clay"
|
"x_clay",
|
||||||
|
"mcl_fences"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
198
LICENSE.txt
198
LICENSE.txt
|
@ -839,7 +839,7 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
|
||||||
|
|
||||||
### Sounds
|
### Sounds
|
||||||
|
|
||||||
**CC0-1.0, by ProdMultimediasHQI**, https://freesound.org
|
**CC0-1.0, by ProdMultimediasHQI**, https://freesound.org/people/ProdMultimediasHQI/sounds/512501/
|
||||||
|
|
||||||
- everness_frosted_snow_footstep.1.ogg
|
- everness_frosted_snow_footstep.1.ogg
|
||||||
- everness_frosted_snow_footstep.2.ogg
|
- everness_frosted_snow_footstep.2.ogg
|
||||||
|
@ -1022,12 +1022,25 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
|
||||||
- everness_grass_hit.3.ogg
|
- everness_grass_hit.3.ogg
|
||||||
- everness_grass_hit.2.ogg
|
- everness_grass_hit.2.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by Nox_Sound**, https://freesound.org/people/Nox_Sound/sounds/613849/
|
||||||
|
|
||||||
|
- everness_snow_footstep.1.ogg
|
||||||
|
- everness_snow_footstep.2.ogg
|
||||||
|
- everness_snow_footstep.3.ogg
|
||||||
|
- everness_snow_footstep.4.ogg
|
||||||
|
|
||||||
**CC0-1.0, by Fission9**, https://freesound.org
|
**CC0-1.0, by Fission9**, https://freesound.org
|
||||||
|
|
||||||
- everness_dirt_footstep.1.ogg
|
- everness_dirt_footstep.1.ogg
|
||||||
- everness_dirt_footstep.2.ogg
|
- everness_dirt_footstep.2.ogg
|
||||||
- everness_dirt_footstep.3.ogg
|
- everness_dirt_footstep.3.ogg
|
||||||
- everness_dirt_footstep.4.ogg
|
- everness_dirt_footstep.4.ogg
|
||||||
|
- everness_wood_footstep.1.ogg
|
||||||
|
- everness_wood_footstep.2.ogg
|
||||||
|
- everness_wood_footstep.3.ogg
|
||||||
|
- everness_wood_footstep.4.ogg
|
||||||
|
- everness_wood_footstep.5.ogg
|
||||||
|
- everness_wood_footstep.6.ogg
|
||||||
|
|
||||||
**CC-BY-4.0, by InspectorJ**, https://freesound.org
|
**CC-BY-4.0, by InspectorJ**, https://freesound.org
|
||||||
|
|
||||||
|
@ -1043,6 +1056,189 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
|
||||||
- everness_ice_hit.3.ogg
|
- everness_ice_hit.3.ogg
|
||||||
- everness_ice_hit.4.ogg
|
- everness_ice_hit.4.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by Nox_Sound**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_stone_dug.1.ogg
|
||||||
|
- everness_stone_dug.2.ogg
|
||||||
|
- everness_stone_dug.3.ogg
|
||||||
|
- everness_stone_footstep.1.ogg
|
||||||
|
- everness_stone_footstep.2.ogg
|
||||||
|
- everness_stone_footstep.3.ogg
|
||||||
|
- everness_stone_footstep.4.ogg
|
||||||
|
- everness_stone_footstep.5.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by lolamadeus**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_stone_hit.1.ogg
|
||||||
|
- everness_stone_hit.2.ogg
|
||||||
|
- everness_stone_hit.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by F.M.Audio**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_stone_place.1.ogg
|
||||||
|
- everness_stone_place.2.ogg
|
||||||
|
- everness_stone_place.3.ogg
|
||||||
|
- everness_stone_place.4.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by elektroproleter**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_leaves_footstep.1.ogg
|
||||||
|
- everness_leaves_footstep.2.ogg
|
||||||
|
- everness_leaves_footstep.3.ogg
|
||||||
|
- everness_leaves_footstep.4.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by Abacagi**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_leaves_hit.1.ogg
|
||||||
|
- everness_leaves_hit.2.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by JanKoehl**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_leaves_dug.1.ogg
|
||||||
|
- everness_leaves_dug.2.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by vgraham1**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_leaves_place.1.ogg
|
||||||
|
- everness_leaves_place.2.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by worthahep88**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_plant_hit.1.ogg
|
||||||
|
- everness_plant_hit.2.ogg
|
||||||
|
- everness_plant_hit.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by igroglaz**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_wood_hit.1.ogg
|
||||||
|
- everness_wood_hit.2.ogg
|
||||||
|
- everness_wood_hit.3.ogg
|
||||||
|
- everness_wood_hit.4.ogg
|
||||||
|
- everness_wood_hit.5.ogg
|
||||||
|
- everness_wood_hit.6.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by RICHERlandTV**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_wood_place.1.ogg
|
||||||
|
- everness_wood_place.2.ogg
|
||||||
|
- everness_wood_place.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by pan14**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_sand_footstep.1.ogg
|
||||||
|
- everness_sand_footstep.2.ogg
|
||||||
|
- everness_sand_footstep.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by Coral_Island_Studios**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_sand_place.1.ogg
|
||||||
|
- everness_sand_place.2.ogg
|
||||||
|
- everness_sand_place.3.ogg
|
||||||
|
- everness_sand_place.4.ogg
|
||||||
|
- everness_sand_place.5.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by schneidi67**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_sand_dug.1.ogg
|
||||||
|
- everness_sand_dug.2.ogg
|
||||||
|
- everness_sand_dug.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by Lukeo135**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_sand_hit.1.ogg
|
||||||
|
- everness_sand_hit.2.ogg
|
||||||
|
- everness_sand_hit.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by GiocoSound**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_metal_footstep.1.ogg
|
||||||
|
- everness_metal_footstep.2.ogg
|
||||||
|
- everness_metal_footstep.3.ogg
|
||||||
|
- everness_metal_footstep.4.ogg
|
||||||
|
- everness_metal_footstep.5.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by DasDeer**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_metal_hit.1.ogg
|
||||||
|
- everness_metal_hit.2.ogg
|
||||||
|
- everness_metal_hit.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by MoveAwayPodcast**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_metal_place.1.ogg
|
||||||
|
- everness_metal_place.2.ogg
|
||||||
|
- everness_metal_place.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by craigsmith**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_metal_dug.1.ogg
|
||||||
|
- everness_metal_dug.2.ogg
|
||||||
|
- everness_metal_dug.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by courtneyeck**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_glass_footstep.1.ogg
|
||||||
|
- everness_glass_footstep.2.ogg
|
||||||
|
- everness_glass_footstep.3.ogg
|
||||||
|
|
||||||
|
**CC0-1.0, by Robson220pl**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_glass_place.1.ogg
|
||||||
|
- everness_glass_place.2.ogg
|
||||||
|
- everness_glass_place.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-4.0, by elfgrunge**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_glass_dug.1.ogg
|
||||||
|
- everness_glass_dug.2.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by Mito551**, https://freesound.org
|
||||||
|
|
||||||
|
- everness_thin_glass_footstep.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by cmusounddesign**, http://www.freesound.org/people/cmusounddesign/sounds/71947/
|
||||||
|
|
||||||
|
- everness_break_thin_glass.1.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by Tomlija**, http://www.freesound.org/people/Tomlija/sounds/97669/
|
||||||
|
|
||||||
|
- everness_break_thin_glass.2.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by lsprice**, http://www.freesound.org/people/lsprice/sounds/88808/
|
||||||
|
|
||||||
|
- everness_break_thin_glass.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by alexo400**, https://freesound.org/people/alexo400/sounds/543385/
|
||||||
|
|
||||||
|
- everness_snow_place.1.ogg
|
||||||
|
- everness_snow_place.2.ogg
|
||||||
|
- everness_snow_place.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by soundscalpel.com**
|
||||||
|
https://freesound.org/people/soundscalpel.com/sounds/110619/
|
||||||
|
https://freesound.org/people/soundscalpel.com/sounds/110609/
|
||||||
|
https://freesound.org/people/soundscalpel.com/sounds/110620/
|
||||||
|
|
||||||
|
- everness_snow_hit.1.ogg
|
||||||
|
- everness_snow_hit.2.ogg
|
||||||
|
- everness_snow_hit.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by soundscalpel.com**
|
||||||
|
https://freesound.org/people/cabled_mess/sounds/384423/
|
||||||
|
https://freesound.org/people/cabled_mess/sounds/384422/
|
||||||
|
https://freesound.org/people/cabled_mess/sounds/384421/
|
||||||
|
|
||||||
|
- everness_frosted_snow_place.1.ogg
|
||||||
|
- everness_frosted_snow_place.2.ogg
|
||||||
|
- everness_frosted_snow_place.3.ogg
|
||||||
|
|
||||||
|
**CC-BY-3.0, by AtevonHes**, https://freesound.org/people/AtevonHes/sounds/454783/
|
||||||
|
|
||||||
|
- everness_frosted_snow_hit.1.ogg
|
||||||
|
- everness_frosted_snow_hit.2.ogg
|
||||||
|
- everness_frosted_snow_hit.3.ogg
|
||||||
|
- everness_frosted_snow_hit.4.ogg
|
||||||
|
|
||||||
### Models
|
### Models
|
||||||
|
|
||||||
**CC-BY-SA-4.0, by SaKeL**
|
**CC-BY-SA-4.0, by SaKeL**
|
||||||
|
|
198
api.lua
198
api.lua
|
@ -676,109 +676,138 @@ end
|
||||||
-- Sounds
|
-- Sounds
|
||||||
--
|
--
|
||||||
|
|
||||||
function Everness.node_sound_defaults(table)
|
|
||||||
table = table or {}
|
|
||||||
table.footstep = table.footstep or
|
|
||||||
{ name = '', gain = 1.0 }
|
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'default_dug_node', gain = 0.25 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'default_place_node_hard', gain = 1.0 }
|
|
||||||
return table
|
|
||||||
end
|
|
||||||
|
|
||||||
function Everness.node_sound_frosted_snow_defaults(table)
|
function Everness.node_sound_frosted_snow_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_frosted_snow_footstep', gain = 0.2 }
|
||||||
{ name = 'everness_frosted_snow_footstep', gain = 0.2 }
|
table.dig = table.dig or { name = 'everness_frosted_snow_hit', gain = 0.2 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_frosted_snow_footstep', gain = 0.3 }
|
||||||
{ name = 'everness_frosted_snow_footstep', gain = 0.3 }
|
table.place = table.place or { name = 'everness_frosted_snow_place', gain = 0.25 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'everness_frosted_snow_footstep', gain = 0.3 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'default_place_node', gain = 1.0 }
|
|
||||||
default.node_sound_defaults(table)
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_crystal_defaults(table)
|
function Everness.node_sound_crystal_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_crystal_chime', gain = 0.2 }
|
||||||
{ name = 'everness_crystal_chime', gain = 0.2 }
|
table.dig = table.dig or { name = 'everness_crystal_chime', gain = 0.3 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_stone_footstep', gain = 0.3 }
|
||||||
{ name = 'everness_crystal_chime', gain = 0.3 }
|
table.place = table.place or { name = 'everness_crystal_chime', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'default_hard_footstep', gain = 0.3 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_crystal_chime', gain = 1.0 }
|
|
||||||
default.node_sound_defaults(table)
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_bamboo_defaults(table)
|
function Everness.node_sound_bamboo_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_bamboo_hit', gain = 0.2 }
|
||||||
{ name = 'everness_bamboo_hit', gain = 0.2 }
|
table.dig = table.dig or { name = 'everness_bamboo_hit', gain = 0.3 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_bamboo_dug', gain = 0.1 }
|
||||||
{ name = 'everness_bamboo_hit', gain = 0.3 }
|
table.place = table.place or { name = 'everness_bamboo_hit', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'everness_bamboo_dug', gain = 0.1 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_bamboo_hit', gain = 1.0 }
|
|
||||||
default.node_sound_defaults(table)
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_mud_defaults(table)
|
function Everness.node_sound_mud_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_mud_footstep', gain = 0.2 }
|
||||||
{ name = 'everness_mud_footstep', gain = 0.2 }
|
table.dig = table.dig or { name = 'everness_mud_footstep', gain = 0.3 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_mud_footstep', gain = 0.1 }
|
||||||
{ name = 'everness_mud_footstep', gain = 0.3 }
|
table.place = table.place or { name = 'everness_mud_footstep', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'everness_mud_footstep', gain = 0.1 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_mud_footstep', gain = 1.0 }
|
|
||||||
default.node_sound_defaults(table)
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_grass_defaults(table)
|
function Everness.node_sound_grass_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_grass_footstep', gain = 0.4 }
|
||||||
{ name = 'everness_grass_footstep', gain = 0.4 }
|
table.dig = table.dig or { name = 'everness_grass_hit', gain = 1.2 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_dirt_hit', gain = 1.0 }
|
||||||
{ name = 'everness_grass_hit', gain = 1.2 }
|
table.place = table.place or { name = 'everness_dirt_hit', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'everness_dirt_hit', gain = 1.0 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_dirt_hit', gain = 1.0 }
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_dirt_defaults(table)
|
function Everness.node_sound_dirt_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_dirt_footstep', gain = 0.15 }
|
||||||
{ name = 'everness_dirt_footstep', gain = 0.15 }
|
table.dig = table.dig or { name = 'everness_dirt_hit', gain = 0.4 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_dirt_hit', gain = 1.0 }
|
||||||
{ name = 'everness_dirt_hit', gain = 0.4 }
|
table.place = table.place or { name = 'everness_dirt_hit', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
|
||||||
{ name = 'everness_dirt_hit', gain = 1.0 }
|
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_dirt_hit', gain = 1.0 }
|
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
function Everness.node_sound_ice_defaults(table)
|
function Everness.node_sound_ice_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or { name = 'everness_ice_footstep', gain = 0.2 }
|
||||||
{ name = 'everness_ice_footstep', gain = 0.2 }
|
table.dig = table.dig or { name = 'everness_ice_hit', gain = 0.4 }
|
||||||
table.dig = table.dig or
|
table.dug = table.dug or { name = 'everness_ice_hit', gain = 1.0 }
|
||||||
{ name = 'everness_ice_hit', gain = 0.4 }
|
table.place = table.place or { name = 'everness_ice_hit', gain = 1.0 }
|
||||||
table.dug = table.dug or
|
return table
|
||||||
{ name = 'everness_ice_hit', gain = 1.0 }
|
end
|
||||||
table.place = table.place or
|
|
||||||
{ name = 'everness_ice_hit', gain = 1.0 }
|
function Everness.node_sound_stone_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_stone_footstep', gain = 0.2 }
|
||||||
|
table.dig = table.dig or { name = 'everness_stone_hit', gain = 1.0 }
|
||||||
|
table.dug = table.dug or { name = 'everness_stone_dug', gain = 0.6 }
|
||||||
|
table.place = table.place or { name = 'everness_stone_place', gain = 1.0 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_leaves_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_leaves_footstep', gain = 0.1 }
|
||||||
|
table.dig = table.dig or { name = 'everness_leaves_hit', gain = 0.25 }
|
||||||
|
table.dug = table.dug or { name = 'everness_leaves_dug', gain = 0.5 }
|
||||||
|
table.place = table.place or { name = 'everness_leaves_place', gain = 0.4 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_wood_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_wood_footstep', gain = 0.15 }
|
||||||
|
table.dig = table.dig or { name = 'everness_wood_hit', gain = 0.5 }
|
||||||
|
table.dug = table.dug or { name = 'everness_wood_place', gain = 0.1 }
|
||||||
|
table.place = table.place or { name = 'everness_wood_place', gain = 0.15 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_sand_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_sand_footstep', gain = 0.1 }
|
||||||
|
table.dig = table.dig or { name = 'everness_sand_hit', gain = 0.5 }
|
||||||
|
table.dug = table.dug or { name = 'everness_sand_dug', gain = 0.1 }
|
||||||
|
table.place = table.place or { name = 'everness_sand_place', gain = 0.15 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_metal_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_metal_footstep', gain = 0.1 }
|
||||||
|
table.dig = table.dig or { name = 'everness_metal_hit', gain = 0.5 }
|
||||||
|
table.dug = table.dug or { name = 'everness_metal_dug', gain = 0.1 }
|
||||||
|
table.place = table.place or { name = 'everness_metal_place', gain = 0.15 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_glass_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_glass_footstep', gain = 0.02 }
|
||||||
|
table.dig = table.dig or { name = 'everness_glass_footstep', gain = 0.05 }
|
||||||
|
table.dug = table.dug or { name = 'everness_glass_dug', gain = 0.4 }
|
||||||
|
table.place = table.place or { name = 'everness_glass_place', gain = 0.2 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_thin_glass_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_thin_glass_footstep', gain = 0.3 }
|
||||||
|
table.dig = table.dig or { name = 'everness_thin_glass_footstep', gain = 0.5 }
|
||||||
|
table.dug = table.dug or { name = 'everness_break_thin_glass', gain = 1.0 }
|
||||||
|
table.place = table.place or { name = 'everness_glass_place', gain = 0.2 }
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.node_sound_snow_defaults(table)
|
||||||
|
table = table or {}
|
||||||
|
table.footstep = table.footstep or { name = 'everness_snow_footstep', gain = 0.1 }
|
||||||
|
table.dig = table.dig or { name = 'everness_snow_hit', gain = 0.2 }
|
||||||
|
table.dug = table.dug or { name = 'everness_snow_footstep', gain = 0.2 }
|
||||||
|
table.place = table.place or { name = 'everness_snow_place', gain = 0.3 }
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -918,3 +947,30 @@ function Everness.use_shell_of_underwater_breathing(self, itemstack, user, point
|
||||||
|
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Everness.leaves_after_place_node(self, pos, placer, itemstack, pointed_thing)
|
||||||
|
if minetest.get_modpath('default') or minetest.global_exists('default') then
|
||||||
|
if default.after_place_leaves then
|
||||||
|
return default.after_place_leaves(pos, placer, itemstack, pointed_thing)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function Everness.sapling_on_place(self, itemstack, placer, pointed_thing, props)
|
||||||
|
local _props = props or {}
|
||||||
|
if minetest.get_modpath('default') or minetest.global_exists('default') then
|
||||||
|
if default.sapling_on_place then
|
||||||
|
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
|
_props.sapling_name,
|
||||||
|
-- minp, maxp to be checked, relative to sapling pos
|
||||||
|
-- minp_relative.y = 1 because sapling pos has been checked
|
||||||
|
_props.minp_relative,
|
||||||
|
_props.maxp_relative,
|
||||||
|
-- maximum interval of interior volume check
|
||||||
|
_props.interval
|
||||||
|
)
|
||||||
|
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -65,7 +65,7 @@ doors.register('everness:door_bone_pyrite', {
|
||||||
description = S('Bone Pyrit Door'),
|
description = S('Bone Pyrit Door'),
|
||||||
inventory_image = 'everness_door_bone_pyrite_item.png',
|
inventory_image = 'everness_door_bone_pyrite_item.png',
|
||||||
groups = { node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = Everness.node_sound_wood_defaults(),
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'everness:pyrite_ingot', 'everness:bone' },
|
{ 'everness:pyrite_ingot', 'everness:bone' },
|
||||||
{ 'everness:pyrite_ingot', 'everness:bone' },
|
{ 'everness:pyrite_ingot', 'everness:bone' },
|
||||||
|
@ -78,7 +78,7 @@ doors.register('everness:door_willow', {
|
||||||
description = S('Willow Door'),
|
description = S('Willow Door'),
|
||||||
inventory_image = 'everness_door_willow_item.png',
|
inventory_image = 'everness_door_willow_item.png',
|
||||||
groups = { node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = Everness.node_sound_wood_defaults(),
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'everness:willow_wood', 'everness:willow_wood' },
|
{ 'everness:willow_wood', 'everness:willow_wood' },
|
||||||
{ 'everness:willow_wood', 'everness:willow_wood' },
|
{ 'everness:willow_wood', 'everness:willow_wood' },
|
||||||
|
|
|
@ -29,7 +29,7 @@ default.register_fence('everness:fence_dry_wood', {
|
||||||
'default_fence_overlay.png^[makealpha:255,126,126',
|
'default_fence_overlay.png^[makealpha:255,126,126',
|
||||||
material = 'everness:dry_wood',
|
material = 'everness:dry_wood',
|
||||||
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = Everness.node_sound_wood_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
default.register_fence_rail('everness:fence_rail_dry_wood', {
|
default.register_fence_rail('everness:fence_rail_dry_wood', {
|
||||||
|
@ -41,7 +41,7 @@ default.register_fence_rail('everness:fence_rail_dry_wood', {
|
||||||
'default_fence_rail_overlay.png^[makealpha:255,126,126',
|
'default_fence_rail_overlay.png^[makealpha:255,126,126',
|
||||||
material = 'everness:dry_wood',
|
material = 'everness:dry_wood',
|
||||||
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = Everness.node_sound_wood_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
default.register_mesepost('everness:mese_post_light_dry_wood', {
|
default.register_mesepost('everness:mese_post_light_dry_wood', {
|
||||||
|
@ -61,7 +61,7 @@ default.register_fence('everness:fence_bamboo_wood', {
|
||||||
'default_fence_overlay.png^[makealpha:255,126,126',
|
'default_fence_overlay.png^[makealpha:255,126,126',
|
||||||
material = 'everness:bamboo_wood',
|
material = 'everness:bamboo_wood',
|
||||||
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = Everness.node_sound_wood_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
default.register_fence_rail('everness:fence_rail_bamboo_wood', {
|
default.register_fence_rail('everness:fence_rail_bamboo_wood', {
|
||||||
|
@ -73,7 +73,7 @@ default.register_fence_rail('everness:fence_rail_bamboo_wood', {
|
||||||
'default_fence_rail_overlay.png^[makealpha:255,126,126',
|
'default_fence_rail_overlay.png^[makealpha:255,126,126',
|
||||||
material = 'everness:bamboo_wood',
|
material = 'everness:bamboo_wood',
|
||||||
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
|
||||||
sounds = default.node_sound_wood_defaults()
|
sounds = Everness.node_sound_wood_defaults()
|
||||||
})
|
})
|
||||||
|
|
||||||
default.register_mesepost('everness:mese_post_light_bamboo_wood', {
|
default.register_mesepost('everness:mese_post_light_bamboo_wood', {
|
||||||
|
|
|
@ -226,7 +226,9 @@ minetest.register_abm({
|
||||||
-- Leafdecay
|
-- Leafdecay
|
||||||
--
|
--
|
||||||
|
|
||||||
default.register_leafdecay({
|
if minetest.get_modpath('default') or minetest.global_exists('default') then
|
||||||
|
if default.register_leafdecay then
|
||||||
|
default.register_leafdecay({
|
||||||
trunks = {
|
trunks = {
|
||||||
'everness:coral_tree',
|
'everness:coral_tree',
|
||||||
'everness:crystal_bush_stem',
|
'everness:crystal_bush_stem',
|
||||||
|
@ -241,10 +243,10 @@ default.register_leafdecay({
|
||||||
'everness:sequoia_leaves',
|
'everness:sequoia_leaves',
|
||||||
},
|
},
|
||||||
radius = 3
|
radius = 3
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Baobab Tree
|
-- Baobab Tree
|
||||||
default.register_leafdecay({
|
default.register_leafdecay({
|
||||||
trunks = {
|
trunks = {
|
||||||
'everness:baobab_tree',
|
'everness:baobab_tree',
|
||||||
'everness:crystal_tree',
|
'everness:crystal_tree',
|
||||||
|
@ -257,7 +259,9 @@ default.register_leafdecay({
|
||||||
'everness:dry_branches',
|
'everness:dry_branches',
|
||||||
},
|
},
|
||||||
radius = 4,
|
radius = 4,
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Moss growth on cobble near water
|
-- Moss growth on cobble near water
|
||||||
|
|
15
init.lua
15
init.lua
|
@ -165,7 +165,14 @@ if minetest.get_modpath('walls') and minetest.global_exists('walls') then
|
||||||
dofile(path .. '/walls.lua')
|
dofile(path .. '/walls.lua')
|
||||||
end
|
end
|
||||||
|
|
||||||
dofile(path .. '/fences.lua')
|
if minetest.get_modpath('default') or minetest.global_exists('default') then
|
||||||
|
if default.register_fence
|
||||||
|
and default.register_fence_rail
|
||||||
|
and default.register_mesepost
|
||||||
|
then
|
||||||
|
dofile(path .. '/fences.lua')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.get_modpath('doors') and minetest.global_exists('doors') then
|
if minetest.get_modpath('doors') and minetest.global_exists('doors') then
|
||||||
dofile(path .. '/doors.lua')
|
dofile(path .. '/doors.lua')
|
||||||
|
@ -206,6 +213,12 @@ then
|
||||||
dofile(path .. '/mod_support_x_obsidianmese.lua')
|
dofile(path .. '/mod_support_x_obsidianmese.lua')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- MineClone2
|
||||||
|
|
||||||
|
if minetest.get_modpath('mcl_fences') and minetest.global_exists('mcl_fences') then
|
||||||
|
dofile(path .. '/mod_support_mcl_fences.lua')
|
||||||
|
end
|
||||||
|
|
||||||
local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000
|
local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000
|
||||||
|
|
||||||
print('[Mod] everness loaded.. [' .. mod_end_time .. 's]')
|
print('[Mod] everness loaded.. [' .. mod_end_time .. 's]')
|
||||||
|
|
4
mod.conf
4
mod.conf
|
@ -1,6 +1,6 @@
|
||||||
name = everness
|
name = everness
|
||||||
description = Never ending discovery in Everness mapgen.
|
description = Never ending discovery in Everness mapgen.
|
||||||
depends = default
|
depends =
|
||||||
optional_depends = xpanes, doors, stairs, walls, x_obsidianmese, x_tumbleweed, x_farming, x_clay
|
optional_depends = default, xpanes, doors, stairs, walls, x_obsidianmese, x_tumbleweed, x_farming, x_clay
|
||||||
supported_games = minetest_game
|
supported_games = minetest_game
|
||||||
min_minetest_version = 5.4
|
min_minetest_version = 5.4
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
--[[
|
||||||
|
Everness. Never ending discovery in Everness mapgen.
|
||||||
|
Copyright (C) 2023 SaKeL <juraj.vajda@gmail.com>
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to juraj.vajda@gmail.com
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
|
|
||||||
|
-- Dry Wood
|
||||||
|
|
||||||
|
mcl_fences.register_fence_and_fence_gate(
|
||||||
|
'fence_dry_wood',
|
||||||
|
S('Dry Wood Fence'),
|
||||||
|
S('Dry Wood Fence Gate'),
|
||||||
|
'everness_fence_dry_wood.png',
|
||||||
|
{ handy = 1, axey = 1, flammable = 2, fence_wood = 1, fire_encouragement = 5, fire_flammability = 20 },
|
||||||
|
2,
|
||||||
|
15,
|
||||||
|
{ 'group:fence_wood' },
|
||||||
|
Everness.node_sound_wood_defaults()
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Bamboo Wood
|
||||||
|
|
||||||
|
mcl_fences.register_fence_and_fence_gate(
|
||||||
|
'fence_bamboo_wood',
|
||||||
|
S('Bamboo Wood Fence'),
|
||||||
|
S('Bamboo Wood Fence Gate'),
|
||||||
|
'everness_fence_bamboo_wood.png',
|
||||||
|
{ handy = 1, axey = 1, flammable = 2, fence_wood = 1, fire_encouragement = 5, fire_flammability = 20 },
|
||||||
|
2,
|
||||||
|
15,
|
||||||
|
{ 'group:fence_wood' },
|
||||||
|
Everness.node_sound_wood_defaults()
|
||||||
|
)
|
|
@ -23,7 +23,7 @@ xpanes.register_pane('pyrite_pane', {
|
||||||
textures = { 'everness_pyrite_glass.png', '', 'everness_xpanes_edge_pyrite.png' },
|
textures = { 'everness_pyrite_glass.png', '', 'everness_xpanes_edge_pyrite.png' },
|
||||||
inventory_image = 'everness_pyrite_glass.png',
|
inventory_image = 'everness_pyrite_glass.png',
|
||||||
wield_image = 'everness_pyrite_glass.png',
|
wield_image = 'everness_pyrite_glass.png',
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = Everness.node_sound_glass_defaults(),
|
||||||
groups = { snappy = 2, cracky = 3, oddly_breakable_by_hand = 3 },
|
groups = { snappy = 2, cracky = 3, oddly_breakable_by_hand = 3 },
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'everness:pyrite_glass', 'everness:pyrite_glass', 'everness:pyrite_glass' },
|
{ 'everness:pyrite_glass', 'everness:pyrite_glass', 'everness:pyrite_glass' },
|
||||||
|
|
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.
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.
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.
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.
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.
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.
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
Ŝarĝante…
Reference in New Issue