mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-02 21:40:25 +01:00
More luacheck tidying
This commit is contained in:
parent
f537af33bc
commit
058f13f6a4
@ -1,7 +1,6 @@
|
||||
read_globals = {
|
||||
"minetest",
|
||||
"ItemStack",
|
||||
"VoxelArea",
|
||||
"AreaStore",
|
||||
table = {fields = {"copy", "indexof"}},
|
||||
"vector",
|
||||
@ -11,6 +10,7 @@ read_globals = {
|
||||
}
|
||||
|
||||
globals = {
|
||||
"VoxelArea",
|
||||
"awards",
|
||||
"big_webs",
|
||||
"bones_loot",
|
||||
@ -63,4 +63,4 @@ globals = {
|
||||
|
||||
max_line_length = false
|
||||
unused_args = false
|
||||
unused = false
|
||||
unused = true
|
@ -142,7 +142,6 @@ minetest.register_node("bubblesponge:stem", {
|
||||
|
||||
local tries = 0
|
||||
while tries < 3 do
|
||||
local this_node = minetest.get_node(pos).name
|
||||
if minetest.get_node(pos).name == water_node then
|
||||
minetest.set_node(pos, {name = "bubblesponge:frond"})
|
||||
return
|
||||
|
@ -278,13 +278,13 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
end
|
||||
end)
|
||||
|
||||
local function tour(player, loc_list)
|
||||
local pop = table.remove(loc_list)
|
||||
if pop then
|
||||
player:set_pos(pop)
|
||||
minetest.after(10, tour, player, loc_list)
|
||||
end
|
||||
end
|
||||
--local function tour(player, loc_list)
|
||||
-- local pop = table.remove(loc_list)
|
||||
-- if pop then
|
||||
-- player:set_pos(pop)
|
||||
-- minetest.after(10, tour, player, loc_list)
|
||||
-- end
|
||||
--end
|
||||
|
||||
minetest.register_chatcommand("cairn_locations", {
|
||||
params = "<range>", -- Short parameter description
|
||||
|
@ -74,7 +74,6 @@ local get_ambience = function(player, name)
|
||||
-- loop through sets in order and choose first that meets its conditions
|
||||
for _, set in ipairs(registered_sets) do
|
||||
if random() < set.frequency then
|
||||
local check_passed
|
||||
local sound_check = set.sound_check
|
||||
local nodes = set.nodes
|
||||
if sound_check or nodes then
|
||||
|
@ -105,7 +105,6 @@ local decorate_level_1 = function(minp, maxp, seed, vm, node_arrays, area, data)
|
||||
vm:get_param2_data(data_param2)
|
||||
local nvals_cracks = mapgen_helper.perlin2d("df_cavern:cracks", minp, maxp, df_caverns.np_cracks)
|
||||
local nvals_cave = node_arrays.nvals_cave
|
||||
local cave_area = node_arrays.cave_area
|
||||
|
||||
-- Partly fill flooded caverns and warrens
|
||||
if minp.y <= subsea_level then
|
||||
|
@ -148,7 +148,6 @@ local decorate_level_2 = function(minp, maxp, seed, vm, node_arrays, area, data)
|
||||
vm:get_param2_data(data_param2)
|
||||
local nvals_cracks = mapgen_helper.perlin2d("df_cavern:cracks", minp, maxp, df_caverns.np_cracks)
|
||||
local nvals_cave = node_arrays.nvals_cave
|
||||
local cave_area = node_arrays.cave_area
|
||||
local cavern_def = node_arrays.cavern_def
|
||||
|
||||
local vein_noise
|
||||
|
@ -8,7 +8,6 @@ local c_ice = df_caverns.node_id.ice
|
||||
local c_hoar_moss = df_caverns.node_id.hoar_moss
|
||||
local c_gravel = df_caverns.node_id.gravel
|
||||
local c_oil = df_caverns.node_id.oil
|
||||
local c_cobble_fungus_fine = df_caverns.node_id.cobble_fungus_fine
|
||||
local c_cobble_fungus = df_caverns.node_id.cobble_fungus
|
||||
local c_cobble = df_caverns.node_id.cobble
|
||||
local c_wet_flowstone = df_caverns.node_id.wet_flowstone
|
||||
@ -219,7 +218,6 @@ local decorate_level_3 = function(minp, maxp, seed, vm, node_arrays, area, data)
|
||||
vm:get_param2_data(data_param2)
|
||||
local nvals_cracks = mapgen_helper.perlin2d("df_cavern:cracks", minp, maxp, df_caverns.np_cracks)
|
||||
local nvals_cave = node_arrays.nvals_cave
|
||||
local cave_area = node_arrays.cave_area
|
||||
local cavern_def = node_arrays.cavern_def
|
||||
|
||||
-- Partly fill flooded caverns and warrens
|
||||
|
@ -5,7 +5,6 @@ end
|
||||
local c_oil = df_caverns.node_id.oil
|
||||
local c_gas = df_caverns.node_id.gas
|
||||
local c_gas_wisp = df_caverns.node_id.gas_wisp
|
||||
local c_lava = df_caverns.node_id.lava
|
||||
local c_obsidian = df_caverns.node_id.obsidian
|
||||
|
||||
local log_location
|
||||
|
@ -154,7 +154,6 @@ end
|
||||
|
||||
local c_jungle_dirt = df_caverns.node_id.jungle_dirt
|
||||
local c_plant_matter = df_caverns.node_id.plant_matter
|
||||
local c_packed_roots = df_caverns.node_id.packed_roots
|
||||
local c_glowstone = df_caverns.node_id.glowstone
|
||||
local c_ivy = df_caverns.node_id.ivy
|
||||
local c_root_2 = df_caverns.node_id.root_2
|
||||
@ -275,7 +274,6 @@ local decorate_primordial = function(minp, maxp, seed, vm, node_arrays, area, da
|
||||
local data_param2 = df_caverns.data_param2
|
||||
vm:get_param2_data(data_param2)
|
||||
local nvals_cracks = mapgen_helper.perlin2d("df_cavern:cracks", minp, maxp, df_caverns.np_cracks)
|
||||
local cave_area = node_arrays.cave_area
|
||||
local nvals_cave = node_arrays.nvals_cave
|
||||
|
||||
local humiditymap = minetest.get_mapgen_object("humiditymap")
|
||||
|
@ -5,8 +5,6 @@ local c_cobble = df_caverns.node_id.cobble
|
||||
local c_cobble_fungus = df_caverns.node_id.cobble_fungus
|
||||
local c_cobble_fungus_fine = df_caverns.node_id.cobble_fungus_fine
|
||||
local c_dead_fungus = df_caverns.node_id.dead_fungus
|
||||
local c_dirt = df_caverns.node_id.dirt
|
||||
local c_dirt_moss = df_caverns.node_id.dirt_moss
|
||||
local c_dry_flowstone = df_caverns.node_id.dry_flowstone
|
||||
local c_fireflies = df_caverns.node_id.fireflies
|
||||
local c_glowstone = df_caverns.node_id.glowstone
|
||||
|
@ -197,9 +197,6 @@ local decorate_sunless_sea = function(minp, maxp, seed, vm, node_arrays, area, d
|
||||
vm:get_param2_data(data_param2)
|
||||
local nvals_cracks = mapgen_helper.perlin2d("df_cavern:cracks", minp, maxp, df_caverns.np_cracks)
|
||||
|
||||
local minp_below = minp.y <= sea_level
|
||||
local maxp_above = maxp.y > sea_level
|
||||
|
||||
local nvals_cave = mapgen_helper.perlin2d("df_caverns:sunless_sea", minp, maxp, perlin_cave_rivers) --cave noise for structure
|
||||
local nvals_wave = mapgen_helper.perlin2d("df_caverns:sunless_sea_wave", minp, maxp, perlin_wave_rivers) --cave noise for structure
|
||||
|
||||
|
@ -533,9 +533,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
local index2d = mapgen_helper.index2d(emin, emax, minp.x + 3, minp.z + 3)
|
||||
local abs_cave = math.abs(nvals_cave[index2d]) -- range is from 0 to approximately 2, with 0 being connected and 2s being islands
|
||||
local wave = nvals_wave[index2d] * wave_mult
|
||||
|
||||
local floor_height = math.floor(abs_cave * floor_mult + median + floor_displace + wave)
|
||||
local underside_height = math.floor(y_min + math.abs(wave) / 5)
|
||||
|
||||
if floor_height < maxp.y and floor_height > minp.y then
|
||||
for plat_vi in area:iter(minp.x, floor_height-6, minp.z, minp.x+6, floor_height, minp.z+6) do
|
||||
|
@ -37,18 +37,18 @@ dofile(modpath.."/nodes.lua")
|
||||
dofile(modpath.."/misc.lua")
|
||||
dofile(modpath.."/mapgen.lua")
|
||||
|
||||
local list_mods_required = function()
|
||||
local mods_required = ""
|
||||
local mods_sorted = {}
|
||||
for mod, _ in pairs(df_dependencies.mods_required) do
|
||||
table.insert(mods_sorted, mod)
|
||||
end
|
||||
table.sort(mods_sorted)
|
||||
for _, mod in ipairs(mods_sorted) do
|
||||
mods_required = mods_required .. ", " .. mod
|
||||
end
|
||||
minetest.debug(mods_required)
|
||||
end
|
||||
--local list_mods_required = function()
|
||||
-- local mods_required = ""
|
||||
-- local mods_sorted = {}
|
||||
-- for mod, _ in pairs(df_dependencies.mods_required) do
|
||||
-- table.insert(mods_sorted, mod)
|
||||
-- end
|
||||
-- table.sort(mods_sorted)
|
||||
-- for _, mod in ipairs(mods_sorted) do
|
||||
-- mods_required = mods_required .. ", " .. mod
|
||||
-- end
|
||||
-- minetest.debug(mods_required)
|
||||
--end
|
||||
--list_mods_required()
|
||||
|
||||
-- This mod is meant to only exist at initialization time. Other mods should make copies of anything it points to for their own use.
|
||||
|
@ -1,5 +1,3 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local function deep_copy(table_in)
|
||||
local table_out = {}
|
||||
for index, value in pairs(table_in) do
|
||||
|
@ -1,7 +1,6 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local select_required = df_dependencies.select_required
|
||||
local select_optional = df_dependencies.select_optional
|
||||
|
||||
df_dependencies.mods_required.farming = true
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local required_nodes = {}
|
||||
local function select_required(def)
|
||||
local newdef = {}
|
||||
|
@ -1,7 +1,4 @@
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local select_required = df_dependencies.select_required
|
||||
local select_optional = df_dependencies.select_optional
|
||||
|
||||
df_dependencies.mods_required.mcl_sounds = true
|
||||
|
||||
|
@ -168,7 +168,7 @@ minetest.register_node("df_farming:cave_straw", {
|
||||
description = S("Cave Straw"),
|
||||
tiles = {"dfcaverns_cave_straw.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3, flammable=4, straw=1, handy=1,hoey=1, compostability=85, flammable=2, fire_encouragement=60, fire_flammability=20, building_block=1, fall_damage_add_percent=-80, enderman_takable=1},
|
||||
groups = {snappy=3, flammable=4, straw=1, handy=1,hoey=1, compostability=85, fire_encouragement=60, fire_flammability=20, building_block=1, fall_damage_add_percent=-80, enderman_takable=1},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
@ -76,7 +76,7 @@ for index1 = 1, table.getn(recipes)-1 do
|
||||
assert(not identical, "recipes " .. recipes[index1].name .. " and " .. recipes[index2].name .. " have identical ingredients!")
|
||||
end
|
||||
end
|
||||
local ingredient_count = {}
|
||||
--local ingredient_count = {}
|
||||
--for _, recipe_entry in pairs(recipes) do
|
||||
-- for _, item in pairs(recipe_entry.recipe) do
|
||||
-- ingredient_count[item] = (ingredient_count[item] or 0) + 1
|
||||
|
@ -167,7 +167,7 @@ local place_seed = function(itemstack, placer, pointed_thing, plantname)
|
||||
end
|
||||
end
|
||||
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
if take_item and not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
@ -78,7 +78,7 @@ local plump_helmet_on_place = function(itemstack, placer, pointed_thing, plantn
|
||||
end
|
||||
end
|
||||
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
if take_item and not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
@ -78,14 +78,6 @@ Professor Amelia Rose]]),
|
||||
sort = base + 4,
|
||||
})
|
||||
|
||||
local ss_text = ""
|
||||
if minetest.get_modpath("cottages") then
|
||||
ss_text = S("When milled, sweet pods produce a granular pink-tinted sugary substance.")
|
||||
else
|
||||
ss_text = S("When dried in an oven, sweet pods produce a granular pink-tinted sugary substance.")
|
||||
end
|
||||
ss_text = ss_text .. " " .. S("Crushing them in a bucket squeezes out a flavorful syrup.")
|
||||
|
||||
collectible_lore.register_lorebook({
|
||||
id = "rose sweet pod",
|
||||
title = S("Sweet Pod"),
|
||||
|
@ -1,7 +1,5 @@
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local torch_node = {name=df_dependencies.node_name_torch, param2=1}
|
||||
collectible_lore.get_light_node = function()
|
||||
local selection = math.random()
|
||||
|
@ -70,7 +70,7 @@ df_mapitems.icicle_ids = subterrane.register_stalagmite_nodes("df_mapitems:icicl
|
||||
tiles = {
|
||||
df_dependencies.texture_ice,
|
||||
},
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3, pickaxey=1, building_block=1, handy=1, slippery=3, building_block=1, ice=1},
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3, pickaxey=1, building_block=1, handy=1, ice=1},
|
||||
sounds = df_dependencies.sound_glass(),
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
@ -304,7 +304,7 @@ minetest.register_node("df_primordial_items:fern_sapling", {
|
||||
tiles = {"dfcaverns_jungle_fern_03.png"},
|
||||
inventory_image = "dfcaverns_jungle_fern_03.png",
|
||||
wield_image = "dfcaverns_jungle_fern_03.png",
|
||||
groups = {snappy = 3, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13, attached_node=1,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30,dig_immediate=3},
|
||||
groups = {snappy = 3, attached_node = 1, flammable = 1, sapling = 1, light_sensitive_fungus = 13, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30,dig_immediate=3},
|
||||
_dfcaverns_dead_node = df_dependencies.node_name_dry_shrub,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -10,7 +10,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_trunk", {
|
||||
tiles = {"dfcaverns_jungle_mushroom_stem.png", "dfcaverns_jungle_mushroom_stem.png", "dfcaverns_jungle_mushroom_stem_02.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, handy=1,axey=1, tree=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
@ -24,7 +24,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_cap_1", {
|
||||
tiles = {"dfcaverns_jungle_mushroom_top_02.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_mushroom_cap = 1, handy=1,axey=1, tree=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5, compostability=30},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_mushroom_cap = 1, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5, compostability=30},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
drop = {
|
||||
@ -50,7 +50,7 @@ minetest.register_node("df_primordial_items:jungle_mushroom_cap_2", {
|
||||
tiles = {"dfcaverns_jungle_mushroom_top_01.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_mushroom_cap = 1, handy=1,axey=1, tree=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5, compostability=30},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_mushroom_cap = 1, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5, compostability=30},
|
||||
sounds = df_trees.node_sound_tree_soft_fungus_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
drop = {
|
||||
|
@ -221,7 +221,7 @@ minetest.register_node("df_primordial_items:jungle_ivy", {
|
||||
tiles = {"dfcaverns_jungle_ivy_01.png"},
|
||||
inventory_image = "dfcaverns_jungle_ivy_01.png",
|
||||
wield_image = "dfcaverns_jungle_ivy_01.png",
|
||||
groups = {snappy = 3, flammable = 1, vines = 1, handy=1,axey=1,shearsy=1,swordy=1, flammable=2,deco_block=1,destroy_by_lava_flow=1,dig_by_piston=1, fire_encouragement=15, fire_flammability=100, compostability=50},
|
||||
groups = {snappy = 3, flammable = 1, vines = 1, handy=1,axey=1,shearsy=1,swordy=1, deco_block=1,destroy_by_lava_flow=1,dig_by_piston=1, fire_encouragement=15, fire_flammability=100, compostability=50},
|
||||
paramtype = "light",
|
||||
drawtype = "plantlike",
|
||||
place_param2 = 3,
|
||||
@ -349,7 +349,7 @@ minetest.register_node("df_primordial_items:packed_roots", {
|
||||
tiles = {"dfcaverns_jungle_plant_packed_roots_01.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, handy=1,axey=1, tree=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, handy=1,axey=1, tree=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 3,
|
||||
|
@ -79,7 +79,7 @@ minetest.register_node("df_primordial_items:jungle_tree", {
|
||||
tiles = {"dfcaverns_jungle_wood_02.png", "dfcaverns_jungle_wood_02.png", "dfcaverns_jungle_wood_01.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
@ -93,7 +93,7 @@ minetest.register_node("df_primordial_items:jungle_tree_mossy", {
|
||||
tiles = {"dfcaverns_jungle_wood_02.png", "dfcaverns_jungle_wood_02.png", "dfcaverns_jungle_wood_03.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
@ -108,7 +108,7 @@ minetest.register_node("df_primordial_items:jungle_tree_glowing", {
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
light_source = 4,
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, flammable=2, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, primordial_jungle_tree = 1, handy=1,axey=1, building_block=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||
sounds = df_dependencies.sound_wood(),
|
||||
on_place = minetest.rotate_node,
|
||||
_mcl_blast_resistance = 2,
|
||||
|
@ -155,7 +155,7 @@ minetest.register_node("df_trees:black_cap_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
|
@ -125,7 +125,7 @@ minetest.register_node("df_trees:fungiwood_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
@ -220,7 +220,7 @@ minetest.register_node("df_trees:goblin_cap_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
@ -115,7 +115,7 @@ minetest.register_node("df_trees:nether_cap_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.1,
|
||||
_mcl_hardness = 0.1,
|
||||
|
@ -170,7 +170,7 @@ minetest.register_node("df_trees:spore_tree_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
@ -397,7 +397,6 @@ df_trees.spawn_torchspine_vm = function(vi, area, data, data_param2, height, lit
|
||||
|
||||
local pos = area:position(vi)
|
||||
pos.y = pos.y+height-1
|
||||
local node = minetest.get_node(pos)
|
||||
minetest.get_node_timer(pos):start(math.random()*3000)
|
||||
end
|
||||
|
||||
|
@ -130,7 +130,7 @@ minetest.register_node("df_trees:tower_cap_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 0.2,
|
||||
_mcl_hardness = 0.2,
|
||||
|
@ -338,7 +338,7 @@ minetest.register_node("df_trees:tunnel_tube_sapling", {
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_immediate=3,dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
attached_node = 1, sapling = 1, light_sensitive_fungus = 11, dig_by_piston=1,destroy_by_lava_flow=1,deco_block=1, compostability=30},
|
||||
sounds = df_dependencies.sound_leaves(),
|
||||
_mcl_blast_resistance = 10,
|
||||
_mcl_hardness = 0.2,
|
||||
|
@ -12,7 +12,7 @@ local statue_box = {
|
||||
},
|
||||
}
|
||||
|
||||
local fourtyfivedegrees = math.pi/4
|
||||
--local fourtyfivedegrees = math.pi/4
|
||||
local sixtydegrees = math.pi/3
|
||||
|
||||
local default_sounds
|
||||
|
@ -59,8 +59,6 @@ minetest.register_abm({
|
||||
minetest.swap_node(next_pos, node)
|
||||
minetest.swap_node(pos, next_node)
|
||||
end
|
||||
pos = next_pos
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
pit_caves = {}
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local min_depth = tonumber(minetest.settings:get("pit_caves_min_bottom") or -2500)
|
||||
|
Loading…
Reference in New Issue
Block a user