From d2b97b1781829ae62393f5d1d76e3112d537bc8b Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Wed, 29 Mar 2023 15:35:48 -0400 Subject: [PATCH] Add MCL support - initial commit --- .luacheckrc | 4 + .luarc.json | 6 +- api.lua | 222 +++++++++- functions.lua | 68 ++- init.lua | 9 +- mapgen_after.lua | 2 +- mapgen_bamboo_forest.lua | 196 +++++---- mapgen_baobab_savanna.lua | 69 ++- mod.conf | 2 +- mod_support_mcl.lua | 841 ++++++++++++++++++++++++++++++++++++ mod_support_mcl_aliases.lua | 184 ++++++++ mod_support_mcl_fences.lua | 47 -- nodes.lua | 581 +++++++++++++------------ tools.lua | 23 +- 14 files changed, 1770 insertions(+), 484 deletions(-) create mode 100644 mod_support_mcl.lua create mode 100644 mod_support_mcl_aliases.lua delete mode 100644 mod_support_mcl_fences.lua diff --git a/.luacheckrc b/.luacheckrc index debdd7b..422c687 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -83,4 +83,8 @@ read_globals = { "x_farming", "x_clay", "mcl_fences", + "mcl_walls", + "mcl_stairs", + "mcl_core", + "mcl_util", } diff --git a/.luarc.json b/.luarc.json index b861f80..c92ebbb 100644 --- a/.luarc.json +++ b/.luarc.json @@ -112,7 +112,11 @@ "x_obsidianmese", "x_farming", "x_clay", - "mcl_fences" + "mcl_fences", + "mcl_walls", + "mcl_stairs", + "mcl_core", + "mcl_util" ] } } diff --git a/api.lua b/api.lua index 2132987..76f45c5 100644 --- a/api.lua +++ b/api.lua @@ -948,14 +948,6 @@ function Everness.use_shell_of_underwater_breathing(self, itemstack, user, point return itemstack 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 @@ -972,5 +964,219 @@ function Everness.sapling_on_place(self, itemstack, placer, pointed_thing, props return itemstack end + elseif minetest.get_modpath('mcl_util') and minetest.global_exists('mcl_util') then + local on_place_func = mcl_util.generate_on_place_plant_function(function(pos, node) + local node_below = minetest.get_node_or_nil({ x = pos.x, y = pos.y - 1, z = pos.z }) + + if not node_below then + return false + end + + local nn = node_below.name + + return minetest.get_item_group(nn, 'grass_block') == 1 + or nn == 'mcl_core:podzol' + or nn == 'mcl_core:podzol_snow' + or nn == 'mcl_core:dirt' + or nn == 'mcl_core:mycelium' + or nn == 'mcl_core:coarse_dirt' + end) + + return on_place_func(itemstack, placer, pointed_thing) end end + +-- +-- Leafdecay - taken from MTG +-- + +-- Prevent decay of placed leaves + +Everness.after_place_leaves = function(self, pos, placer, itemstack, pointed_thing) + if placer and placer:is_player() then + local node = minetest.get_node(pos) + node.param2 = 1 + minetest.set_node(pos, node) + end +end + +-- Leafdecay +local function leafdecay_after_destruct(pos, oldnode, def) + for _, v in pairs(minetest.find_nodes_in_area(vector.subtract(pos, def.radius), + vector.add(pos, def.radius), def.leaves)) + do + local node = minetest.get_node(v) + local timer = minetest.get_node_timer(v) + if node.param2 ~= 1 and not timer:is_started() then + timer:start(math.random(20, 120) / 10) + end + end +end + +local movement_gravity = tonumber(minetest.settings:get('movement_gravity')) or 9.81 + +local function leafdecay_on_timer(pos, def) + if minetest.find_node_near(pos, def.radius, def.trunks) then + return false + end + + local node = minetest.get_node(pos) + local drops = minetest.get_node_drops(node.name) + + for _, item in ipairs(drops) do + local is_leaf + for _, v in pairs(def.leaves) do + if v == item then + is_leaf = true + end + end + if minetest.get_item_group(item, 'leafdecay_drop') ~= 0 + or not is_leaf + then + minetest.add_item({ + x = pos.x - 0.5 + math.random(), + y = pos.y - 0.5 + math.random(), + z = pos.z - 0.5 + math.random(), + }, item) + end + end + + minetest.remove_node(pos) + minetest.check_for_falling(pos) + + -- spawn a few particles for the removed node + minetest.add_particlespawner({ + amount = 8, + time = 0.001, + minpos = vector.subtract(pos, { x = 0.5, y = 0.5, z = 0.5 }), + maxpos = vector.add(pos, { x = 0.5, y = 0.5, z = 0.5 }), + minvel = vector.new(-0.5, -1, -0.5), + maxvel = vector.new(0.5, 0, 0.5), + minacc = vector.new(0, -movement_gravity, 0), + maxacc = vector.new(0, -movement_gravity, 0), + minsize = 0, + maxsize = 0, + node = node, + }) +end + +function Everness.register_leafdecay(self, def) + assert(def.leaves) + assert(def.trunks) + assert(def.radius) + + for _, v in pairs(def.trunks) do + minetest.override_item(v, { + after_destruct = function(pos, oldnode) + leafdecay_after_destruct(pos, oldnode, def) + end, + }) + end + + for _, v in pairs(def.leaves) do + minetest.override_item(v, { + on_timer = function(pos) + leafdecay_on_timer(pos, def) + end, + }) + end +end + +function Everness.register_node(self, name, def, props) + local _def = table.copy(def) + local _name = name + + if _def.groups then + --- + -- Damage and digging time defining groups + --- + + if _def.groups.crumbly then + -- dirt, sand + _def.groups.handy = 1 + _def.groups.shovely = 1 + _def.groups.building_block = 1 + _def.groups.enderman_takable = 1 + + _def._mcl_blast_resistance = 0.5 + _def._mcl_hardness = 2 + end + + if _def.groups.cracky then + -- tough but crackable stuff like stone + _def.groups.pickaxey = 1 + _def.groups.building_block = 1 + + _def._mcl_blast_resistance = 6 + _def._mcl_hardness = 1.5 + end + + if _def.groups.snappy then + -- something that can be cut using things like scissors, shears + _def.groups.handy = 1 + _def.groups.hoey = 1 + _def.groups.shearsy = 1 + _def.groups.swordy = 1 + _def.groups.dig_by_piston = 1 + _def.groups.flammable = 2 + _def.groups.fire_encouragement = 30 + _def.groups.fire_flammability = 60 + _def.groups.deco_block = 1 + _def.groups.compostability = 30 + + _def._mcl_blast_resistance = 0.2 + _def._mcl_hardness = 0.2 + end + + if _def.groups.choppy then + -- something that can be cut using force; e.g. trees, wooden planks + _def.groups.handy = 1 + _def.groups.axey = 1 + _def.groups.flammable = 2 + _def.groups.building_block = 1 + _def.groups.material_wood = 1 + _def.groups.fire_encouragement = 5 + _def.groups.fire_flammability = 5 + + _def._mcl_blast_resistance = 2 + _def._mcl_hardness = 2 + end + + if _def.groups.fleshy then + -- living things like animals and the player. This could imply some blood effects when hitting + _def.groups.food = 2 + _def.groups.eatable = 4 + _def.groups.compostability = 65 + _def._mcl_saturation = 2.4 + end + + if _def.groups.oddly_breakable_by_hand then + -- can be added to nodes that shouldn't logically be breakable by the hand but are + _def.groups.handy = 1 + end + + if _def.groups.explody then + -- especially prone to explosions + _def._mcl_blast_resistance = 1200 + _def._mcl_hardness = 50 + end + + -- material groups + if _def.groups.sand then + _def.groups.soil_sugarcane = 1 + _def.groups.material_sand = 1 + end + + if _def.groups.stone then + _def.groups.material_stone = 1 + end + + if _def.groups.soil then + _def.groups.soil_sapling = 2 + _def.groups.soil_sugarcane = 1 + _def.groups.cultivatable = 2 + end + end + + minetest.register_node(_name, _def) +end diff --git a/functions.lua b/functions.lua index eea30ee..555f739 100644 --- a/functions.lua +++ b/functions.lua @@ -181,7 +181,7 @@ minetest.register_abm({ nodenames = { 'group:everness_spreading_dirt_type', 'group:everness_spreading_dirt_type_under', - }, + }, interval = 8, chance = 50, catch_up = false, @@ -226,42 +226,38 @@ minetest.register_abm({ -- Leafdecay -- -if minetest.get_modpath('default') or minetest.global_exists('default') then - if default.register_leafdecay then - default.register_leafdecay({ - trunks = { - 'everness:coral_tree', - 'everness:crystal_bush_stem', - 'everness:cursed_bush_stem', - 'everness:willow_tree', - 'everness:sequoia_tree', - }, - leaves = { - 'everness:coral_leaves', - 'everness:crystal_bush_leaves', - 'everness:willow_leaves', - 'everness:sequoia_leaves', - }, - radius = 3 - }) +Everness:register_leafdecay({ + trunks = { + 'everness:coral_tree', + 'everness:crystal_bush_stem', + 'everness:cursed_bush_stem', + 'everness:willow_tree', + 'everness:sequoia_tree', + }, + leaves = { + 'everness:coral_leaves', + 'everness:crystal_bush_leaves', + 'everness:willow_leaves', + 'everness:sequoia_leaves', + }, + radius = 3 +}) - -- Baobab Tree - default.register_leafdecay({ - trunks = { - 'everness:baobab_tree', - 'everness:crystal_tree', - 'everness:dry_tree', - }, - leaves = { - 'everness:baobab_leaves', - 'everness:baobab_fruit_renewable', - 'everness:crystal_leaves', - 'everness:dry_branches', - }, - radius = 4, - }) - end -end +-- Baobab Tree +Everness:register_leafdecay({ + trunks = { + 'everness:baobab_tree', + 'everness:crystal_tree', + 'everness:dry_tree', + }, + leaves = { + 'everness:baobab_leaves', + 'everness:baobab_fruit_renewable', + 'everness:crystal_leaves', + 'everness:dry_branches', + }, + radius = 4, +}) -- -- Moss growth on cobble near water diff --git a/init.lua b/init.lua index 875f416..4beedf3 100644 --- a/init.lua +++ b/init.lua @@ -21,6 +21,11 @@ minetest = minetest.global_exists('minetest') and minetest --[[@as Minetest]] local path = minetest.get_modpath('everness') local mod_start_time = minetest.get_us_time() +-- MineClone2 support +if minetest.get_modpath('mcl_core') and minetest.global_exists('mcl_core') then + dofile(path .. '/mod_support_mcl_aliases.lua') +end + dofile(path .. '/api.lua') dofile(path .. '/nodes.lua') dofile(path .. '/nodes_farming.lua') @@ -215,8 +220,8 @@ end -- MineClone2 -if minetest.get_modpath('mcl_fences') and minetest.global_exists('mcl_fences') then - dofile(path .. '/mod_support_mcl_fences.lua') +if minetest.get_modpath('mcl_core') and minetest.global_exists('mcl_core') then + dofile(path .. '/mod_support_mcl.lua') end local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000 diff --git a/mapgen_after.lua b/mapgen_after.lua index 97767ab..1e96008 100644 --- a/mapgen_after.lua +++ b/mapgen_after.lua @@ -190,7 +190,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed) ) minetest.log('action', '[Everness] Forsaken Desert Temple was placed at ' .. schem_pos:to_string()) - elseif (biome_name == 'coniferous_forest' or biome_name == 'taiga') + elseif (biome_name == 'coniferous_forest' or biome_name == 'taiga' or biome_name == 'MegaSpruceTaiga') and rand:next(0, 100) < 100 then local schem = minetest.get_modpath('everness') .. '/schematics/everness_giant_sequoia_tree.mts' diff --git a/mapgen_bamboo_forest.lua b/mapgen_bamboo_forest.lua index 68ae2b0..faa3bf0 100644 --- a/mapgen_bamboo_forest.lua +++ b/mapgen_bamboo_forest.lua @@ -76,50 +76,78 @@ minetest.register_decoration({ -- Jungle tree and log -minetest.register_decoration({ - name = 'everness:bamboo_forest_jungle_tree', - deco_type = 'schematic', - place_on = { 'everness:dirt_with_grass_1' }, - sidelen = 16, - noise_params = { - offset = 0.0015, - scale = 0.0021, - spread = { x = 250, y = 250, z = 250 }, - seed = 2, - octaves = 3, - persist = 0.66 - }, - biomes = { 'everness_bamboo_forest' }, - y_max = y_max, - y_min = y_min, - schematic = minetest.get_modpath('default') .. '/schematics/jungle_tree.mts', - flags = 'place_center_x, place_center_z', - rotation = 'random', -}) +local jungle_tree_schem +local jungle_log_schem -minetest.register_decoration({ - name = 'everness:bamboo_forest_jungle_log', - deco_type = 'schematic', - place_on = { 'everness:dirt_with_grass_1' }, - place_offset_y = 1, - sidelen = 16, - noise_params = { - offset = 0.0015, - scale = 0.0021, - spread = { x = 250, y = 250, z = 250 }, - seed = 2, - octaves = 3, - persist = 0.66 - }, - biomes = { 'everness_bamboo_forest' }, - y_max = y_max, - y_min = y_min, - schematic = minetest.get_modpath('default') .. '/schematics/jungle_log.mts', - flags = 'place_center_x', - rotation = 'random', - spawn_by = 'everness:dirt_with_grass_1', - num_spawn_by = 8, -}) +if minetest.get_modpath('default') then + jungle_tree_schem = minetest.get_modpath('default') .. '/schematics/jungle_tree.mts' + jungle_log_schem = minetest.get_modpath('default') .. '/schematics/jungle_log.mts' +elseif minetest.get_modpath('mcl_core') then + jungle_tree_schem = minetest.get_modpath('mcl_core') .. '/schematics/mcl_core_jungle_tree.mts' + jungle_log_schem = { + size = { x = 3, y = 3, z = 1 }, + data = { + { name = 'air', prob = 0 }, + { name = 'air', prob = 0 }, + { name = 'air', prob = 0 }, + { name = 'mcl_core:jungletree', param2 = 12 }, + { name = 'mcl_core:jungletree', param2 = 12 }, + { name = 'mcl_core:jungletree', param2 = 12, prob = 127 }, + { name = 'air', prob = 0 }, + { name = 'mcl_mushrooms:mushroom_brown', prob = 50 }, + { name = 'air', prob = 0 }, + }, + } +end + +if jungle_tree_schem then + minetest.register_decoration({ + name = 'everness:bamboo_forest_jungle_tree', + deco_type = 'schematic', + place_on = { 'everness:dirt_with_grass_1' }, + sidelen = 16, + noise_params = { + offset = 0.0015, + scale = 0.0021, + spread = { x = 250, y = 250, z = 250 }, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = { 'everness_bamboo_forest' }, + y_max = y_max, + y_min = y_min, + schematic = jungle_tree_schem, + flags = 'place_center_x, place_center_z', + rotation = 'random', + }) +end + +if jungle_log_schem then + minetest.register_decoration({ + name = 'everness:bamboo_forest_jungle_log', + deco_type = 'schematic', + place_on = { 'everness:dirt_with_grass_1' }, + place_offset_y = 1, + sidelen = 16, + noise_params = { + offset = 0.0015, + scale = 0.0021, + spread = { x = 250, y = 250, z = 250 }, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = { 'everness_bamboo_forest' }, + y_max = y_max, + y_min = y_min, + schematic = jungle_log_schem, + flags = 'place_center_x', + rotation = 'random', + spawn_by = 'everness:dirt_with_grass_1', + num_spawn_by = 8, + }) +end local function register_grass_decoration(offset, scale, length) minetest.register_decoration({ @@ -165,48 +193,50 @@ end -- Bush -minetest.register_decoration({ - name = 'everness:bamboo_forest_bush', - deco_type = 'schematic', - place_on = { 'everness:dirt_with_grass_1' }, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = { x = 100, y = 100, z = 100 }, - seed = 137, - octaves = 3, - persist = 0.7, - }, - biomes = { 'everness_bamboo_forest' }, - y_max = y_max, - y_min = y_min, - schematic = minetest.get_modpath('default') .. '/schematics/bush.mts', - flags = 'place_center_x, place_center_z', -}) +if minetest.get_modpath('default') then + minetest.register_decoration({ + name = 'everness:bamboo_forest_bush', + deco_type = 'schematic', + place_on = { 'everness:dirt_with_grass_1' }, + sidelen = 16, + noise_params = { + offset = -0.004, + scale = 0.01, + spread = { x = 100, y = 100, z = 100 }, + seed = 137, + octaves = 3, + persist = 0.7, + }, + biomes = { 'everness_bamboo_forest' }, + y_max = y_max, + y_min = y_min, + schematic = minetest.get_modpath('default') .. '/schematics/bush.mts', + flags = 'place_center_x, place_center_z', + }) --- Blueberry bush + -- Blueberry bush -minetest.register_decoration({ - name = 'everness:bamboo_forest_blueberry_bush', - deco_type = 'schematic', - place_on = { 'everness:dirt_with_grass_1' }, - sidelen = 16, - noise_params = { - offset = -0.004, - scale = 0.01, - spread = { x = 100, y = 100, z = 100 }, - seed = 697, - octaves = 3, - persist = 0.7, - }, - biomes = { 'everness_bamboo_forest' }, - y_max = y_max, - y_min = y_min, - place_offset_y = 1, - schematic = minetest.get_modpath('default') .. '/schematics/blueberry_bush.mts', - flags = 'place_center_x, place_center_z', -}) + minetest.register_decoration({ + name = 'everness:bamboo_forest_blueberry_bush', + deco_type = 'schematic', + place_on = { 'everness:dirt_with_grass_1' }, + sidelen = 16, + noise_params = { + offset = -0.004, + scale = 0.01, + spread = { x = 100, y = 100, z = 100 }, + seed = 697, + octaves = 3, + persist = 0.7, + }, + biomes = { 'everness_bamboo_forest' }, + y_max = y_max, + y_min = y_min, + place_offset_y = 1, + schematic = minetest.get_modpath('default') .. '/schematics/blueberry_bush.mts', + flags = 'place_center_x, place_center_z', + }) +end -- Grasses diff --git a/mapgen_baobab_savanna.lua b/mapgen_baobab_savanna.lua index 33d2fba..229b38a 100644 --- a/mapgen_baobab_savanna.lua +++ b/mapgen_baobab_savanna.lua @@ -118,29 +118,52 @@ minetest.register_decoration({ rotation = 'random', }) -minetest.register_decoration({ - name = 'everness:baobab_savanna_acacia_log', - deco_type = 'schematic', - place_on = { 'default:dry_dirt_with_dry_grass' }, - place_offset_y = 1, - sidelen = 16, - noise_params = { - offset = 0, - scale = 0.001, - spread = { x = 250, y = 250, z = 250 }, - seed = 2, - octaves = 3, - persist = 0.66 - }, - biomes = { 'everness_baobab_savanna' }, - y_max = y_max, - y_min = y_min, - schematic = minetest.get_modpath('default') .. '/schematics/acacia_log.mts', - flags = 'place_center_x', - rotation = 'random', - spawn_by = 'default:dry_dirt_with_dry_grass', - num_spawn_by = 8, -}) +local acacia_log_schem + +if minetest.get_modpath('default') then + acacia_log_schem = minetest.get_modpath('default') .. '/schematics/acacia_log.mts' +elseif minetest.get_modpath('mcl_core') then + acacia_log_schem = { + size = { x = 3, y = 3, z = 1 }, + data = { + { name = 'air', prob = 0 }, + { name = 'air', prob = 0 }, + { name = 'air', prob = 0 }, + { name = 'mcl_core:acaciatree', param2 = 12 }, + { name = 'mcl_core:acaciatree', param2 = 12 }, + { name = 'mcl_core:acaciatree', param2 = 12, prob = 127 }, + { name = 'air', prob = 0 }, + { name = 'mcl_mushrooms:mushroom_brown', prob = 50 }, + { name = 'air', prob = 0 }, + }, + } +end + +if acacia_log_schem then + minetest.register_decoration({ + name = 'everness:baobab_savanna_acacia_log', + deco_type = 'schematic', + place_on = { 'default:dry_dirt_with_dry_grass' }, + place_offset_y = 1, + sidelen = 16, + noise_params = { + offset = 0, + scale = 0.001, + spread = { x = 250, y = 250, z = 250 }, + seed = 2, + octaves = 3, + persist = 0.66 + }, + biomes = { 'everness_baobab_savanna' }, + y_max = y_max, + y_min = y_min, + schematic = acacia_log_schem, + flags = 'place_center_x', + rotation = 'random', + spawn_by = 'default:dry_dirt_with_dry_grass', + num_spawn_by = 8, + }) +end -- -- On Generated diff --git a/mod.conf b/mod.conf index 40b0d1d..608e65b 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = everness description = Never ending discovery in Everness mapgen. depends = -optional_depends = default, 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, mcl_core, mcl_fences, mcl_walls, mcl_stairs, mcl_util, mcl_autogroup supported_games = minetest_game min_minetest_version = 5.4 diff --git a/mod_support_mcl.lua b/mod_support_mcl.lua new file mode 100644 index 0000000..4babaa1 --- /dev/null +++ b/mod_support_mcl.lua @@ -0,0 +1,841 @@ +--[[ + Everness. Never ending discovery in Everness mapgen. + Copyright (C) 2023 SaKeL + + 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()) +--[[]] +minetest.register_on_mods_loaded(function() + local everness_registered_nodes = {} + local everness_registered_nodes_length = 0 + local everness_registered_nodes_sand_length = 0 + + -- minetest.registered_items + -- registered_nodes + -- registered_tools + -- registered_craftitems + + for name, def in pairs(minetest.registered_nodes) do + local name_split = name:split(':') + + if name_split[1] == 'everness' then + everness_registered_nodes[name] = def + + if minetest.get_item_group(name, 'sand') ~= 0 then + local new_groups = table.copy(def.groups) + + everness_registered_nodes_sand_length = everness_registered_nodes_sand_length + 1 + + new_groups.handy = 1 + new_groups.shovely = 1 + new_groups.soil_sugarcane = 1 + new_groups.enderman_takable = 1 + new_groups.building_block = 1 + new_groups.material_sand = 1 + + new_groups.creative_breakable = 1 + new_groups.solid = 1 + new_groups.opaque = 1 + + new_groups.handy_dig = 7 + new_groups.shovely_dig = 2 + + -- minetest.override_item(name, { + -- groups = new_groups, + -- _mcl_blast_resistance = 0.5, + -- _mcl_hardness = 0.5 + -- }) + + if name == 'everness:coral_sand' then + print(dump(minetest.registered_nodes[name])) + end + end + + + everness_registered_nodes_length = everness_registered_nodes_length + 1 + end + end + + -- for name, def in pairs(minetest.registered_tools) do + -- local name_split = name:split(':') + + -- if name_split[1] == 'everness' then + -- if name == 'everness:pick_illuminating' then + -- print(dump(minetest.registered_tools[name])) + -- end + -- end + -- end + + print('sand', everness_registered_nodes_sand_length) + print('total', everness_registered_nodes_length) +end) + +--- +-- Fence / Gates +--- + +-- 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() +) + +--- +-- Walls +--- + +mcl_walls.register_wall( + 'everness:coraldesertcobblewall', + S('Coral Cobblestone Wall'), + 'everness:coral_desert_cobble', + { 'everness_coral_desert_cobble.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:coraldesertmossycobblewall', + S('Coral Mossy Cobblestone Wall'), + 'everness:coral_desert_mossy_cobble', + { 'everness_coral_desert_mossy_cobble.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:cursedbrickwall', + S('Cursed Brick Wall'), + 'everness:cursed_brick', + { 'everness_cursed_brick.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:cursedbrickwithgrowthwall', + S('Cursed Brick with Growth Wall'), + 'everness:cursed_brick_with_growth', + { 'everness_cursed_brick_with_growth.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:forsakentundracobblewall', + S('Forsaken Tundra Cobblestone Wall'), + 'everness:forsaken_tundra_cobble', + { 'everness_forsaken_tundra_cobblestone.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:forsakentundrastonewall', + S('Forsaken Tundra Stone Wall'), + 'everness:forsaken_tundra_stone', + { 'everness_forsaken_tundra_stone.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:forsakentundrabrickwall', + S('Forsaken Tundra Brick Wall'), + 'everness:forsaken_tundra_brick', + { 'everness_forsaken_tundra_brick.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:magmacobblewall', + S('Magma Cobblestone Wall'), + 'everness:magmacobble', + { + { + name = 'everness_magmacobble_animated.png', + animation = { + type = 'vertical_frames', + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + }, + }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:volcanicrockwall', + S('Volcanic Rock Wall'), + 'everness:volcanic_rock', + { 'everness_volcanic_rock.png' }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +mcl_walls.register_wall( + 'everness:volcanicrockwithmagmawall', + S('Volcanic Rock with Magma Wall'), + 'everness:volcanic_rock_with_magma', + { + { + name = 'everness_volcanic_rock_with_magma_animated.png', + animation = { + type = 'vertical_frames', + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + }, + }, + nil, + nil, + Everness.node_sound_stone_defaults() +) + +--- +-- Stairs and Slabs +--- + +mcl_stairs.register_stair_and_slab( + 'coral_desert_stone', + 'everness:coral_desert_stone', + { pickaxey = 3 }, + { 'everness_coral_desert_stone.png' }, + S('Coral Desert Stone Stair'), + S('Coral Desert Stone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Desert Stone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_desert_cobble', + 'everness:coral_desert_cobble', + { pickaxey = 3 }, + { 'everness_coral_desert_cobble.png' }, + S('Coral Desert Cobblestone Stair'), + S('Coral Desert Cobblestone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Desert Cobblestone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_desert_mossy_cobble', + 'everness:coral_desert_mossy_cobble', + { pickaxey = 3 }, + { 'everness_coral_desert_mossy_cobble.png' }, + S('Coral Mossy Cobblestone Stair'), + S('Coral Mossy Cobblestone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Mossy Cobblestone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'cursed_brick', + 'everness:cursed_brick', + { pickaxey = 2 }, + { 'everness_cursed_brick.png' }, + S('Cursed Brick Stair'), + S('Cursed Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Cursed Brick Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'cursed_brick_with_growth', + 'everness:cursed_brick_with_growth', + { pickaxey = 2 }, + { 'everness_cursed_brick_with_growth.png' }, + S('Cursed Brick with Growth Stair'), + S('Cursed Brick with Growth Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Cursed Brick with Growth Slab'), + nil +) + +-- Quartz + +mcl_stairs.register_stair_and_slab( + 'quartz_block', + 'everness:quartz_block', + { pickaxey = 2 }, + { + 'everness_quartz_block_top.png', + 'everness_quartz_block_bottom.png', + 'everness_quartz_block_side.png', + }, + S('Quartz Block Stair'), + S('Quartz Block Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Quartz Block Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'quartz_chiseled', + 'everness:quartz_chiseled', + { pickaxey = 2 }, + { + 'everness_quartz_block_chiseled_top.png', + 'everness_quartz_block_chiseled_top.png', + 'everness_quartz_block_chiseled.png', + }, + S('Quartz Chiseled Stair'), + S('Quartz Chiseled Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Quartz Chiseled Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'quartz_pillar', + 'everness:quartz_pillar', + { pickaxey = 2 }, + { + 'everness_quartz_block_lines_top.png', + 'everness_quartz_block_lines_top.png', + 'everness_quartz_block_lines.png', + }, + S('Quartz Pillar Stair'), + S('Quartz Pillar Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Quartz Pillar Slab'), + nil +) + +-- Dry Wood + +mcl_stairs.register_stair_and_slab( + 'dry_wood', + 'everness:dry_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_dry_wood.png' }, + S('Dry Wood Stair'), + S('Dry Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Dry Wood Slab'), + nil +) + +-- Bamboo Wood + +mcl_stairs.register_stair_and_slab( + 'bamboo_wood', + 'everness:bamboo_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_dry_bamboo_block_side.png' }, + S('Bamboo Wood Stair'), + S('Bamboo Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Bamboo Wood Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'bamboo_mosaic_wood', + 'everness:bamboo_mosaic_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_bamboo_mosaic.png' }, + S('Bamboo Mosaic Wood Stair'), + S('Bamboo Mosaic Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Bamboo Mosaic Wood Slab'), + nil +) + +-- Forsaken stone + +mcl_stairs.register_stair_and_slab( + 'forsaken_desert_brick', + 'everness:forsaken_desert_brick', + { pickaxey = 2, stone = 1 }, + { 'everness_forsaken_desert_brick.png' }, + S('Forsaken Desert Brick Stair'), + S('Forsaken Desert Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Desert Brick Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'forsaken_desert_brick_red', + 'everness:forsaken_desert_brick_red', + { pickaxey = 2, stone = 1 }, + { 'everness_forsaken_desert_brick_red.png' }, + S('Forsaken Desert Brick Red Stair'), + S('Forsaken Desert Brick Red Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Desert Brick Red Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'forsaken_desert_chiseled_stone', + 'everness:forsaken_desert_chiseled_stone', + { pickaxey = 2, stone = 1 }, + { 'everness_forsaken_desert_chiseled_stone_side.png' }, + S('Forsaken Desert Chiseled Stone Stair'), + S('Forsaken Desert Chiseled Stone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Desert Chiseled Stone Slab'), + nil +) + +-- Baobab Wood + +mcl_stairs.register_stair_and_slab( + 'baobab_wood', + 'everness:baobab_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_baobab_wood.png' }, + S('Baobab Wood Stair'), + S('Baobab Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Baobab Wood Slab'), + nil +) + +-- Sequoia Wood + +mcl_stairs.register_stair_and_slab( + 'sequoia_wood', + 'everness:sequoia_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_sequoia_wood.png' }, + S('Sequoia Wood Stair'), + S('Sequoia Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Sequoia Wood Slab'), + nil +) + +-- Forsaken Tundra + +mcl_stairs.register_stair_and_slab( + 'forsaken_tundra_cobble', + 'everness:forsaken_tundra_cobble', + { pickaxey = 3, stone = 2 }, + { 'everness_forsaken_tundra_cobblestone.png' }, + S('Forsaken Tundra Cobblestone Stair'), + S('Forsaken Tundra Cobblestone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Tundra Cobblestone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'forsaken_tundra_stone', + 'everness:forsaken_tundra_stone', + { pickaxey = 3, stone = 1 }, + { 'everness_forsaken_tundra_stone.png' }, + S('Forsaken Tundra Stone Stair'), + S('Forsaken Tundra Stone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Tundra Stone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'forsaken_tundra_brick', + 'everness:forsaken_tundra_brick', + { pickaxey = 2, stone = 1 }, + { 'everness_forsaken_tundra_brick.png' }, + S('Forsaken Tundra Brick Stair'), + S('Forsaken Tundra Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Forsaken Tundra Brick Slab'), + nil +) + +-- Willow Wood + +mcl_stairs.register_stair_and_slab( + 'willow_wood', + 'everness:willow_wood', + { choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 }, + { 'everness_willow_wood.png' }, + S('Willow Wood Stair'), + S('Willow Wood Slab'), + Everness.node_sound_wood_defaults(), + 6, + 2, + S('Double Willow Wood Slab'), + nil +) + + +-- Magma Cobble + +mcl_stairs.register_stair_and_slab( + 'magmacobble', + 'everness:magmacobble', + { pickaxey = 3, stone = 1 }, + { + { + name = 'everness_magmacobble_animated.png', + animation = { + type = 'vertical_frames', + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + } + }, + S('Magma Cobblestone Stair'), + S('Magma Cobblestone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Magma Cobblestone Slab'), + nil +) + +-- Volcanic rock + +mcl_stairs.register_stair_and_slab( + 'volcanic_rock', + 'everness:volcanic_rock', + { pickaxey = 1, stone = 2 }, + { 'everness_volcanic_rock.png' }, + S('Volcanic Rock Stair'), + S('Volcanic Rock Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Volcanic Rock Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'volcanic_rock_with_magma', + 'everness:volcanic_rock_with_magma', + { pickaxey = 1, stone = 2 }, + { + { + name = 'everness_volcanic_rock_with_magma_animated.png', + animation = { + type = 'vertical_frames', + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + }, + }, + S('Volcanic Rock with Magma Stair'), + S('Volcanic Rock with Magma Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Volcanic Rock with Magma Slab'), + nil +) + +-- Coral Forest Deep Ocean + +mcl_stairs.register_stair_and_slab( + 'coral_deep_ocean_sandstone_block', + 'everness:coral_deep_ocean_sandstone_block', + { pickaxey = 2 }, + { 'everness_deep_ocean_sandstone_block.png' }, + S('Coral Depp Ocean Sandstone Block Stair'), + S('Coral Depp Ocean Sandstone Block Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Depp Ocean Sandstone Block Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_deep_ocean_sandstone_brick', + 'everness:coral_deep_ocean_sandstone_brick', + { pickaxey = 2 }, + { 'everness_deep_ocean_sandstone_brick.png' }, + S('Coral Depp Ocean Sandstone Brick Stair'), + S('Coral Depp Ocean Sandstone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Depp Ocean Sandstone Brick Slab'), + nil +) + +-- Coral White Sandstone + +mcl_stairs.register_stair_and_slab( + 'coral_white_sandstone', + 'everness:coral_white_sandstone', + { pickaxey = 2 }, + { 'everness_coral_white_sandstone.png' }, + S('Coral White Sandstone Stair'), + S('Coral White Sandstone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral White Sandstone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_white_sandstone_pillar', + 'everness:coral_white_sandstone_pillar', + { pickaxey = 2 }, + { + 'everness_coral_white_sandstone.png', + 'everness_coral_white_sandstone.png', + 'everness_coral_white_sandstone_pillar.png', + }, + S('Coral White Sandstone Pillar Stair'), + S('Coral White Sandstone Pillar Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral White Sandstone Pillar Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_white_sandstone_brick', + 'everness:coral_white_sandstone_brick', + { pickaxey = 2 }, + { 'everness_coral_white_sandstone_brick.png' }, + S('Coral White Sandstone Brick Stair'), + S('Coral White Sandstone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral White Sandstone Brick Slab'), + nil +) + +-- Coral Desert Stone + +mcl_stairs.register_stair_and_slab( + 'coral_desert_stone_block', + 'everness:coral_desert_stone_block', + { pickaxey = 2 }, + { 'everness_coral_desert_stone_block.png' }, + S('Coral Desert Stone Block Stair'), + S('Coral Desert Stone Block Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Desert Stone Block Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_desert_stone_brick', + 'everness:coral_desert_stone_brick', + { pickaxey = 2 }, + { 'everness_coral_desert_stone_brick.png' }, + S('Coral Desert Stone Brick Stair'), + S('Coral Desert Stone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Desert Stone Brick Slab'), + nil +) + +-- Coral Sandstone + +mcl_stairs.register_stair_and_slab( + 'coral_sandstone', + 'everness:coral_sandstone', + { pickaxey = 2 }, + { 'everness_coral_sandstone.png' }, + S('Coral Sandstone Stair'), + S('Coral Sandstone Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Sandstone Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_sandstone_brick', + 'everness:coral_sandstone_brick', + { pickaxey = 2 }, + { 'everness_coral_sandstone_brick.png' }, + S('Coral Sandstone Brick Stair'), + S('Coral Sandstone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Sandstone Brick Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_sandstone_chiseled', + 'everness:coral_sandstone_chiseled', + { pickaxey = 2 }, + { 'everness_coral_sandstone_chiseled.png' }, + S('Coral Sandstone Chiseled Stair'), + S('Coral Sandstone Chiseled Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Sandstone Chiseled Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'coral_sandstone_carved_1', + 'everness:coral_sandstone_carved_1', + { pickaxey = 2 }, + { 'everness_coral_sandstone_carved_1.png' }, + S('Coral Sandstone Carved Stair'), + S('Coral Sandstone Carved Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Coral Sandstone Carved Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'cursed_lands_deep_ocean_sandstone_block', + 'everness:cursed_lands_deep_ocean_sandstone_block', + { pickaxey = 2 }, + { 'everness_cursed_lands_deep_ocean_sandblock.png' }, + S('Cursed Lands Deep Ocean Sandstone Block Stair'), + S('Cursed Lands Deep Ocean Sandstone Block Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Cursed Lands Deep Ocean Sandstone Block Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'cursed_lands_deep_ocean_sandstone_brick', + 'everness:cursed_lands_deep_ocean_sandstone_brick', + { pickaxey = 2 }, + { 'everness_cursed_lands_deep_ocean_sand_brick.png' }, + S('Cursed Lands Deep Ocean Sandstone Brick Stair'), + S('Cursed Lands Deep Ocean Sandstone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Cursed Lands Deep Ocean Sandstone Brick Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'crystal_forest_deep_ocean_sandstone_block', + 'everness:crystal_forest_deep_ocean_sandstone_block', + { pickaxey = 2 }, + { 'everness_crystal_forest_deep_ocean_sandstone_block.png' }, + S('Crystal Forest Deep Ocean Sandstone Block Stair'), + S('Crystal Forest Deep Ocean Sandstone Block Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Crystal Forest Deep Ocean Sandstone Block Slab'), + nil +) + +mcl_stairs.register_stair_and_slab( + 'crystal_forest_deep_ocean_sandstone_brick', + 'everness:crystal_forest_deep_ocean_sandstone_brick', + { pickaxey = 2 }, + { 'everness_crystal_forest_deep_ocean_sandstone_brick.png' }, + S('Crystal Forest Deep Ocean Sandstone Brick Stair'), + S('Crystal Forest Deep Ocean Sandstone Brick Slab'), + Everness.node_sound_stone_defaults(), + 6, + 2, + S('Double Crystal Forest Deep Ocean Sandstone Brick Slab'), + nil +) diff --git a/mod_support_mcl_aliases.lua b/mod_support_mcl_aliases.lua new file mode 100644 index 0000000..88ff617 --- /dev/null +++ b/mod_support_mcl_aliases.lua @@ -0,0 +1,184 @@ +--[[ + Everness. Never ending discovery in Everness mapgen. + Copyright (C) 2023 SaKeL + + 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 +--]] + +minetest.register_alias('default:water_source', 'mcl_core:water_source') +minetest.register_alias('default:dirt_with_rainforest_litter', 'mcl_core:dirt_with_grass') +minetest.register_alias('default:dirt_with_snow', 'mcl_core:dirt_with_grass_snow') +minetest.register_alias('default:dirt_with_coniferous_litter', 'mcl_core:podzol') +minetest.register_alias('default:dirt_with_grass', 'mcl_core:dirt_with_grass') +minetest.register_alias('default:stick', 'mcl_core:stick') +minetest.register_alias('default:paper', 'mcl_core:paper') +minetest.register_alias('default:book', 'mcl_books:book') +minetest.register_alias('default:skeleton_key', 'mcl_core:gold_nugget') +minetest.register_alias('default:flint', 'mcl_core:flint') +minetest.register_alias('default:obsidian_shard', 'mcl_core:prismarine_shard') +minetest.register_alias('default:clay_brick', 'mcl_core:brick') +minetest.register_alias('default:mese_crystal_fragment', 'mcl_amethyst:amethyst_shard') +-- Ingots +minetest.register_alias('default:gold_ingot', 'mcl_core:gold_ingot') +minetest.register_alias('default:bronze_ingot', 'mcl_copper:copper_ingot') +minetest.register_alias('default:tin_ingot', 'mcl_core:iron_ingot') +minetest.register_alias('default:copper_ingot', 'mcl_copper:copper_ingot') +minetest.register_alias('default:steel_ingot', 'mcl_core:iron_ingot') +minetest.register_alias('default:coal_lump', 'mcl_core:coal_lump') +-- Tools +minetest.register_alias('default:pick_stone', 'mcl_tools:pick_stone') +minetest.register_alias('default:pick_bronze', 'mcl_tools:pick_gold') +minetest.register_alias('default:pick_steel', 'mcl_tools:pick_iron') +minetest.register_alias('default:shovel_stone', 'mcl_tools:shovel_stone') +minetest.register_alias('default:shovel_bronze', 'mcl_tools:shovel_gold') +minetest.register_alias('default:shovel_steel', 'mcl_tools:shovel_iron') +minetest.register_alias('default:axe_stone', 'mcl_tools:axe_stone') +minetest.register_alias('default:axe_bronze', 'mcl_tools:axe_gold') +minetest.register_alias('default:axe_steel', 'mcl_tools:axe_iron') +minetest.register_alias('default:sword_stone', 'mcl_tools:sword_stone') +minetest.register_alias('default:sword_bronze', 'mcl_tools:sword_gold') +minetest.register_alias('default:sword_steel', 'mcl_tools:sword_iron') +-- Items / Nodes +minetest.register_alias('default:bookshelf', 'mcl_books:bookshelf') +minetest.register_alias('default:sign_wall_wood', 'mcl_signs:wall_sign') +minetest.register_alias('default:ladder_wood', 'mcl_core:ladder') +minetest.register_alias('default:ladder_steel', 'mcl_core:ladder') +minetest.register_alias('default:glass', 'mcl_core:glass') +minetest.register_alias('default:obsidian_glass', 'mcl_core:glass') +-- Trees +minetest.register_alias('default:tree', 'mcl_core:tree') +minetest.register_alias('default:jungletree', 'mcl_core:jungletree') +minetest.register_alias('default:pine_tree', 'mcl_core:sprucetree') +minetest.register_alias('default:cactus', 'mcl_core:cactus') +minetest.register_alias('default:large_cactus_seedling', 'mcl_core:cactus') +minetest.register_alias('default:papyrus', 'mcl_core:reeds') +minetest.register_alias('default:junglegrass', 'mcl_flowers:double_grass') +minetest.register_alias('default:blueberry_bush_sapling', 'mcl_flowers:rose_bush') +minetest.register_alias('default:sapling', 'mcl_core:sapling') +minetest.register_alias('default:junglesapling', 'mcl_core:junglesapling') +minetest.register_alias('default:pine_sapling', 'mcl_core:sprucesapling') +minetest.register_alias('default:acacia_sapling', 'mcl_core:acaciasapling') +minetest.register_alias('default:aspen_sapling', 'mcl_core:birchsapling') + +minetest.register_alias('default:clay_lump', 'mcl_core:clay_lump') +minetest.register_alias('default:tin_lump', 'mcl_raw_ores:raw_gold') +minetest.register_alias('default:copper_lump', 'mcl_copper:raw_copper') +minetest.register_alias('default:iron_lump', 'mcl_raw_ores:raw_iron') +minetest.register_alias('default:coalblock', 'mcl_core:coalblock') +minetest.register_alias('default:steelblock', 'mcl_core:ironblock') +minetest.register_alias('default:copperblock', 'mcl_copper:block') +minetest.register_alias('default:tinblock', 'mcl_core:goldblock') +minetest.register_alias('default:bronzeblock', 'mcl_copper:block') +minetest.register_alias('default:mese', 'mesecons_torch:redstoneblock') +minetest.register_alias('default:meselamp', 'mesecons_lightstone:lightstone_off') +minetest.register_alias('default:obsidian', 'mcl_core:obsidian') +minetest.register_alias('default:mese_crystal', 'mcl_ocean:prismarine_crystals') +minetest.register_alias('default:diamond', 'mcl_core:diamond') +minetest.register_alias('default:pick_mese', 'mcl_tools:pick_diamond') +minetest.register_alias('default:shovel_mese', 'mcl_tools:shovel_diamond') +minetest.register_alias('default:axe_mese', 'mcl_tools:axe_diamond') +minetest.register_alias('default:sword_mese', 'mcl_tools:sword_diamond') + +minetest.register_alias('default:snowblock', 'mcl_core:snowblock') +minetest.register_alias('default:ice', 'mcl_core:ice') +minetest.register_alias('default:torch', 'mcl_torches:torch') +minetest.register_alias('default:cobble', 'mcl_core:cobble') +minetest.register_alias('default:chest', 'mcl_chests:chest') +minetest.register_alias('default:snow', 'mcl_core:snow') +minetest.register_alias('default:stone', 'mcl_core:stone') +minetest.register_alias('default:sand', 'mcl_core:sand') +minetest.register_alias('default:gravel', 'mcl_core:gravel') +minetest.register_alias('default:stone_with_coal', 'mcl_core:stone_with_coal') +minetest.register_alias('default:stone_with_iron', 'mcl_core:stone_with_iron') +minetest.register_alias('default:stone_with_tin', 'mcl_core:stone_with_copper') +minetest.register_alias('default:stone_with_gold', 'mcl_core:stone_with_gold') +minetest.register_alias('default:stone_with_mese', 'mcl_core:stone_with_redstone') +minetest.register_alias('default:stone_with_diamond', 'mcl_core:stone_with_diamond') +minetest.register_alias('default:lava_source', 'mcl_core:lava_source') +minetest.register_alias('default:mossycobble', 'mcl_core:mossycobble') +minetest.register_alias('default:clay', 'mcl_colorblocks:hardened_clay') +minetest.register_alias('default:grass_1', 'mcl_flowers:tallgrass') +minetest.register_alias('default:grass_2', 'mcl_flowers:tallgrass') +minetest.register_alias('default:grass_3', 'mcl_flowers:tallgrass') +minetest.register_alias('default:grass_4', 'mcl_flowers:tallgrass') +minetest.register_alias('default:grass_5', 'mcl_flowers:tallgrass') +minetest.register_alias('default:dry_dirt_with_dry_grass', 'mcl_core:dirt_with_grass') +minetest.register_alias('default:dry_dirt', 'mcl_core:coarse_dirt') +minetest.register_alias('default:coral_skeleton', 'mcl_core:bone_block') +minetest.register_alias('default:lava_flowing', 'mcl_core:lava_flowing') +minetest.register_alias('everness:cursed_brick_with_growth_wall', 'everness:cursedbrickwithgrowthwall') +minetest.register_alias('stairs:slab_cursed_brick_with_growth', 'mcl_stairs:slab_cursed_brick_with_growth') +minetest.register_alias('default:fence_wood', 'mcl_fences:fence') +minetest.register_alias('default:torch_wall', 'mcl_torches:torch_wall') +minetest.register_alias('default:wood', 'mcl_core:wood') +minetest.register_alias('default:junglewood', 'mcl_core:junglewood') +minetest.register_alias('default:pine_wood', 'mcl_core:sprucewood') +minetest.register_alias('default:mese_post_light_pine_wood', 'mcl_torches:torch') +minetest.register_alias_force('default:acacia_tree', 'mcl_core:acaciatree') +minetest.register_alias('default:dry_grass_4', 'mcl_core:deadbush') +minetest.register_alias('default:dry_grass_2', 'mcl_core:deadbush') +minetest.register_alias('default:dry_shrub', 'mcl_core:deadbush') +minetest.register_alias('default:stonebrick', 'mcl_core:stonebrick') +minetest.register_alias('default:jungleleaves', 'mcl_core:jungleleaves') +minetest.register_alias('default:torch_ceiling', 'mcl_torches:torch_wall') +minetest.register_alias('default:goldblock', 'mcl_core:goldblock') +minetest.register_alias('stairs:stair_coral_white_sandstone', 'mcl_stairs:stair_coral_white_sandstone') +minetest.register_alias('stairs:slab_coral_white_sandstone', 'mcl_stairs:slab_coral_white_sandstone') +minetest.register_alias('stairs:stair_coral_deep_ocean_sandstone_block', 'mcl_stairs:stair_coral_deep_ocean_sandstone_block') +minetest.register_alias('stairs:slab_coral_deep_ocean_sandstone_block', 'mcl_stairs:slab_coral_deep_ocean_sandstone_block') +minetest.register_alias('stairs:slab_coral_deep_ocean_sandstone_brick', 'mcl_stairs:slab_coral_deep_ocean_sandstone_brick') +minetest.register_alias('stairs:slab_coral_sandstone_brick', 'mcl_stairs:slab_coral_sandstone_brick') +minetest.register_alias('stairs:stair_coral_deep_ocean_sandstone_brick', 'mcl_stairs:stair_coral_deep_ocean_sandstone_brick') +minetest.register_alias('stairs:stair_crystal_forest_deep_ocean_sandstone_block', 'mcl_stairs:stair_crystal_forest_deep_ocean_sandstone_block') +minetest.register_alias('stairs:stair_crystal_forest_deep_ocean_sandstone_brick', 'mcl_stairs:stair_crystal_forest_deep_ocean_sandstone_brick') +minetest.register_alias('stairs:slab_crystal_forest_deep_ocean_sandstone_block', 'mcl_stairs:slab_crystal_forest_deep_ocean_sandstone_block') +minetest.register_alias('stairs:slab_crystal_forest_deep_ocean_sandstone_brick', 'mcl_stairs:slab_crystal_forest_deep_ocean_sandstone_brick') +minetest.register_alias('stairs:stair_forsaken_desert_brick_red', 'mcl_stairs:stair_forsaken_desert_brick_red') +minetest.register_alias('stairs:stair_forsaken_desert_chiseled_stone', 'mcl_stairs:stair_forsaken_desert_chiseled_stone') +minetest.register_alias('stairs:slab_forsaken_desert_chiseled_stone', 'mcl_stairs:slab_forsaken_desert_chiseled_stone') +minetest.register_alias('stairs:stair_junglewood', 'mcl_stairs:stair_junglewood') +minetest.register_alias('stairs:slab_junglewood', 'mcl_stairs:slab_junglewood') +minetest.register_alias('stairs:slab_dry_wood', 'mcl_stairs:slab_dry_wood') +minetest.register_alias('stairs:stair_dry_wood', 'mcl_stairs:stair_dry_wood') +minetest.register_alias('stairs:stair_wood', 'mcl_stairs:stair_wood') +minetest.register_alias('stairs:slab_stonebrick', 'mcl_stairs:slab_stonebrick') +minetest.register_alias('stairs:stair_inner_wood', 'mcl_stairs:stair_wood_inner') +minetest.register_alias('stairs:stair_outer_stonebrick', 'mcl_stairs:stair_stonebrick_outer') +minetest.register_alias('stairs:stair_stonebrick', 'mcl_stairs:stair_stonebrick') +minetest.register_alias('stairs:stair_cobble', 'mcl_stairs:stair_cobble') +minetest.register_alias('stairs:stair_mossycobble', 'mcl_stairs:stair_mossycobble') +minetest.register_alias('stairs:stair_outer_quartz_chiseled', 'mcl_stairs:stair_quartz_chiseled_outer') +minetest.register_alias('stairs:stair_quartz_chiseled', 'mcl_stairs:stair_quartz_chiseled') +minetest.register_alias('stairs:stair_inner_quartz_chiseled', 'mcl_stairs:stair_quartz_chiseled_inner') +minetest.register_alias('stairs:slab_quartz_chiseled', 'mcl_stairs:slab_quartz_chiseled') + +minetest.register_alias('everness:cursed_brick_wall', 'everness:cursedbrickwall') +minetest.register_alias('walls:cobble', 'mcl_walls:cobble') +minetest.register_alias('xpanes:trapdoor_steel_bar', 'mcl_doors:iron_trapdoor') +minetest.register_alias('doors:trapdoor_open', 'mcl_doors:trapdoor_open') +minetest.register_alias('doors:trapdoor', 'mcl_doors:trapdoor') +minetest.register_alias('doors:door_wood_a', 'mcl_doors:wooden_door') +minetest.register_alias('doors:hidden', 'air') +minetest.register_alias('everness:cobweb', 'mcl_core:cobweb') + + +minetest.register_alias('flowers:rose', 'mcl_flowers:wither_rose') +minetest.register_alias('flowers:tulip', 'mcl_flowers:tulip_orange') +minetest.register_alias('flowers:dandelion_yellow', 'mcl_flowers:dandelion') +minetest.register_alias('flowers:geranium', 'mcl_flowers:allium') +minetest.register_alias('flowers:viola', 'mcl_flowers:azure_bluet') +minetest.register_alias('flowers:tulip_black', 'mcl_flowers:tulip_white') + +minetest.register_alias('flowers:dandelion_white', 'mcl_flowers:tulip_pink') +minetest.register_alias('flowers:chrysanthemum_green', 'mcl_flowers:tulip_white') diff --git a/mod_support_mcl_fences.lua b/mod_support_mcl_fences.lua deleted file mode 100644 index 1cce296..0000000 --- a/mod_support_mcl_fences.lua +++ /dev/null @@ -1,47 +0,0 @@ ---[[ - Everness. Never ending discovery in Everness mapgen. - Copyright (C) 2023 SaKeL - - 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() -) diff --git a/nodes.lua b/nodes.lua index 25c67b4..b43a8da 100644 --- a/nodes.lua +++ b/nodes.lua @@ -24,7 +24,7 @@ local S = minetest.get_translator(minetest.get_current_modname()) -- Ores -- -minetest.register_node('everness:stone_with_pyrite', { +Everness:register_node('everness:stone_with_pyrite', { description = S('Pyrite Ore'), tiles = { 'default_stone.png^everness_mineral_pyrite.png' }, groups = { cracky = 2 }, @@ -32,103 +32,103 @@ minetest.register_node('everness:stone_with_pyrite', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:pyriteblock', { +Everness:register_node('everness:pyriteblock', { description = S('Pyrite Block'), tiles = { 'everness_pyrite_block.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyriteblock_forged', { +Everness:register_node('everness:pyriteblock_forged', { description = S('Forged Pyrite Block'), tiles = { 'everness_pyrite_block_forged.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyriteblock_brick', { +Everness:register_node('everness:pyriteblock_brick', { description = S('Pyrite Brick'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyriteblock_brick.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyriteblock_slab_brick', { +Everness:register_node('everness:pyriteblock_slab_brick', { description = S('Pyrite Slab Brick'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_block_slab_brick.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyriteblock_spiral', { +Everness:register_node('everness:pyriteblock_spiral', { description = S('Pyrite Spiral'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_block_spiral.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyrite_pillar_bottom', { +Everness:register_node('everness:pyrite_pillar_bottom', { description = S('Pyrite Pillar Bottom'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_pillar_bottom.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyrite_pillar_middle', { +Everness:register_node('everness:pyrite_pillar_middle', { description = S('Pyrite Pillar Middle'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_pillar_middle.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyrite_pillar_top', { +Everness:register_node('everness:pyrite_pillar_top', { description = S('Pyrite Pillar Top'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_pillar_top.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyrite_pillar_small', { +Everness:register_node('everness:pyrite_pillar_small', { description = S('Pyrite Pillar Small'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_pillar_small.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:pyriteblock_polished', { +Everness:register_node('everness:pyriteblock_polished', { description = S('Polished Pyrite Block'), paramtype2 = 'facedir', place_param2 = 0, tiles = { 'everness_pyrite_block_polished.png' }, is_ground_content = false, - groups = { cracky = 1 }, + groups = { cracky = 2 }, sounds = Everness.node_sound_metal_defaults(), }) -minetest.register_node('everness:quartz_ore', { +Everness:register_node('everness:quartz_ore', { description = S('Quartz Ore'), tiles = { 'default_stone.png^everness_quartz_ore.png' }, groups = { cracky = 3 }, @@ -140,7 +140,7 @@ minetest.register_node('everness:quartz_ore', { -- Stone -- -minetest.register_node('everness:coral_desert_stone', { +Everness:register_node('everness:coral_desert_stone', { description = S('Coral Desert Stone'), tiles = { 'everness_coral_desert_stone.png' }, groups = { cracky = 3, stone = 1 }, @@ -149,14 +149,14 @@ minetest.register_node('everness:coral_desert_stone', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_sandstone', { +Everness:register_node('everness:coral_sandstone', { description = S('Coral Sandstone'), tiles = { 'everness_coral_sandstone.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_sandstone_brick', { +Everness:register_node('everness:coral_sandstone_brick', { description = S('Coral Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -166,7 +166,7 @@ minetest.register_node('everness:coral_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_sandstone_chiseled', { +Everness:register_node('everness:coral_sandstone_chiseled', { description = S('Coral Sandstone Chiseled Block'), tiles = { 'everness_coral_sandstone_chiseled.png' }, is_ground_content = false, @@ -174,7 +174,7 @@ minetest.register_node('everness:coral_sandstone_chiseled', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_sandstone_carved_1', { +Everness:register_node('everness:coral_sandstone_carved_1', { description = S('Coral Sandstone Carved Block'), tiles = { 'everness_coral_sandstone_carved_1.png' }, is_ground_content = false, @@ -182,14 +182,14 @@ minetest.register_node('everness:coral_sandstone_carved_1', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_white_sandstone', { +Everness:register_node('everness:coral_white_sandstone', { description = S('Coral White Sandstone'), tiles = { 'everness_coral_white_sandstone.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_white_sandstone_brick', { +Everness:register_node('everness:coral_white_sandstone_brick', { description = S('Coral White Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -199,7 +199,7 @@ minetest.register_node('everness:coral_white_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_white_sandstone_pillar', { +Everness:register_node('everness:coral_white_sandstone_pillar', { description = S('Coral White Sandstone Pillar'), paramtype2 = 'facedir', place_param2 = 0, @@ -213,7 +213,7 @@ minetest.register_node('everness:coral_white_sandstone_pillar', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_desert_stone_block', { +Everness:register_node('everness:coral_desert_stone_block', { description = S('Coral Desert Stone Block'), tiles = { 'everness_coral_desert_stone_block.png' }, is_ground_content = false, @@ -221,7 +221,7 @@ minetest.register_node('everness:coral_desert_stone_block', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_desert_stone_brick', { +Everness:register_node('everness:coral_desert_stone_brick', { description = S('Coral Desert Stone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -231,14 +231,14 @@ minetest.register_node('everness:coral_desert_stone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_bones', { +Everness:register_node('everness:coral_bones', { description = S('Coral Bones'), tiles = { 'everness_coral_bones.png' }, groups = { cracky = 3, stone = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_desert_cobble', { +Everness:register_node('everness:coral_desert_cobble', { description = S('Coral Desert Cobblestone'), tiles = { 'everness_coral_desert_cobble.png' }, is_ground_content = false, @@ -246,7 +246,7 @@ minetest.register_node('everness:coral_desert_cobble', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_desert_mossy_cobble', { +Everness:register_node('everness:coral_desert_mossy_cobble', { description = S('Coral Mossy Cobblestone'), tiles = { 'everness_coral_desert_mossy_cobble.png' }, is_ground_content = false, @@ -254,7 +254,7 @@ minetest.register_node('everness:coral_desert_mossy_cobble', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_desert_stone_with_moss', { +Everness:register_node('everness:coral_desert_stone_with_moss', { description = S('Coral Desert Stone with Moss'), tiles = { 'everness_coral_stone_with_moss_top.png', @@ -270,14 +270,14 @@ minetest.register_node('everness:coral_desert_stone_with_moss', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_deep_ocean_sandstone_block', { +Everness:register_node('everness:coral_deep_ocean_sandstone_block', { description = S('Coral Deep Ocean Sandstone Block'), tiles = { 'everness_deep_ocean_sandstone_block.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_deep_ocean_sandstone_brick', { +Everness:register_node('everness:coral_deep_ocean_sandstone_brick', { description = S('Coral Deep Ocean Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -286,14 +286,14 @@ minetest.register_node('everness:coral_deep_ocean_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_sandstone_block', { +Everness:register_node('everness:cursed_lands_deep_ocean_sandstone_block', { description = S('Cursed Lands Deep Ocean Sandstone Block'), tiles = { 'everness_cursed_lands_deep_ocean_sandblock.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_sandstone_brick', { +Everness:register_node('everness:cursed_lands_deep_ocean_sandstone_brick', { description = S('Cursed Lands Deep Ocean Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -302,14 +302,14 @@ minetest.register_node('everness:cursed_lands_deep_ocean_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_sandstone_block', { +Everness:register_node('everness:crystal_forest_deep_ocean_sandstone_block', { description = S('Crystal Forest Deep Ocean Sandstone Block'), tiles = { 'everness_crystal_forest_deep_ocean_sandstone_block.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_sandstone_brick', { +Everness:register_node('everness:crystal_forest_deep_ocean_sandstone_brick', { description = S('Crystal Forest Deep Ocean Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -318,7 +318,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_stone', { +Everness:register_node('everness:forsaken_desert_stone', { description = S('Forsaken Desert Stone'), tiles = { 'everness_forsaken_desert_stone.png' }, groups = { cracky = 3, stone = 1 }, @@ -326,7 +326,7 @@ minetest.register_node('everness:forsaken_desert_stone', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_cobble_red', { +Everness:register_node('everness:forsaken_desert_cobble_red', { description = S('Forsaken Desert Cobblestone Red'), tiles = { 'everness_forsaken_desert_cobble_red.png' }, is_ground_content = false, @@ -334,7 +334,7 @@ minetest.register_node('everness:forsaken_desert_cobble_red', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_cobble', { +Everness:register_node('everness:forsaken_desert_cobble', { description = S('Forsaken Desert Cobblestone'), tiles = { 'everness_forsaken_desert_cobble.png' }, is_ground_content = false, @@ -342,7 +342,7 @@ minetest.register_node('everness:forsaken_desert_cobble', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:volcanic_rock', { +Everness:register_node('everness:volcanic_rock', { description = S('Volcanic Rock'), tiles = { 'everness_volcanic_rock.png' }, sounds = Everness.node_sound_stone_defaults(), @@ -350,7 +350,7 @@ minetest.register_node('everness:volcanic_rock', { is_ground_content = false, }) -minetest.register_node('everness:volcanic_rock_with_magma', { +Everness:register_node('everness:volcanic_rock_with_magma', { description = S('Volcanic Rock with Magma'), tiles = { { @@ -369,7 +369,7 @@ minetest.register_node('everness:volcanic_rock_with_magma', { light_source = 3, }) -minetest.register_node('everness:magmacobble', { +Everness:register_node('everness:magmacobble', { description = 'Magma Cobblestone', groups = { cracky = 3, stone = 1 }, sounds = Everness.node_sound_stone_defaults(), @@ -401,14 +401,14 @@ minetest.register_node('everness:magmacobble', { light_source = 3, }) -minetest.register_node('everness:cursed_stone', { +Everness:register_node('everness:cursed_stone', { description = S('Cursed Stone'), tiles = { 'everness_cursed_stone.png' }, groups = { cracky = 3, stone = 1 }, sounds = Everness.node_sound_stone_defaults() }) -minetest.register_node('everness:cursed_brick', { +Everness:register_node('everness:cursed_brick', { description = S('Cursed Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -418,7 +418,7 @@ minetest.register_node('everness:cursed_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_brick_with_growth', { +Everness:register_node('everness:cursed_brick_with_growth', { description = S('Cursed Brick with Growth'), paramtype2 = 'facedir', place_param2 = 0, @@ -428,7 +428,7 @@ minetest.register_node('everness:cursed_brick_with_growth', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_brick_mixed', { +Everness:register_node('everness:cursed_brick_mixed', { description = S('Cursed Brick Mixed'), paramtype2 = 'facedir', place_param2 = 0, @@ -438,7 +438,7 @@ minetest.register_node('everness:cursed_brick_mixed', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_brick_carved', { +Everness:register_node('everness:cursed_brick_carved', { description = S('Cursed Brick Carved'), paramtype2 = 'facedir', place_param2 = 0, @@ -448,14 +448,14 @@ minetest.register_node('everness:cursed_brick_carved', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:volcanic_sulfur', { +Everness:register_node('everness:volcanic_sulfur', { description = S('Volcanic Sulfur Stone'), tiles = { 'everness_volcanic_sulfur_stone.png' }, groups = { cracky = 3, stone = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:sulfur_stone', { +Everness:register_node('everness:sulfur_stone', { description = S('Sulfur Stone'), tiles = { 'everness_sulfur_stone.png' }, groups = { cracky = 3, stone = 1 }, @@ -534,7 +534,7 @@ minetest.register_node('everness:sulfur_stone', { end }) -minetest.register_node('everness:forsaken_tundra_cobble', { +Everness:register_node('everness:forsaken_tundra_cobble', { description = S('Forsaken Tundra Cobblestone'), tiles = { 'everness_forsaken_tundra_cobblestone.png' }, is_ground_content = false, @@ -542,7 +542,7 @@ minetest.register_node('everness:forsaken_tundra_cobble', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_tundra_stone', { +Everness:register_node('everness:forsaken_tundra_stone', { description = S('Forsaken Tundra Stone'), tiles = { 'everness_forsaken_tundra_stone.png' }, groups = { cracky = 3, stone = 1 }, @@ -551,7 +551,7 @@ minetest.register_node('everness:forsaken_tundra_stone', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:mold_cobble', { +Everness:register_node('everness:mold_cobble', { description = S('Mold Cobble'), tiles = { 'everness_mold_stone.png' }, is_ground_content = false, @@ -559,7 +559,7 @@ minetest.register_node('everness:mold_cobble', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_tundra_brick', { +Everness:register_node('everness:forsaken_tundra_brick', { description = S('Forsaken Tundra Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -569,7 +569,7 @@ minetest.register_node('everness:forsaken_tundra_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_tundra_rocks', { +Everness:register_node('everness:forsaken_tundra_rocks', { description = S('Forsaken Tundra Rocks'), tiles = { 'everness_forsaken_tundra_rocks_top.png', @@ -582,14 +582,14 @@ minetest.register_node('everness:forsaken_tundra_rocks', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:blue_crying_obsidian', { +Everness:register_node('everness:blue_crying_obsidian', { description = S('Blue Crying Obsidian'), tiles = { 'everness_blue_crying_obsidian.png' }, sounds = Everness.node_sound_stone_defaults(), groups = { cracky = 1, level = 2 }, }) -minetest.register_node('everness:blue_weeping_obsidian', { +Everness:register_node('everness:blue_weeping_obsidian', { description = S('Blue Weeping Obsidian'), tiles = { 'everness_blue_weeping_obsidian.png' }, sounds = Everness.node_sound_stone_defaults(), @@ -598,7 +598,7 @@ minetest.register_node('everness:blue_weeping_obsidian', { light_source = 7, }) -minetest.register_node('everness:weeping_obsidian', { +Everness:register_node('everness:weeping_obsidian', { description = S('Weeping Obsidian'), tiles = { 'everness_weeping_obsidian.png' }, sounds = Everness.node_sound_stone_defaults(), @@ -607,7 +607,7 @@ minetest.register_node('everness:weeping_obsidian', { light_source = 7, }) -minetest.register_node('everness:mold_stone_with_moss', { +Everness:register_node('everness:mold_stone_with_moss', { description = S('Mold Stone'), tiles = { 'everness_mold_stone_with_moss_top.png', @@ -620,14 +620,14 @@ minetest.register_node('everness:mold_stone_with_moss', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:soul_sandstone', { +Everness:register_node('everness:soul_sandstone', { description = S('Soul Sandstone'), tiles = { 'everness_soul_sandstone.png' }, groups = { cracky = 3, stone = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:soul_sandstone_veined', { +Everness:register_node('everness:soul_sandstone_veined', { description = S('Soul Sandstone Veined'), tiles = { 'everness_soul_sandstone_veined_top.png', @@ -639,7 +639,7 @@ minetest.register_node('everness:soul_sandstone_veined', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_block_purple', { +Everness:register_node('everness:crystal_block_purple', { description = S('Purple Crystal Block'), paramtype2 = 'facedir', place_param2 = 0, @@ -654,7 +654,7 @@ minetest.register_node('everness:crystal_block_purple', { sounds = Everness.node_sound_crystal_defaults(), }) -minetest.register_node('everness:crystal_block_orange', { +Everness:register_node('everness:crystal_block_orange', { description = S('Orange Crystal Block'), paramtype2 = 'facedir', place_param2 = 0, @@ -672,7 +672,7 @@ minetest.register_node('everness:crystal_block_orange', { -- Quartz -- Quartz Block -minetest.register_node('everness:quartz_block', { +Everness:register_node('everness:quartz_block', { description = S('Quartz Block'), -- Textures of node; +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -685,7 +685,7 @@ minetest.register_node('everness:quartz_block', { }) -- Chiseled Quartz -minetest.register_node('everness:quartz_chiseled', { +Everness:register_node('everness:quartz_chiseled', { description = S('Chiseled Quartz'), tiles = { 'everness_quartz_block_chiseled_top.png', @@ -697,7 +697,7 @@ minetest.register_node('everness:quartz_chiseled', { }) -- Quartz Pillar -minetest.register_node('everness:quartz_pillar', { +Everness:register_node('everness:quartz_pillar', { description = S('Quartz Pillar'), paramtype2 = 'facedir', tiles = { @@ -710,7 +710,7 @@ minetest.register_node('everness:quartz_pillar', { on_place = minetest.rotate_node }) -minetest.register_node('everness:forsaken_desert_brick', { +Everness:register_node('everness:forsaken_desert_brick', { description = S('Forsaken Desert Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -720,7 +720,7 @@ minetest.register_node('everness:forsaken_desert_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_brick_red', { +Everness:register_node('everness:forsaken_desert_brick_red', { description = S('Forsaken Desert Brick Red'), paramtype2 = 'facedir', place_param2 = 0, @@ -730,7 +730,7 @@ minetest.register_node('everness:forsaken_desert_brick_red', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_chiseled_stone', { +Everness:register_node('everness:forsaken_desert_chiseled_stone', { description = S('Forsaken Desert Chiseled Stone'), paramtype2 = 'facedir', place_param2 = 0, @@ -744,7 +744,7 @@ minetest.register_node('everness:forsaken_desert_chiseled_stone', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:forsaken_desert_engraved_stone', { +Everness:register_node('everness:forsaken_desert_engraved_stone', { description = S('Forsaken Desert Engraved Stone'), tiles = { 'everness_forsaken_desert_engraved_stone.png' }, is_ground_content = false, @@ -752,14 +752,14 @@ minetest.register_node('everness:forsaken_desert_engraved_stone', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_sandstone', { +Everness:register_node('everness:crystal_sandstone', { description = S('Crystal Sandstone'), tiles = { 'everness_crystal_sandstone.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_sandstone_brick', { +Everness:register_node('everness:crystal_sandstone_brick', { description = S('Crystal Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -769,7 +769,7 @@ minetest.register_node('everness:crystal_sandstone_brick', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_sandstone_chiseled', { +Everness:register_node('everness:crystal_sandstone_chiseled', { description = S('Crystal Sandstone Chiseled'), tiles = { 'everness_crystal_sandstone_chiseled.png' }, is_ground_content = false, @@ -777,14 +777,14 @@ minetest.register_node('everness:crystal_sandstone_chiseled', { sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_sandstone_block', { +Everness:register_node('everness:cursed_sandstone_block', { description = S('Cursed Sandstone Block'), tiles = { 'everness_cursed_sandstone_block.png' }, groups = { cracky = 2 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_sandstone_brick', { +Everness:register_node('everness:cursed_sandstone_brick', { description = S('Cursed Sandstone Brick'), paramtype2 = 'facedir', place_param2 = 0, @@ -798,7 +798,7 @@ minetest.register_node('everness:cursed_sandstone_brick', { -- Soft / Non-Stone -- -minetest.register_node('everness:coral_dirt', { +Everness:register_node('everness:coral_dirt', { description = S('Coral Dirt'), short_description = S('Coral Dirt'), tiles = { 'everness_coral_dirt.png' }, @@ -806,7 +806,7 @@ minetest.register_node('everness:coral_dirt', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:coral_deep_ocean_mud', { +Everness:register_node('everness:coral_deep_ocean_mud', { description = S('Coral Deep Ocean Mud'), short_description = S('Coral Deep Ocean Mud'), tiles = { 'everness_mud_2.png' }, @@ -814,7 +814,7 @@ minetest.register_node('everness:coral_deep_ocean_mud', { sounds = Everness.node_sound_mud_defaults(), }) -minetest.register_node('everness:cursed_dirt', { +Everness:register_node('everness:cursed_dirt', { description = S('Cursed Dirt'), short_description = S('Cursed Dirt'), tiles = { 'everness_cursed_dirt.png' }, @@ -822,7 +822,7 @@ minetest.register_node('everness:cursed_dirt', { sounds = Everness.node_sound_mud_defaults(), }) -minetest.register_node('everness:crystal_dirt', { +Everness:register_node('everness:crystal_dirt', { description = S('Crystal Dirt'), short_description = S('Crystal Dirt'), tiles = { 'everness_crystal_dirt.png' }, @@ -830,7 +830,7 @@ minetest.register_node('everness:crystal_dirt', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:forsaken_tundra_dirt', { +Everness:register_node('everness:forsaken_tundra_dirt', { description = S('Forsaken Tundra Dirt'), short_description = S('Forsaken Tundra Dirt'), tiles = { 'everness_forsaken_tundra_dirt.png' }, @@ -838,7 +838,7 @@ minetest.register_node('everness:forsaken_tundra_dirt', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:forsaken_tundra_dirt_with_grass', { +Everness:register_node('everness:forsaken_tundra_dirt_with_grass', { description = S('Forsaken Tundra Dirt with Grass'), short_description = S('Forsaken Tundra Dirt with Grass'), tiles = { @@ -851,7 +851,7 @@ minetest.register_node('everness:forsaken_tundra_dirt_with_grass', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dirt_with_coral_grass', { +Everness:register_node('everness:dirt_with_coral_grass', { description = S('Dirt with Coral Grass'), short_description = S('Dirt with Coral Grass'), tiles = { @@ -864,7 +864,7 @@ minetest.register_node('everness:dirt_with_coral_grass', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dirt_with_cursed_grass', { +Everness:register_node('everness:dirt_with_cursed_grass', { description = S('Dirt with Cursed Grass'), short_description = S('Dirt with Cursed Grass'), tiles = { @@ -877,7 +877,7 @@ minetest.register_node('everness:dirt_with_cursed_grass', { sounds = Everness.node_sound_mud_defaults(), }) -minetest.register_node('everness:dirt_with_crystal_grass', { +Everness:register_node('everness:dirt_with_crystal_grass', { description = S('Dirt with Crystal Grass'), short_description = S('Dirt with Crystal Grass'), tiles = { @@ -890,7 +890,7 @@ minetest.register_node('everness:dirt_with_crystal_grass', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dry_ocean_dirt', { +Everness:register_node('everness:dry_ocean_dirt', { description = S('Dry Ocean Dirt'), short_description = S('Dry Ocean Dirt'), tiles = { 'everness_forsaken_desert_dry_ocean_dirt.png' }, @@ -900,7 +900,7 @@ minetest.register_node('everness:dry_ocean_dirt', { -- Loot Chest / Icicle Markers -minetest.register_node('everness:japanese_shrine_lootchest_marker', { +Everness:register_node('everness:japanese_shrine_lootchest_marker', { drawtype = 'airlike', description = 'Japanese Shrine Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -908,7 +908,7 @@ minetest.register_node('everness:japanese_shrine_lootchest_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:jungle_temple_lootchest_marker', { +Everness:register_node('everness:jungle_temple_lootchest_marker', { drawtype = 'airlike', description = 'Jungle Temple Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -916,7 +916,7 @@ minetest.register_node('everness:jungle_temple_lootchest_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:haunted_house_lootchest_marker', { +Everness:register_node('everness:haunted_house_lootchest_marker', { drawtype = 'airlike', description = 'Haunted House Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -924,7 +924,7 @@ minetest.register_node('everness:haunted_house_lootchest_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:quartz_temple_lootchest_marker', { +Everness:register_node('everness:quartz_temple_lootchest_marker', { drawtype = 'airlike', description = 'Quartz Temple Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -932,7 +932,7 @@ minetest.register_node('everness:quartz_temple_lootchest_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:forsaken_desert_temple_marker', { +Everness:register_node('everness:forsaken_desert_temple_marker', { drawtype = 'airlike', description = 'Forsaken Temple Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -940,7 +940,7 @@ minetest.register_node('everness:forsaken_desert_temple_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:forsaken_desert_temple_2_marker', { +Everness:register_node('everness:forsaken_desert_temple_2_marker', { drawtype = 'airlike', description = 'Forsaken Temple 2 Loot Chest Spawn Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -948,7 +948,7 @@ minetest.register_node('everness:forsaken_desert_temple_2_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:frosted_icicle_large_ceiling_marker', { +Everness:register_node('everness:frosted_icicle_large_ceiling_marker', { drawtype = 'airlike', description = 'Frosted Icicle Large Ceiling Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -956,7 +956,7 @@ minetest.register_node('everness:frosted_icicle_large_ceiling_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:frosted_icicle_large_floor_marker', { +Everness:register_node('everness:frosted_icicle_large_floor_marker', { drawtype = 'airlike', description = 'Frosted Icicle Large Floor Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -964,7 +964,7 @@ minetest.register_node('everness:frosted_icicle_large_floor_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:coral_forest_deep_ocean_house_marker', { +Everness:register_node('everness:coral_forest_deep_ocean_house_marker', { drawtype = 'airlike', description = 'Coral Forest Deep Ocean House Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -972,7 +972,7 @@ minetest.register_node('everness:coral_forest_deep_ocean_house_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:cursed_lands_deep_ocean_skull_marker', { +Everness:register_node('everness:cursed_lands_deep_ocean_skull_marker', { drawtype = 'airlike', description = 'Cursed Lands Deep Ocean Skull Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -980,7 +980,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_skull_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:frosted_icesheet_igloo_marker', { +Everness:register_node('everness:frosted_icesheet_igloo_marker', { drawtype = 'airlike', description = 'Frosted Icesheet Igloo Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -988,7 +988,7 @@ minetest.register_node('everness:frosted_icesheet_igloo_marker', { paramtype2 = 'facedir', }) -minetest.register_node('everness:crystal_forest_deep_ocean_ruins_marker', { +Everness:register_node('everness:crystal_forest_deep_ocean_ruins_marker', { drawtype = 'airlike', description = 'Crystal Forest Deep Ocean Ruins Marker', tiles = { 'everness_lootchest_marker_top.png', 'everness_lootchest_marker_side.png' }, @@ -998,7 +998,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_ruins_marker', { -- Everness default blocks -minetest.register_node('everness:dirt_1', { +Everness:register_node('everness:dirt_1', { description = S('Dirt'), short_description = S('Dirt'), tiles = { 'everness_dirt_1.png' }, @@ -1006,7 +1006,7 @@ minetest.register_node('everness:dirt_1', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:dirt_with_grass_1', { +Everness:register_node('everness:dirt_with_grass_1', { description = S('Dirt with Grass'), short_description = S('Dirt with Grass'), tiles = { @@ -1019,7 +1019,7 @@ minetest.register_node('everness:dirt_with_grass_1', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dirt_with_grass_2', { +Everness:register_node('everness:dirt_with_grass_2', { description = S('Dirt with Grass'), short_description = S('Dirt with Grass'), tiles = { @@ -1032,7 +1032,7 @@ minetest.register_node('everness:dirt_with_grass_2', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dirt_with_grass_extras_1', { +Everness:register_node('everness:dirt_with_grass_extras_1', { description = S('Dirt with Grass'), short_description = S('Dirt with Grass'), tiles = { @@ -1045,7 +1045,7 @@ minetest.register_node('everness:dirt_with_grass_extras_1', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:dirt_with_grass_extras_2', { +Everness:register_node('everness:dirt_with_grass_extras_2', { description = S('Dirt with Grass'), short_description = S('Dirt with Grass'), tiles = { @@ -1058,7 +1058,7 @@ minetest.register_node('everness:dirt_with_grass_extras_2', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:crystal_cave_dirt', { +Everness:register_node('everness:crystal_cave_dirt', { description = S('Crystal Cave Dirt'), short_description = S('Crystal Cave Dirt'), tiles = { 'everness_crystal_cave_dirt.png' }, @@ -1066,7 +1066,7 @@ minetest.register_node('everness:crystal_cave_dirt', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:crystal_cave_dirt_with_moss', { +Everness:register_node('everness:crystal_cave_dirt_with_moss', { description = S('Crystal Cave Dirt with Moss'), short_description = S('Crystal Cave Dirt with Moss'), tiles = { @@ -1079,29 +1079,50 @@ minetest.register_node('everness:crystal_cave_dirt_with_moss', { sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:moss_block', { +Everness:register_node('everness:moss_block', { description = S('Moss Block'), tiles = { 'everness_moss_block.png' }, groups = { crumbly = 3, soil = 1 }, sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:crystal_moss_block', { +Everness:register_node('everness:crystal_moss_block', { description = S('Crystal Moss Block'), tiles = { 'everness_crystal_cave_moss.png' }, groups = { crumbly = 3, soil = 1, everness_spreading_dirt_type_under = 1 }, sounds = Everness.node_sound_grass_defaults(), }) -minetest.register_node('everness:coral_sand', { +Everness:register_node('everness:coral_sand', { description = S('Coral Sand'), short_description = S('Coral Sand'), tiles = { 'everness_coral_sand.png' }, - groups = { crumbly = 3, falling_node = 1, sand = 1 }, + groups = { + -- MTG + crumbly = 3, + sand = 1, + -- MCL + handy = 1, + shovely = 1, + soil_sugarcane = 1, + enderman_takable = 1, + building_block = 1, + material_sand = 1, + -- ALL + falling_node = 1, + -- Generated + -- handy_dig = 7, + -- shovely_dig = 2, + -- opaque = 1, + -- solid = 1, + }, sounds = Everness.node_sound_sand_defaults(), + -- MCL + _mcl_blast_resistance = 0.5, + _mcl_hardness = 0.5, }) -minetest.register_node('everness:coral_white_sand', { +Everness:register_node('everness:coral_white_sand', { description = S('Coral White Sand'), short_description = S('Coral White Sand'), tiles = { 'everness_coral_white_sand.png' }, @@ -1109,7 +1130,7 @@ minetest.register_node('everness:coral_white_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:cursed_sand', { +Everness:register_node('everness:cursed_sand', { description = S('Cursed Sand'), short_description = S('Cursed Sand'), tiles = { 'everness_cursed_sand.png' }, @@ -1117,7 +1138,7 @@ minetest.register_node('everness:cursed_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:crystal_sand', { +Everness:register_node('everness:crystal_sand', { description = S('Crystal Sand'), short_description = S('Crystal Sand'), tiles = { 'everness_crystal_sand.png' }, @@ -1125,7 +1146,7 @@ minetest.register_node('everness:crystal_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_sand_with_crack', { +Everness:register_node('everness:crystal_forest_deep_ocean_sand_with_crack', { description = S('Crystal Forest Deep Ocean Sand with Crack'), short_description = S('Crystal Forest Deep Ocean Sand with Crack'), tiles = { 'everness_crystal_forest_deep_ocean_sand_with_crack.png' }, @@ -1133,7 +1154,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_sand_with_crack', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:forsaken_tundra_beach_sand', { +Everness:register_node('everness:forsaken_tundra_beach_sand', { description = S('Forsaken Tundra Beach Sand'), short_description = S('Forsaken Tundra Beach Sand'), tiles = { 'everness_forsaken_tundra_beach_sand.png' }, @@ -1141,7 +1162,7 @@ minetest.register_node('everness:forsaken_tundra_beach_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:forsaken_tundra_beach_sand_with_shells', { +Everness:register_node('everness:forsaken_tundra_beach_sand_with_shells', { description = S('Forsaken Tundra Beach Sand with Shells'), short_description = S('Forsaken Tundra Beach Sand'), tiles = { 'everness_forsaken_tundra_beach_sand_with_shells.png' }, @@ -1149,7 +1170,7 @@ minetest.register_node('everness:forsaken_tundra_beach_sand_with_shells', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:forsaken_desert_sand', { +Everness:register_node('everness:forsaken_desert_sand', { description = S('Forsaken Desert Sand'), short_description = S('Forsaken Desert Sand'), tiles = { 'everness_forsaken_desert_sand.png' }, @@ -1157,7 +1178,7 @@ minetest.register_node('everness:forsaken_desert_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:coral_forest_deep_ocean_sand', { +Everness:register_node('everness:coral_forest_deep_ocean_sand', { description = S('Coral Forest Deep Ocean Sand'), short_description = S('Coral Forest Deep Ocean Sand'), tiles = { 'everness_deep_ocean_sand.png' }, @@ -1165,7 +1186,7 @@ minetest.register_node('everness:coral_forest_deep_ocean_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_sand', { +Everness:register_node('everness:cursed_lands_deep_ocean_sand', { description = S('Cursed Lands Deep Ocean Sand'), short_description = S('Cursed Lands Deep Ocean Sand'), tiles = { 'everness_cursed_lands_deep_ocean_sand.png' }, @@ -1173,7 +1194,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_sand_with_crack', { +Everness:register_node('everness:cursed_lands_deep_ocean_sand_with_crack', { description = S('Cursed Lands Deep Ocean Sand with Crack'), short_description = S('Cursed Lands Deep Ocean Sand with Crack'), tiles = { 'everness_cursed_lands_deep_ocean_sand_with_crack.png' }, @@ -1181,7 +1202,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_sand_with_crack', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_sand', { +Everness:register_node('everness:crystal_forest_deep_ocean_sand', { description = S('Crystal Forest Deep Ocean Sand'), short_description = S('Crystal Forest Deep Ocean Sand'), tiles = { 'everness_crystal_forest_deep_ocean_sand.png' }, @@ -1189,7 +1210,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_sand', { sounds = Everness.node_sound_sand_defaults(), }) -minetest.register_node('everness:frosted_snowblock', { +Everness:register_node('everness:frosted_snowblock', { description = S('Frosted Snow Block'), tiles = { 'everness_frosted_snow.png' }, groups = { crumbly = 3, cools_lava = 1, snowy = 1 }, @@ -1203,7 +1224,7 @@ minetest.register_node('everness:frosted_snowblock', { }) -- 'is ground content = false' to avoid tunnels in sea ice or ice rivers -minetest.register_node('everness:frosted_ice', { +Everness:register_node('everness:frosted_ice', { description = S('Frosted Ice'), tiles = { 'everness_frosted_ice.png' }, is_ground_content = false, @@ -1212,7 +1233,7 @@ minetest.register_node('everness:frosted_ice', { sounds = Everness.node_sound_ice_defaults(), }) -minetest.register_node('everness:frosted_ice_translucent', { +Everness:register_node('everness:frosted_ice_translucent', { description = S('Frosted Ice Translucent'), tiles = { 'everness_frosted_ice_translucent.png' }, is_ground_content = false, @@ -1225,7 +1246,7 @@ minetest.register_node('everness:frosted_ice_translucent', { }) -- Mapgen-placed ice with 'is ground content = true' to contain tunnels -minetest.register_node('everness:frosted_cave_ice', { +Everness:register_node('everness:frosted_cave_ice', { description = S('Frosted Cave Ice'), tiles = { 'everness_frosted_ice.png' }, paramtype = 'light', @@ -1236,7 +1257,7 @@ minetest.register_node('everness:frosted_cave_ice', { }) -- Mapgen-placed ice with 'is ground content = true' to contain tunnels -minetest.register_node('everness:frosted_cave_ice_illuminating', { +Everness:register_node('everness:frosted_cave_ice_illuminating', { description = S('Frosted Cave Ice'), tiles = { 'everness_frosted_ice.png' }, paramtype = 'light', @@ -1248,7 +1269,7 @@ minetest.register_node('everness:frosted_cave_ice_illuminating', { is_ground_content = false }) -minetest.register_node('everness:bone', { +Everness:register_node('everness:bone', { description = S('Bone'), tiles = { 'everness_bone_top.png', 'everness_bone_top.png', 'everness_bone.png' }, paramtype2 = 'facedir', @@ -1258,7 +1279,7 @@ minetest.register_node('everness:bone', { on_place = minetest.rotate_node }) -minetest.register_node('everness:ancient_emerald_ice', { +Everness:register_node('everness:ancient_emerald_ice', { description = S('Ancient Emerald Ice'), tiles = { 'everness_ancient_emerald_ice.png' }, paramtype = 'light', @@ -1266,7 +1287,7 @@ minetest.register_node('everness:ancient_emerald_ice', { sounds = Everness.node_sound_ice_defaults(), }) -minetest.register_node('everness:dense_emerald_ice', { +Everness:register_node('everness:dense_emerald_ice', { description = S('Dense Emerald Ice'), tiles = { 'everness_dense_emerald_ice.png' }, paramtype = 'light', @@ -1274,7 +1295,7 @@ minetest.register_node('everness:dense_emerald_ice', { sounds = Everness.node_sound_ice_defaults(), }) -minetest.register_node('everness:emerald_ice', { +Everness:register_node('everness:emerald_ice', { description = S('Emerald Ice'), tiles = { 'everness_emerald_ice.png' }, paramtype = 'light', @@ -1282,7 +1303,7 @@ minetest.register_node('everness:emerald_ice', { sounds = Everness.node_sound_ice_defaults(), }) -minetest.register_node('everness:snowcobble', { +Everness:register_node('everness:snowcobble', { description = 'Snow Cobble', tiles = { 'everness_snowcobble.png' }, groups = { puts_out_fire = 1, cools_lava = 1, snowy = 1, cracky = 2, stone = 1 }, @@ -1297,7 +1318,7 @@ minetest.register_node('everness:snowcobble', { end, }) -minetest.register_node('everness:icecobble', { +Everness:register_node('everness:icecobble', { description = 'Ice Cobble', tiles = { 'everness_icecobble.png' }, groups = { cracky = 2, cools_lava = 1 }, @@ -1305,7 +1326,7 @@ minetest.register_node('everness:icecobble', { is_ground_content = false, }) -minetest.register_node('everness:cursed_mud', { +Everness:register_node('everness:cursed_mud', { description = S('Cursed Mud'), tiles = { 'everness_cursed_mud.png' }, drawtype = 'glasslike', @@ -1319,7 +1340,7 @@ minetest.register_node('everness:cursed_mud', { sounds = Everness.node_sound_sand_defaults() }) -minetest.register_node('everness:cobweb', { +Everness:register_node('everness:cobweb', { description = S('Cobweb'), tiles = { 'everness_cobweb.png' }, inventory_image = 'everness_cobweb.png', @@ -1331,11 +1352,11 @@ minetest.register_node('everness:cobweb', { move_resistance = 7, drowning = 2, walkable = false, - groups = { crumbly = 3, sand = 1, liquid = 3, disable_jump = 1 }, + groups = { crumbly = 3, liquid = 3, disable_jump = 1 }, sounds = Everness.node_sound_leaves_defaults() }) -minetest.register_node('everness:cave_flower', { +Everness:register_node('everness:cave_flower', { description = S('Cave Flower'), short_description = S('Cave Flower'), drawtype = 'mesh', @@ -1360,7 +1381,7 @@ minetest.register_node('everness:cave_flower', { use_texture_alpha = 'clip', }) -minetest.register_node('everness:cave_flower_with_particles', { +Everness:register_node('everness:cave_flower_with_particles', { description = S('Cave Flower with Particles'), short_description = S('Cave Flower with Particles'), drawtype = 'mesh', @@ -1398,7 +1419,7 @@ minetest.register_node('everness:cave_flower_with_particles', { use_texture_alpha = 'blend', }) -minetest.register_node('everness:forsaken_fire', { +Everness:register_node('everness:forsaken_fire', { description = S('Forsaken Fire'), short_description = S('Forsaken Fire'), drawtype = 'mesh', @@ -1437,7 +1458,7 @@ minetest.register_node('everness:forsaken_fire', { -- Trees -- -minetest.register_node('everness:coral_tree', { +Everness:register_node('everness:coral_tree', { description = S('Coral Tree Trunk'), short_description = S('Coral Tree Trunk'), tiles = { 'everness_coral_tree.png' }, @@ -1448,7 +1469,7 @@ minetest.register_node('everness:coral_tree', { on_place = minetest.rotate_node }) -minetest.register_node('everness:coral_tree_bioluminescent', { +Everness:register_node('everness:coral_tree_bioluminescent', { description = S('Coral Tree Bioluminescent'), short_description = S('Coral Tree Bioluminescent'), tiles = { 'everness_coral_mushrooms_bioluminescent.png' }, @@ -1460,7 +1481,7 @@ minetest.register_node('everness:coral_tree_bioluminescent', { light_source = 7 }) -minetest.register_node('everness:cursed_dream_stone', { +Everness:register_node('everness:cursed_dream_stone', { description = S('Cursed Dream Stone'), short_description = S('Cursed Dream Stone'), tiles = { 'everness_cursed_dream_stone.png' }, @@ -1472,7 +1493,7 @@ minetest.register_node('everness:cursed_dream_stone', { light_source = 7 }) -minetest.register_node('everness:dry_tree', { +Everness:register_node('everness:dry_tree', { description = S('Dry Tree Trunk'), short_description = S('Dry Tree Trunk'), tiles = { 'everness_dry_tree_top.png', 'everness_dry_tree_top.png', 'everness_dry_tree.png' }, @@ -1480,10 +1501,10 @@ minetest.register_node('everness:dry_tree', { is_ground_content = false, groups = { tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2 }, sounds = Everness.node_sound_wood_defaults(), - on_place = minetest.rotate_node + on_place = minetest.rotate_node, }) -minetest.register_node('everness:baobab_tree', { +Everness:register_node('everness:baobab_tree', { description = S('Baobab Tree Trunk'), short_description = S('Baobab Tree Trunk'), tiles = { 'everness_baobab_tree_top.png', 'everness_baobab_tree_top.png', 'everness_baobab_tree_side.png' }, @@ -1494,7 +1515,7 @@ minetest.register_node('everness:baobab_tree', { on_place = minetest.rotate_node }) -minetest.register_node('everness:sequoia_tree', { +Everness:register_node('everness:sequoia_tree', { description = S('Sequoia Tree Trunk'), short_description = S('Sequoia Tree Trunk'), tiles = { 'everness_sequoia_tree_top.png', 'everness_sequoia_tree_top.png', 'everness_sequoia_tree_side.png' }, @@ -1505,7 +1526,7 @@ minetest.register_node('everness:sequoia_tree', { on_place = minetest.rotate_node }) -minetest.register_node('everness:willow_tree', { +Everness:register_node('everness:willow_tree', { description = S('Willow Tree Trunk'), short_description = S('Sequoia Tree Trunk'), tiles = { 'everness_willow_tree_top.png', 'everness_willow_tree_top.png', 'everness_willow_tree_side.png' }, @@ -1516,7 +1537,7 @@ minetest.register_node('everness:willow_tree', { on_place = minetest.rotate_node }) -minetest.register_node('everness:willow_wood', { +Everness:register_node('everness:willow_wood', { description = S('Willow Wood Planks'), paramtype2 = 'facedir', place_param2 = 0, @@ -1526,7 +1547,7 @@ minetest.register_node('everness:willow_wood', { sounds = Everness.node_sound_wood_defaults(), }) -minetest.register_node('everness:dry_wood', { +Everness:register_node('everness:dry_wood', { description = S('Dry Wood Planks'), paramtype2 = 'facedir', place_param2 = 0, @@ -1536,7 +1557,7 @@ minetest.register_node('everness:dry_wood', { sounds = Everness.node_sound_wood_defaults(), }) -minetest.register_node('everness:hollow_tree', { +Everness:register_node('everness:hollow_tree', { description = S('Hollow Tree Trunk'), short_description = S('Hollow Tree Trunk'), drawtype = 'nodebox', @@ -1565,7 +1586,7 @@ minetest.register_node('everness:hollow_tree', { on_place = minetest.rotate_node }) -minetest.register_node('everness:crystal_tree', { +Everness:register_node('everness:crystal_tree', { description = S('Crystal Tree Trunk'), short_description = S('Crystal Tree Trunk'), drawtype = 'nodebox', @@ -1586,7 +1607,7 @@ minetest.register_node('everness:crystal_tree', { on_place = minetest.rotate_node, }) --- minetest.register_node('everness:mese_tree', { +-- Everness:register_node('everness:mese_tree', { -- description = S('Mese Tree Trunk'), -- short_description = S('Mese Tree Trunk'), -- tiles = { @@ -1607,7 +1628,7 @@ minetest.register_node('everness:crystal_tree', { -- on_place = minetest.rotate_node -- }) -minetest.register_node('everness:baobab_leaves', { +Everness:register_node('everness:baobab_leaves', { description = S('Baobab Tree Leaves'), short_description = S('Baobab Tree Leaves'), drawtype = 'allfaces_optional', @@ -1635,11 +1656,11 @@ minetest.register_node('everness:baobab_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:sequoia_leaves', { +Everness:register_node('everness:sequoia_leaves', { description = S('Sequoia Tree Leaves'), short_description = S('Sequoia Tree Leaves'), drawtype = 'allfaces_optional', @@ -1667,12 +1688,12 @@ minetest.register_node('everness:sequoia_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -- for marker only -minetest.register_node('everness:baobab_fruit_renewable', { +Everness:register_node('everness:baobab_fruit_renewable', { description = S('Baobab Fruit'), short_description = S('Baobab Fruit'), drawtype = 'plantlike', @@ -1710,7 +1731,7 @@ minetest.register_node('everness:baobab_fruit_renewable', { end, }) -minetest.register_node('everness:baobab_fruit_mark', { +Everness:register_node('everness:baobab_fruit_mark', { description = S('Baobab Fruit Marker'), short_description = S('Baobab Fruit Marker'), inventory_image = 'everness_baobab_tree_fruit.png^[transformFY^default_invisible_node_overlay.png', @@ -1735,7 +1756,7 @@ minetest.register_node('everness:baobab_fruit_mark', { end }) -minetest.register_node('everness:baobab_fruit', { +Everness:register_node('everness:baobab_fruit', { description = S('Baobab Fruit'), short_description = S('Baobab Fruit'), drawtype = 'plantlike', @@ -1757,7 +1778,7 @@ minetest.register_node('everness:baobab_fruit', { sounds = Everness.node_sound_leaves_defaults(), }) -minetest.register_node('everness:baobab_sapling', { +Everness:register_node('everness:baobab_sapling', { description = S('Baobab Sapling'), short_description = S('Baobab Sapling'), drawtype = 'plantlike', @@ -1791,7 +1812,7 @@ minetest.register_node('everness:baobab_sapling', { end, }) -minetest.register_node('everness:willow_leaves', { +Everness:register_node('everness:willow_leaves', { description = S('Willow Tree Leaves'), short_description = S('Willow Tree Leaves'), drawtype = 'allfaces_optional', @@ -1819,11 +1840,11 @@ minetest.register_node('everness:willow_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:coral_leaves', { +Everness:register_node('everness:coral_leaves', { description = S('Coral Tree Leaves'), short_description = S('Coral Tree Leaves'), drawtype = 'allfaces_optional', @@ -1850,11 +1871,11 @@ minetest.register_node('everness:coral_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:dry_branches', { +Everness:register_node('everness:dry_branches', { description = S('Dry Tree Branches'), short_description = S('Dry Tree Branches'), drawtype = 'allfaces_optional', @@ -1881,11 +1902,11 @@ minetest.register_node('everness:dry_branches', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:crystal_leaves', { +Everness:register_node('everness:crystal_leaves', { description = S('Crystal Tree Leaves'), short_description = S('Crystal Tree Leaves'), drawtype = 'allfaces_optional', @@ -1912,11 +1933,11 @@ minetest.register_node('everness:crystal_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:coral_tree_sapling', { +Everness:register_node('everness:coral_tree_sapling', { description = S('Coral Tree Sapling'), short_description = S('Coral Tree Sapling'), drawtype = 'plantlike', @@ -1950,7 +1971,7 @@ minetest.register_node('everness:coral_tree_sapling', { end, }) -minetest.register_node('everness:coral_tree_bioluminescent_sapling', { +Everness:register_node('everness:coral_tree_bioluminescent_sapling', { description = S('Coral Tree Bioluminescent Sapling'), short_description = S('Coral Tree Bioluminescent Sapling'), drawtype = 'plantlike', @@ -1984,7 +2005,7 @@ minetest.register_node('everness:coral_tree_bioluminescent_sapling', { end, }) -minetest.register_node('everness:dry_tree_sapling', { +Everness:register_node('everness:dry_tree_sapling', { description = S('Dry Tree Sapling'), short_description = S('Dry Tree Sapling'), drawtype = 'plantlike', @@ -2018,7 +2039,7 @@ minetest.register_node('everness:dry_tree_sapling', { end, }) -minetest.register_node('everness:cursed_dream_tree_sapling', { +Everness:register_node('everness:cursed_dream_tree_sapling', { description = S('Cursed Dream Tree Sapling'), short_description = S('Cursed Dream Tree Sapling'), drawtype = 'plantlike', @@ -2052,7 +2073,7 @@ minetest.register_node('everness:cursed_dream_tree_sapling', { end, }) -minetest.register_node('everness:willow_tree_sapling', { +Everness:register_node('everness:willow_tree_sapling', { description = S('Dry Tree Sapling'), short_description = S('Dry Tree Sapling'), drawtype = 'plantlike', @@ -2086,7 +2107,7 @@ minetest.register_node('everness:willow_tree_sapling', { end, }) -minetest.register_node('everness:sequoia_tree_sapling', { +Everness:register_node('everness:sequoia_tree_sapling', { description = S('Sequoia Tree Sapling'), short_description = S('Sequoia Tree Sapling'), drawtype = 'plantlike', @@ -2122,7 +2143,7 @@ minetest.register_node('everness:sequoia_tree_sapling', { end, }) -minetest.register_node('everness:crystal_tree_sapling', { +Everness:register_node('everness:crystal_tree_sapling', { description = S('Crystal Tree Sapling'), short_description = S('Crystal Tree Sapling'), drawtype = 'plantlike', @@ -2156,7 +2177,7 @@ minetest.register_node('everness:crystal_tree_sapling', { end, }) -minetest.register_node('everness:crystal_tree_large_sapling', { +Everness:register_node('everness:crystal_tree_large_sapling', { description = S('Crystal Tree Large Sapling'), short_description = S('Crystal Tree Large Sapling'), drawtype = 'plantlike', @@ -2192,7 +2213,7 @@ minetest.register_node('everness:crystal_tree_large_sapling', { -- Crystal Bush -minetest.register_node('everness:crystal_bush_stem', { +Everness:register_node('everness:crystal_bush_stem', { description = S('Crystal Bush Stem'), drawtype = 'plantlike', visual_scale = 1.41, @@ -2209,7 +2230,7 @@ minetest.register_node('everness:crystal_bush_stem', { }, }) -minetest.register_node('everness:crystal_bush_leaves', { +Everness:register_node('everness:crystal_bush_leaves', { description = S('Crystal Bush Leaves'), drawtype = 'allfaces_optional', tiles = { 'everness_crystal_bush_leaves.png' }, @@ -2224,11 +2245,11 @@ minetest.register_node('everness:crystal_bush_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:crystal_bush_sapling', { +Everness:register_node('everness:crystal_bush_sapling', { description = S('Crystal Bush Sapling'), drawtype = 'plantlike', tiles = { 'everness_crystal_bush_sapling.png' }, @@ -2266,7 +2287,7 @@ minetest.register_node('everness:crystal_bush_sapling', { -- Cursed Bush -minetest.register_node('everness:cursed_bush_stem', { +Everness:register_node('everness:cursed_bush_stem', { description = S('Cursed Bush Stem'), drawtype = 'plantlike', visual_scale = 1.21, @@ -2283,7 +2304,7 @@ minetest.register_node('everness:cursed_bush_stem', { }, }) -minetest.register_node('everness:cursed_bush_leaves', { +Everness:register_node('everness:cursed_bush_leaves', { description = S('Cursed Bush Leaves'), drawtype = 'allfaces_optional', tiles = { 'everness_cursed_bush_leaves.png' }, @@ -2298,11 +2319,11 @@ minetest.register_node('everness:cursed_bush_leaves', { }, sounds = Everness.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack, pointed_thing) - return Everness:leaves_after_place_node(pos, placer, itemstack, pointed_thing) + return Everness:after_place_leaves(pos, placer, itemstack, pointed_thing) end }) -minetest.register_node('everness:cursed_bush_sapling', { +Everness:register_node('everness:cursed_bush_sapling', { description = S('Cursed Bush Sapling'), drawtype = 'plantlike', tiles = { 'everness_cursed_bush_sapling.png' }, @@ -2342,7 +2363,7 @@ minetest.register_node('everness:cursed_bush_sapling', { -- Plantlife (non-cubic) -- -minetest.register_node('everness:coral_burdock_1', { +Everness:register_node('everness:coral_burdock_1', { description = S('Coral Burdock'), short_description = S('Coral Burdock'), drawtype = 'plantlike', @@ -2371,7 +2392,7 @@ minetest.register_node('everness:coral_burdock_1', { end, }) -minetest.register_node('everness:coral_burdock_2', { +Everness:register_node('everness:coral_burdock_2', { description = S('Coral Burdock'), short_description = S('Coral Burdock'), drawtype = 'plantlike', @@ -2395,7 +2416,7 @@ minetest.register_node('everness:coral_burdock_2', { drop = 'everness:coral_burdock_1', }) -minetest.register_node('everness:coral_bush', { +Everness:register_node('everness:coral_bush', { description = S('Coral Bush'), short_description = S('Coral Bush'), drawtype = 'plantlike', @@ -2417,7 +2438,7 @@ minetest.register_node('everness:coral_bush', { } }) -minetest.register_node('everness:coral_shrub', { +Everness:register_node('everness:coral_shrub', { description = S('Coral Shrub'), short_description = S('Coral Shrub'), drawtype = 'plantlike', @@ -2439,7 +2460,7 @@ minetest.register_node('everness:coral_shrub', { }, }) -minetest.register_node('everness:coral_grass_orange', { +Everness:register_node('everness:coral_grass_orange', { description = S('Orange Coral Grass'), short_description = S('Orange Coral Grass'), drawtype = 'plantlike', @@ -2460,7 +2481,7 @@ minetest.register_node('everness:coral_grass_orange', { light_source = 6 }) -minetest.register_node('everness:globulagus', { +Everness:register_node('everness:globulagus', { description = S('Globulagus'), short_description = S('Globulagus'), drawtype = 'plantlike', @@ -2481,7 +2502,7 @@ minetest.register_node('everness:globulagus', { light_source = 7 }) -minetest.register_node('everness:coral_grass_tall', { +Everness:register_node('everness:coral_grass_tall', { description = S('Tall Coral Grass'), short_description = S('Tall Coral Grass'), drawtype = 'plantlike', @@ -2503,7 +2524,7 @@ minetest.register_node('everness:coral_grass_tall', { light_source = 7 }) -minetest.register_node('everness:crystal_purple', { +Everness:register_node('everness:crystal_purple', { description = S('Purple Crystal'), short_description = S('Purple Crystal'), drawtype = 'plantlike', @@ -2524,7 +2545,7 @@ minetest.register_node('everness:crystal_purple', { }, }) -minetest.register_node('everness:crystal_orange', { +Everness:register_node('everness:crystal_orange', { description = S('Orange Crystal'), short_description = S('Orange Crystal'), drawtype = 'plantlike', @@ -2545,7 +2566,7 @@ minetest.register_node('everness:crystal_orange', { }, }) -minetest.register_node('everness:crystal_cyan', { +Everness:register_node('everness:crystal_cyan', { description = S('Cyan Crystal'), short_description = S('Cyan Crystal'), drawtype = 'plantlike', @@ -2566,7 +2587,7 @@ minetest.register_node('everness:crystal_cyan', { }, }) -minetest.register_node('everness:coral_plant_bioluminescent', { +Everness:register_node('everness:coral_plant_bioluminescent', { description = S('Coral Plant Bioluminescent'), short_description = S('Coral Plant Bioluminescent'), drawtype = 'plantlike', @@ -2585,7 +2606,7 @@ minetest.register_node('everness:coral_plant_bioluminescent', { light_source = 9 }) -minetest.register_node('everness:blooming_cooksonia', { +Everness:register_node('everness:blooming_cooksonia', { description = S('Blooming Cooksonia'), short_description = S('Blooming Cooksonia'), drawtype = 'plantlike', @@ -2605,7 +2626,7 @@ minetest.register_node('everness:blooming_cooksonia', { light_source = 9 }) -minetest.register_node('everness:creeping_moss_spores', { +Everness:register_node('everness:creeping_moss_spores', { description = S('Creeping Moss Spores'), short_description = S('Creeping Moss Spores'), drawtype = 'plantlike', @@ -2625,7 +2646,7 @@ minetest.register_node('everness:creeping_moss_spores', { light_source = 9 }) -minetest.register_node('everness:frosted_icicle', { +Everness:register_node('everness:frosted_icicle', { description = S('Frosted Icicle'), short_description = S('Frosted Icicle'), drawtype = 'plantlike', @@ -2645,7 +2666,7 @@ minetest.register_node('everness:frosted_icicle', { light_source = 9 }) -minetest.register_node('everness:frosted_icicle_floor', { +Everness:register_node('everness:frosted_icicle_floor', { description = S('Frosted Icicle Floor'), short_description = S('Frosted Icicle Floor'), drawtype = 'plantlike', @@ -2673,7 +2694,7 @@ minetest.register_node('everness:frosted_icicle_floor', { }, }) -minetest.register_node('everness:coral_grass_1', { +Everness:register_node('everness:coral_grass_1', { description = S('Coral Grass'), drawtype = 'plantlike', waving = 1, @@ -2702,7 +2723,7 @@ minetest.register_node('everness:coral_grass_1', { }) for i = 2, 5 do - minetest.register_node('everness:coral_grass_' .. i, { + Everness:register_node('everness:coral_grass_' .. i, { description = S('Coral Grass'), drawtype = 'plantlike', waving = 1, @@ -2732,7 +2753,7 @@ for i = 2, 5 do }) end -minetest.register_node('everness:red_castor_1', { +Everness:register_node('everness:red_castor_1', { description = S('Red Castor'), drawtype = 'plantlike', waving = 1, @@ -2762,7 +2783,7 @@ minetest.register_node('everness:red_castor_1', { }) for i = 2, 4 do - minetest.register_node('everness:red_castor_' .. i, { + Everness:register_node('everness:red_castor_' .. i, { description = S('Red Castor'), drawtype = 'plantlike', waving = 1, @@ -2793,7 +2814,7 @@ for i = 2, 4 do }) end -minetest.register_node('everness:crystal_mushrooms', { +Everness:register_node('everness:crystal_mushrooms', { description = S('Crystal Mushrooms'), tiles = { 'everness_crystal_mushrooms.png' }, inventory_image = 'everness_crystal_mushrooms.png', @@ -2813,7 +2834,7 @@ minetest.register_node('everness:crystal_mushrooms', { light_source = 3, }) -minetest.register_node('everness:twisted_crystal_grass', { +Everness:register_node('everness:twisted_crystal_grass', { description = S('Twisted Crystal Grass'), short_description = S('Twisted Crystal Grass'), drawtype = 'plantlike', @@ -2834,7 +2855,7 @@ minetest.register_node('everness:twisted_crystal_grass', { waving = 1 }) -minetest.register_node('everness:crystal_grass_1', { +Everness:register_node('everness:crystal_grass_1', { description = S('Crystal Grass'), drawtype = 'plantlike', tiles = { 'everness_crystal_grass_1.png' }, @@ -2862,7 +2883,7 @@ minetest.register_node('everness:crystal_grass_1', { }) for i = 2, 3 do - minetest.register_node('everness:crystal_grass_' .. i, { + Everness:register_node('everness:crystal_grass_' .. i, { description = S('Coral Grass'), drawtype = 'plantlike', tiles = { 'everness_crystal_grass_' .. i .. '.png' }, @@ -2891,7 +2912,7 @@ for i = 2, 3 do }) end -minetest.register_node('everness:marsh_grass', { +Everness:register_node('everness:marsh_grass', { description = S('Marsh Grass'), drawtype = 'plantlike', waving = 1, @@ -2913,7 +2934,7 @@ minetest.register_node('everness:marsh_grass', { -- Forsaken desert plants -minetest.register_node('everness:forsaken_desert_plant_1', { +Everness:register_node('everness:forsaken_desert_plant_1', { description = S('Forsaken Plant'), short_description = S('Forsaken Plant'), drawtype = 'plantlike', @@ -2935,7 +2956,7 @@ minetest.register_node('everness:forsaken_desert_plant_1', { }, }) -minetest.register_node('everness:forsaken_desert_plant_2', { +Everness:register_node('everness:forsaken_desert_plant_2', { description = S('Forsaken Plant'), short_description = S('Forsaken Plant'), drawtype = 'plantlike', @@ -2957,7 +2978,7 @@ minetest.register_node('everness:forsaken_desert_plant_2', { }, }) -minetest.register_node('everness:forsaken_desert_plant_3', { +Everness:register_node('everness:forsaken_desert_plant_3', { description = S('Forsaken Plant'), short_description = S('Forsaken Plant'), drawtype = 'plantlike', @@ -2979,7 +3000,7 @@ minetest.register_node('everness:forsaken_desert_plant_3', { }, }) -minetest.register_node('everness:cactus_blue', { +Everness:register_node('everness:cactus_blue', { description = S('Blue Cactus'), tiles = { 'everness_cactus_blue_top.png', @@ -3017,7 +3038,7 @@ minetest.register_node('everness:cactus_blue', { on_place = minetest.rotate_node, }) -minetest.register_node('everness:cave_barrel_cactus', { +Everness:register_node('everness:cave_barrel_cactus', { description = S('Cave Barrel Cactus'), paramtype = 'light', light_source = 7, @@ -3033,7 +3054,7 @@ minetest.register_node('everness:cave_barrel_cactus', { sounds = Everness.node_sound_wood_defaults() }) -minetest.register_node('everness:venus_trap', { +Everness:register_node('everness:venus_trap', { description = S('Venus Trap Plant'), paramtype = 'light', paramtype2 = 'facedir', @@ -3050,7 +3071,7 @@ minetest.register_node('everness:venus_trap', { sounds = Everness.node_sound_leaves_defaults() }) -minetest.register_node('everness:illumi_root', { +Everness:register_node('everness:illumi_root', { description = S('Illumi Root'), short_description = S('Illumi Root'), drawtype = 'plantlike', @@ -3073,7 +3094,7 @@ minetest.register_node('everness:illumi_root', { }, }) -minetest.register_node('everness:crystal_waterlily', { +Everness:register_node('everness:crystal_waterlily', { description = S('Crystal Waterlily'), drawtype = 'nodebox', paramtype = 'light', @@ -3142,7 +3163,7 @@ minetest.register_node('everness:crystal_waterlily', { -- Forsaken Tundra Plants -minetest.register_node('everness:cactus_orange', { +Everness:register_node('everness:cactus_orange', { description = S('Orange Cactus'), tiles = { 'everness_cactus_top.png', @@ -3180,7 +3201,7 @@ minetest.register_node('everness:cactus_orange', { on_place = minetest.rotate_node, }) -minetest.register_node('everness:agave_leaf_1', { +Everness:register_node('everness:agave_leaf_1', { description = S('Agave Leaf'), drawtype = 'plantlike', waving = 1, @@ -3209,7 +3230,7 @@ minetest.register_node('everness:agave_leaf_1', { }) for i = 2, 3 do - minetest.register_node('everness:agave_leaf_' .. i, { + Everness:register_node('everness:agave_leaf_' .. i, { description = S('Agave Leaf'), drawtype = 'plantlike', waving = 1, @@ -3241,7 +3262,7 @@ end -- Cursed Lands Plants -minetest.register_node('everness:egg_plant', { +Everness:register_node('everness:egg_plant', { description = S('Egg plant'), drawtype = 'nodebox', tiles = { @@ -3275,7 +3296,7 @@ minetest.register_node('everness:egg_plant', { move_resistance = 7, }) -minetest.register_node('everness:ivis_moss', { +Everness:register_node('everness:ivis_moss', { description = S('Ivis Moss'), drawtype = 'plantlike', waving = 1, @@ -3297,7 +3318,7 @@ minetest.register_node('everness:ivis_moss', { place_param2 = 3 }) -minetest.register_node('everness:ngrass_1', { +Everness:register_node('everness:ngrass_1', { description = S('Ngrass'), drawtype = 'plantlike', waving = 1, @@ -3317,7 +3338,7 @@ minetest.register_node('everness:ngrass_1', { light_source = 5, }) -minetest.register_node('everness:ngrass_2', { +Everness:register_node('everness:ngrass_2', { description = S('Ngrass'), drawtype = 'plantlike', waving = 1, @@ -3340,7 +3361,7 @@ minetest.register_node('everness:ngrass_2', { -- Bamboo -- small bamboo -minetest.register_node('everness:bamboo_1', { +Everness:register_node('everness:bamboo_1', { description = S('Bamboo'), -- +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -3407,7 +3428,7 @@ minetest.register_node('everness:bamboo_1', { end, }) -minetest.register_node('everness:bamboo_2', { +Everness:register_node('everness:bamboo_2', { description = S('Bamboo'), -- +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -3476,7 +3497,7 @@ minetest.register_node('everness:bamboo_2', { -- large bamboo -minetest.register_node('everness:bamboo_3', { +Everness:register_node('everness:bamboo_3', { description = S('Bamboo'), -- +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -3539,7 +3560,7 @@ minetest.register_node('everness:bamboo_3', { end, }) -minetest.register_node('everness:bamboo_4', { +Everness:register_node('everness:bamboo_4', { description = S('Bamboo'), -- +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -3602,7 +3623,7 @@ minetest.register_node('everness:bamboo_4', { end, }) -minetest.register_node('everness:bamboo_5', { +Everness:register_node('everness:bamboo_5', { description = S('Bamboo'), -- +Y, -Y, +X, -X, +Z, -Z tiles = { @@ -3665,7 +3686,7 @@ minetest.register_node('everness:bamboo_5', { end, }) -minetest.register_node('everness:bamboo_sprout', { +Everness:register_node('everness:bamboo_sprout', { description = S('Bamboo Sprout'), tiles = { 'everness_bamboo_sprout.png' }, inventory_image = 'everness_bamboo_sprout.png', @@ -3695,7 +3716,7 @@ minetest.register_node('everness:bamboo_sprout', { -- Forsaken Tundra Plants -minetest.register_node('everness:bloodspore_plant', { +Everness:register_node('everness:bloodspore_plant', { description = S('Blood Spoore Plant'), short_description = S('Blood Spoore Plant'), drawtype = 'plantlike', @@ -3714,7 +3735,7 @@ minetest.register_node('everness:bloodspore_plant', { light_source = 7 }) -minetest.register_node('everness:bloodspore_plant_small', { +Everness:register_node('everness:bloodspore_plant_small', { description = S('Blood Spoore Plant Small'), short_description = S('Blood Spoore Plant Small'), drawtype = 'plantlike', @@ -3733,7 +3754,7 @@ minetest.register_node('everness:bloodspore_plant_small', { light_source = 7 }) -minetest.register_node('everness:termite_block', { +Everness:register_node('everness:termite_block', { description = S('Termite Block'), tiles = { 'everness_termite_block.png' }, drawtype = 'glasslike', @@ -3748,7 +3769,7 @@ minetest.register_node('everness:termite_block', { sounds = Everness.node_sound_dirt_defaults(), }) -minetest.register_node('everness:bamboo_block', { +Everness:register_node('everness:bamboo_block', { description = S('Bamboo Block'), tiles = { 'everness_bamboo_block_top.png', @@ -3763,7 +3784,7 @@ minetest.register_node('everness:bamboo_block', { on_place = minetest.rotate_node, }) -minetest.register_node('everness:bamboo_dry_block', { +Everness:register_node('everness:bamboo_dry_block', { description = S('Bamboo Block'), tiles = { 'everness_dry_bamboo_block_top.png', @@ -3778,7 +3799,7 @@ minetest.register_node('everness:bamboo_dry_block', { on_place = minetest.rotate_node, }) -minetest.register_node('everness:bamboo_wood', { +Everness:register_node('everness:bamboo_wood', { description = S('Bamboo Planks'), paramtype2 = 'facedir', place_param2 = 0, @@ -3788,7 +3809,7 @@ minetest.register_node('everness:bamboo_wood', { sounds = Everness.node_sound_wood_defaults(), }) -minetest.register_node('everness:bamboo_mosaic_wood', { +Everness:register_node('everness:bamboo_mosaic_wood', { description = S('Bamboo Mosaic'), paramtype2 = 'facedir', place_param2 = 0, @@ -3798,7 +3819,7 @@ minetest.register_node('everness:bamboo_mosaic_wood', { sounds = Everness.node_sound_wood_defaults(), }) -minetest.register_node('everness:baobab_wood', { +Everness:register_node('everness:baobab_wood', { description = S('Baobab Wood Planks'), paramtype2 = 'facedir', place_param2 = 0, @@ -3808,7 +3829,7 @@ minetest.register_node('everness:baobab_wood', { sounds = Everness.node_sound_wood_defaults(), }) -minetest.register_node('everness:sequoia_wood', { +Everness:register_node('everness:sequoia_wood', { description = S('Sequoia Wood Planks'), paramtype2 = 'facedir', place_param2 = 0, @@ -3870,7 +3891,7 @@ local function coral_on_place(itemstack, placer, pointed_thing, params) return itemstack end -minetest.register_node('everness:coral_corals', { +Everness:register_node('everness:coral_corals', { description = S('Coral Corals'), drawtype = 'plantlike_rooted', waving = 1, @@ -3899,7 +3920,7 @@ minetest.register_node('everness:coral_corals', { end, }) -minetest.register_node('everness:coral_jellyfish', { +Everness:register_node('everness:coral_jellyfish', { description = S('Coral Corals'), drawtype = 'plantlike_rooted', waving = 1, @@ -3928,7 +3949,7 @@ minetest.register_node('everness:coral_jellyfish', { end, }) -minetest.register_node('everness:coral_frosted', { +Everness:register_node('everness:coral_frosted', { description = S('Coral Frosted'), drawtype = 'plantlike_rooted', waving = 1, @@ -3957,7 +3978,7 @@ minetest.register_node('everness:coral_frosted', { end, }) -minetest.register_node('everness:coral_starfish', { +Everness:register_node('everness:coral_starfish', { description = S('Coral Starfish'), drawtype = 'plantlike_rooted', waving = 1, @@ -3986,7 +4007,7 @@ minetest.register_node('everness:coral_starfish', { end, }) -minetest.register_node('everness:sand_with_spine_kelp', { +Everness:register_node('everness:sand_with_spine_kelp', { description = S('Spine Kelp'), drawtype = 'plantlike_rooted', waving = 1, @@ -4057,7 +4078,7 @@ minetest.register_node('everness:sand_with_spine_kelp', { end }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_1', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_1', { description = S('Coral Bulbs'), drawtype = 'plantlike_rooted', waving = 1, @@ -4097,7 +4118,7 @@ minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_1', { end, }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_2', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_2', { description = S('Coral Tree'), drawtype = 'plantlike_rooted', waving = 1, @@ -4137,7 +4158,7 @@ minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_2', { end, }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_3', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_plant_3', { description = S('Coral Palm'), drawtype = 'plantlike_rooted', waving = 1, @@ -4177,7 +4198,7 @@ minetest.register_node('everness:coral_forest_deep_ocean_coral_plant_3', { end, }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_anemone', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_anemone', { description = S('Coral Anemone'), drawtype = 'plantlike_rooted', waving = 1, @@ -4217,7 +4238,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_anemone', { end, }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_darkilluma', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_darkilluma', { description = S('Coral Darkilluma'), drawtype = 'plantlike_rooted', waving = 1, @@ -4257,7 +4278,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_darkilluma' end, }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_demon', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_plant_demon', { description = S('Coral Demon'), drawtype = 'plantlike_rooted', waving = 1, @@ -4297,7 +4318,7 @@ minetest.register_node('everness:cursed_lands_deep_ocean_coral_plant_demon', { end, }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_1', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_1', { description = S('Crystal Forest Deep Ocean Coral Plant Cyan'), drawtype = 'plantlike_rooted', waving = 1, @@ -4337,7 +4358,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_1', { end, }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_2', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_2', { description = S('Crystal Forest Deep Ocean Coral Plant Orange'), drawtype = 'plantlike_rooted', waving = 1, @@ -4377,7 +4398,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_2', { end, }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_3', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_plant_3', { description = S('Crystal Forest Deep Ocean Coral Plant Pink'), drawtype = 'plantlike_rooted', waving = 1, @@ -4417,84 +4438,84 @@ minetest.register_node('everness:crystal_forest_deep_ocean_coral_plant_3', { end, }) -minetest.register_node('everness:crystal_coral_dark', { +Everness:register_node('everness:crystal_coral_dark', { description = S('Crystal Coral Dark'), tiles = { 'everness_crystal_coral_dark_block.png' }, groups = { cracky = 3 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_coral_light', { +Everness:register_node('everness:crystal_coral_light', { description = S('Crystal Coral Light'), tiles = { 'everness_crystal_coral_light_block.png' }, groups = { cracky = 3 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_1', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_1', { description = S('Coral Forest Deep Ocean Coral Pink'), tiles = { 'everness_deep_ocean_coral_1.png' }, groups = { cracky = 3, everness_coral_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_2', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_2', { description = S('Coral Forest Deep Ocean Coral Cyan'), tiles = { 'everness_deep_ocean_coral_2.png' }, groups = { cracky = 3, everness_coral_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_3', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_3', { description = S('Coral Forest Deep Ocean Coral Green'), tiles = { 'everness_deep_ocean_coral_3.png' }, groups = { cracky = 3, everness_coral_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:coral_forest_deep_ocean_coral_4', { +Everness:register_node('everness:coral_forest_deep_ocean_coral_4', { description = S('Coral Forest Deep Ocean Coral Red'), tiles = { 'everness_deep_ocean_coral_4.png' }, groups = { cracky = 3, everness_coral_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_alcyonacea', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_alcyonacea', { description = S('Coral Alcyonacea'), tiles = { 'everness_cursed_lands_deep_ocean_coral_alcyonacea.png' }, groups = { cracky = 3, everness_cursed_lands_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_ostracod', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_ostracod', { description = S('Coral Ostracod'), tiles = { 'everness_cursed_lands_deep_ocean_coral_ostracod.png' }, groups = { cracky = 3, everness_cursed_lands_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:cursed_lands_deep_ocean_coral_octocurse', { +Everness:register_node('everness:cursed_lands_deep_ocean_coral_octocurse', { description = S('Coral Octocurse'), tiles = { 'everness_cursed_lands_deep_ocean_coral_octocurse.png' }, groups = { cracky = 3, everness_cursed_lands_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_1', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_1', { description = S('Crystal Forest Deep Ocean Coral Green'), tiles = { 'everness_crystal_forest_deep_ocean_coral_1.png' }, groups = { cracky = 3, everness_crystal_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_2', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_2', { description = S('Crystal Forest Deep Ocean Coral Orange'), tiles = { 'everness_crystal_forest_deep_ocean_coral_2.png' }, groups = { cracky = 3, everness_crystal_forest_deep_ocean_coral = 1 }, sounds = Everness.node_sound_stone_defaults(), }) -minetest.register_node('everness:crystal_forest_deep_ocean_coral_3', { +Everness:register_node('everness:crystal_forest_deep_ocean_coral_3', { description = S('Crystal Forest Deep Ocean Coral Cyan'), tiles = { 'everness_crystal_forest_deep_ocean_coral_3.png' }, groups = { cracky = 3, everness_crystal_forest_deep_ocean_coral = 1 }, @@ -4507,7 +4528,7 @@ minetest.register_node('everness:crystal_forest_deep_ocean_coral_3', { -- Skull with candle -minetest.register_node('everness:skull_with_candle', { +Everness:register_node('everness:skull_with_candle', { description = S('Skull with Candle'), short_description = S('Skull with Candle'), drawtype = 'mesh', @@ -4548,7 +4569,7 @@ minetest.register_node('everness:skull_with_candle', { -- Forsythia Bush -minetest.register_node('everness:forsythia_bush', { +Everness:register_node('everness:forsythia_bush', { description = S('Forsythia Bush'), short_description = S('Forsythia Bush'), drawtype = 'mesh', @@ -4567,7 +4588,7 @@ minetest.register_node('everness:forsythia_bush', { -- Glowing Pillar -minetest.register_node('everness:glowing_pillar', { +Everness:register_node('everness:glowing_pillar', { description = S('Glowing Pillar'), short_description = S('Glowing Pillar'), drawtype = 'mesh', @@ -4597,7 +4618,7 @@ minetest.register_node('everness:glowing_pillar', { -- Blue Vine Lantern -minetest.register_node('everness:blue_vine_lantern', { +Everness:register_node('everness:blue_vine_lantern', { description = S('Blue Vine Lantern'), short_description = S('Blue Vine Lantern'), drawtype = 'mesh', @@ -4627,7 +4648,7 @@ minetest.register_node('everness:blue_vine_lantern', { -- Amaranita Lantern -minetest.register_node('everness:amaranita_lantern', { +Everness:register_node('everness:amaranita_lantern', { description = S('Amaranita Lantern'), short_description = S('Amaranita Lantern'), drawtype = 'mesh', @@ -4655,7 +4676,7 @@ minetest.register_node('everness:amaranita_lantern', { light_source = 12, }) -minetest.register_node('everness:lumecorn', { +Everness:register_node('everness:lumecorn', { description = S('Lumecorn'), short_description = S('Lumecorn'), drawtype = 'mesh', @@ -4693,7 +4714,7 @@ minetest.register_node('everness:lumecorn', { -- Tools / 'Advanced' crafting / Non-'natural' -- -minetest.register_node('everness:tinted_glass_red', { +Everness:register_node('everness:tinted_glass_red', { description = S('Tinted Glass Red'), drawtype = 'glasslike_framed_optional', tiles = { 'everness_tinted_glass_base.png^[colorize:#3A0907:122' }, @@ -4724,7 +4745,7 @@ minetest.register_lbm({ end, }) -minetest.register_node('everness:pyrite_lantern', { +Everness:register_node('everness:pyrite_lantern', { description = S('Pyrite Lantern'), drawtype = 'glasslike', tiles = { 'everness_pyrite_lantern.png' }, @@ -4736,7 +4757,7 @@ minetest.register_node('everness:pyrite_lantern', { light_source = 12, }) -minetest.register_node('everness:pyrite_glass', { +Everness:register_node('everness:pyrite_glass', { description = S('Pyrite Glass'), drawtype = 'glasslike_framed_optional', tiles = { 'everness_pyrite_glass.png', 'default_obsidian_glass_detail.png' }, @@ -4748,7 +4769,7 @@ minetest.register_node('everness:pyrite_glass', { sounds = Everness.node_sound_glass_defaults(), }) -minetest.register_node('everness:lumabus_vine_lantern', { +Everness:register_node('everness:lumabus_vine_lantern', { description = S('Lumabus Vine Lantern'), drawtype = 'mesh', mesh = 'everness_lumabus.obj', @@ -4773,7 +4794,7 @@ minetest.register_node('everness:lumabus_vine_lantern', { }, }) -minetest.register_node('everness:eye_vine_lantern', { +Everness:register_node('everness:eye_vine_lantern', { description = S('Eye Vine Lantern'), paramtype = 'light', tiles = { @@ -4791,7 +4812,7 @@ minetest.register_node('everness:eye_vine_lantern', { on_place = minetest.rotate_node, }) -minetest.register_node('everness:cursed_pumpkin_lantern', { +Everness:register_node('everness:cursed_pumpkin_lantern', { description = S('Cursed Pumpkin Lantern'), short_description = S('Cursed Pumpkin Lantern'), tiles = { @@ -4810,7 +4831,7 @@ minetest.register_node('everness:cursed_pumpkin_lantern', { groups = { snappy = 3, flammable = 4, fall_damage_add_percent = -30 } }) -minetest.register_node('everness:floating_crystal', { +Everness:register_node('everness:floating_crystal', { description = S('Floating Crystal'), drawtype = 'plantlike', tiles = { @@ -4916,7 +4937,7 @@ minetest.register_node('everness:floating_crystal', { end }) -minetest.register_node('everness:coral_forest_deep_ocean_lantern', { +Everness:register_node('everness:coral_forest_deep_ocean_lantern', { description = S('Coral Forest Deep Ocean Lantern'), tiles = { { diff --git a/tools.lua b/tools.lua index 326e239..cb52367 100644 --- a/tools.lua +++ b/tools.lua @@ -32,6 +32,13 @@ minetest.register_tool('everness:vine_shears', { wool = { times = { [3] = 0.2 }, uses = 30, maxlevel = 3 } } }, + -- MCL + _mcl_toollike_wield = true, + _mcl_diggroups = { + shearsy = { speed = 1.5, level = 1, uses = 238 }, + shearsy_wool = { speed = 5, level = 1, uses = 238 }, + shearsy_cobweb = { speed = 15, level = 1, uses = 238 } + }, }) minetest.register_tool('everness:pick_illuminating', { @@ -123,7 +130,12 @@ minetest.register_tool('everness:pick_illuminating', { end return itemstack - end + end, + -- MCL + _mcl_toollike_wield = true, + _mcl_diggroups = { + pickaxey = { speed = 8, level = 5, uses = 1562 } + }, }) minetest.register_tool('everness:shovel_silk', { @@ -144,6 +156,11 @@ minetest.register_tool('everness:shovel_silk', { }, -- no `shovel` group so it cannot be enchanted -- groups = { shovel = 1 } + -- MCL + _mcl_toollike_wield = true, + _mcl_diggroups = { + shovely = { speed = 8, level = 5, uses = 1562 } + }, }) local old_handle_node_drops = minetest.handle_node_drops @@ -191,5 +208,7 @@ minetest.register_tool('everness:shell_of_underwater_breathing', { end, on_secondary_use = function(itemstack, user, pointed_thing) return Everness:use_shell_of_underwater_breathing(itemstack, user, pointed_thing) - end + end, + -- MCL + _mcl_toollike_wield = true, })