commit 55731c37cbab2b63ece48b225cf731977fcb159b Author: LNJ Date: Mon Aug 29 23:48:23 2016 +0200 Initial Commit; v0.01 diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..9aaf1ef --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,137 @@ +AF8 - The game without a name! +Version 0.01, Alpha + +License of source code: +----------------------- +Copyright (C) 2016 LNJ +and contributors (see source file comments and the version control log) + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + +License of media (textures, sounds, meshes): +-------------------------------------------- +You can redistribute and or modify the media of this program under the terms of +the Creative Commons Attribution-ShareAlike 3.0 Unported Public License. + +You should have received a copy of the Creative Commons +Attribution-ShareAlike 3.0 Unported License along with this program; if not, +write to Creative Commons, PO Box 1866, Mountain View, CA 94042 or see +https://creativecommons.org/licenses/by-sa/3.0/ + + +Authors of media (textures, sounds, meshes): +-------------------------------------------- +asl97: + mods/material/textures/material_ice.png + +BlockMen: + mods/game/textures/bubble.png + mods/game/textures/heart.png + mods/material/textures/material_charcoal.png + mods/material/textures/material_clay_brick.png + mods/material/textures/material_diamond.png + mods/material/textures/material_diamond_block.png + mods/material/textures/material_dry_dirt.png + mods/material/textures/material_gold_ingot.png + mods/material/textures/material_grass.png + mods/material/textures/material_grass_side.png + mods/material/textures/material_steel_ingot.png + mods/material/textures/material_lava_flowing_animated.png + mods/material/textures/material_lava_source_animated.png + mods/material/textures/material_mineral_mese.png + mods/material/textures/material_sand.png + mods/material/textures/material_snow.png, based on texture of Splizard (CC BY-SA 3.0) + mods/material/textures/material_snow_side.png + mods/material/textures/material_snowball.png + +brunob.santos: + mods/material/textures/material_desert_cobble.png + +Calinou: + mods/material/textures/material_brick.png + mods/material/textures/material_mineral_copper.png + +celeron55: + mods/game/textures/crack_anylength.png + mods/game/textures/wieldhand.png + +Cisoun: + mods/material/textures/material_lava.png + mods/material/textures/material_stone.png + mods/material/textures/material_water.png + +fridolin: + mods/material/textures/material_mineral_salt.png + mods/material/textures/material_salt.png + mods/material/textures/material_salt_block.png + +Gambit: + mods/material/textures/material_bronze_ingot.png + mods/material/textures/material_copper_ingot.png + mods/material/textures/material_copper_lump.png + mods/material/textures/material_iron_lump.png + mods/material/textures/material_gold_lump.png + mods/material/textures/material_clay_lump.png + mods/material/textures/material_coal_lump.png + mods/material/textures/material_flint.png + +InfinityProject: + mods/material/textures/material_diamond.png + +JBB: + mods/material/textures/material_bonemeal.png + +jojoa1997: + mods/material/textures/material_obsidian.png + +Jordach: + mods/game/textures/player.png + mods/game/textures/player_back.png + +LNJ: + mods/material/textures/material_bone.png + +Neuromancer: + mods/material/textures/material_cobble.png, based on texture by Brane praefect + mods/material/textures/material_mossycobble.png, based on texture by Brane praefect + mods/material/textures/material_dirt.png + +paramat: + mods/material/textures/material_sandstone_brick.png + mods/material/textures/material_obsidian_brick.png + mods/material/textures/material_dry_grass.png + mods/material/textures/material_dry_grass_side.png + mods/material/textures/material_stone_brick.png, derived from a texture by Cisoun (WTFPL) + mods/material/textures/material_desert_stone_brick.png, derived from a texture by VanessaE (WTFPL) + +PilzAdam: + mods/material/textures/material_obsidian_shard.png + mods/material/textures/material_mineral_gold.png + +RealBadAngel: + mods/material/textures/material_water_source_animated.png + mods/material/textures/material_water_flowing_animated.png + +VanessaE: + mods/material/textures/material_desert_sand.png + mods/material/textures/material_desert_stone.png + +Zeg9: + mods/material/textures/material_coal_block.png + mods/material/textures/material_steel_block.png + mods/material/textures/material_copper_block.png + mods/material/textures/material_bronze_block.png + mods/material/textures/material_gold_block.png diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2135a6 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# AF8 - Minetest Subgame +### A new Work-In-Progess Minetest-Subgame wrote completely from scratch. + +## License +```txt +License of code: +---------------- +Copyright (C) 2016 LNJ +and contributors (see source file comments and the version control log) + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + +License of media (textures, sounds, meshes): +-------------------------------------------- +Copyright (C) 2016 LNJ +and contributors (see source file comments and the version control log) + +You can redistribute and or modify the media of this program under the terms of +the Creative Commons Attribution-ShareAlike 3.0 Unported Public License. + +You should have received a copy of the Creative Commons +Attribution-ShareAlike 3.0 Unported License along with this program; if not, +write to Creative Commons, PO Box 1866, Mountain View, CA 94042 or see +https://creativecommons.org/licenses/by-sa/3.0/legalcode +``` diff --git a/game.conf b/game.conf new file mode 100644 index 0000000..b4ef133 --- /dev/null +++ b/game.conf @@ -0,0 +1 @@ +name = AF8 diff --git a/mods/decor/init.lua b/mods/decor/init.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/decor/textures/wool_black.png b/mods/decor/textures/wool_black.png new file mode 100644 index 0000000..700d439 Binary files /dev/null and b/mods/decor/textures/wool_black.png differ diff --git a/mods/decor/textures/wool_blue.png b/mods/decor/textures/wool_blue.png new file mode 100644 index 0000000..a074986 Binary files /dev/null and b/mods/decor/textures/wool_blue.png differ diff --git a/mods/decor/textures/wool_brown.png b/mods/decor/textures/wool_brown.png new file mode 100644 index 0000000..2620dfd Binary files /dev/null and b/mods/decor/textures/wool_brown.png differ diff --git a/mods/decor/textures/wool_cyan.png b/mods/decor/textures/wool_cyan.png new file mode 100644 index 0000000..395b6ac Binary files /dev/null and b/mods/decor/textures/wool_cyan.png differ diff --git a/mods/decor/textures/wool_dark_green.png b/mods/decor/textures/wool_dark_green.png new file mode 100644 index 0000000..8c387ff Binary files /dev/null and b/mods/decor/textures/wool_dark_green.png differ diff --git a/mods/decor/textures/wool_dark_grey.png b/mods/decor/textures/wool_dark_grey.png new file mode 100644 index 0000000..a9a311c Binary files /dev/null and b/mods/decor/textures/wool_dark_grey.png differ diff --git a/mods/decor/textures/wool_green.png b/mods/decor/textures/wool_green.png new file mode 100644 index 0000000..dcb663b Binary files /dev/null and b/mods/decor/textures/wool_green.png differ diff --git a/mods/decor/textures/wool_grey.png b/mods/decor/textures/wool_grey.png new file mode 100644 index 0000000..2f4c338 Binary files /dev/null and b/mods/decor/textures/wool_grey.png differ diff --git a/mods/decor/textures/wool_magenta.png b/mods/decor/textures/wool_magenta.png new file mode 100644 index 0000000..5c2c4a7 Binary files /dev/null and b/mods/decor/textures/wool_magenta.png differ diff --git a/mods/decor/textures/wool_orange.png b/mods/decor/textures/wool_orange.png new file mode 100644 index 0000000..a059f36 Binary files /dev/null and b/mods/decor/textures/wool_orange.png differ diff --git a/mods/decor/textures/wool_pink.png b/mods/decor/textures/wool_pink.png new file mode 100644 index 0000000..8e90140 Binary files /dev/null and b/mods/decor/textures/wool_pink.png differ diff --git a/mods/decor/textures/wool_red.png b/mods/decor/textures/wool_red.png new file mode 100644 index 0000000..da12ecf Binary files /dev/null and b/mods/decor/textures/wool_red.png differ diff --git a/mods/decor/textures/wool_violet.png b/mods/decor/textures/wool_violet.png new file mode 100644 index 0000000..d7d6783 Binary files /dev/null and b/mods/decor/textures/wool_violet.png differ diff --git a/mods/decor/textures/wool_white.png b/mods/decor/textures/wool_white.png new file mode 100644 index 0000000..88f1e2f Binary files /dev/null and b/mods/decor/textures/wool_white.png differ diff --git a/mods/decor/textures/wool_yellow.png b/mods/decor/textures/wool_yellow.png new file mode 100644 index 0000000..8588251 Binary files /dev/null and b/mods/decor/textures/wool_yellow.png differ diff --git a/mods/env/init.lua b/mods/env/init.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/flora/init.lua b/mods/flora/init.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/food/init.lua b/mods/food/init.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/game/init.lua b/mods/game/init.lua new file mode 100644 index 0000000..8449f32 --- /dev/null +++ b/mods/game/init.lua @@ -0,0 +1,26 @@ +--[[ +mods/game/init.lua +================== +AF8 - A Minetest Subgame +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +game = {} +game.NAME = "af8" +game.VERSION = "0.01" + +game.LIGHT_MAX = 14 diff --git a/mods/game/textures/16x_blank.png b/mods/game/textures/16x_blank.png new file mode 100644 index 0000000..c7f427a Binary files /dev/null and b/mods/game/textures/16x_blank.png differ diff --git a/mods/game/textures/bubble.png b/mods/game/textures/bubble.png new file mode 100644 index 0000000..3563ebd Binary files /dev/null and b/mods/game/textures/bubble.png differ diff --git a/mods/game/textures/crack_anylength.png b/mods/game/textures/crack_anylength.png new file mode 100644 index 0000000..81f507b Binary files /dev/null and b/mods/game/textures/crack_anylength.png differ diff --git a/mods/game/textures/heart.png b/mods/game/textures/heart.png new file mode 100644 index 0000000..c29dc0e Binary files /dev/null and b/mods/game/textures/heart.png differ diff --git a/mods/game/textures/player.png b/mods/game/textures/player.png new file mode 100644 index 0000000..9c442a2 Binary files /dev/null and b/mods/game/textures/player.png differ diff --git a/mods/game/textures/player_back.png b/mods/game/textures/player_back.png new file mode 100644 index 0000000..0ebf3e8 Binary files /dev/null and b/mods/game/textures/player_back.png differ diff --git a/mods/game/textures/wieldhand.png b/mods/game/textures/wieldhand.png new file mode 100644 index 0000000..69f4b7b Binary files /dev/null and b/mods/game/textures/wieldhand.png differ diff --git a/mods/gui/init.lua b/mods/gui/init.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/mapgen/aliases.lua b/mods/mapgen/aliases.lua new file mode 100644 index 0000000..e69de29 diff --git a/mods/mapgen/init.lua b/mods/mapgen/init.lua new file mode 100644 index 0000000..db20aef --- /dev/null +++ b/mods/mapgen/init.lua @@ -0,0 +1,29 @@ +--[[ +mods/mapgen/init.lua +==================== +AF8 - A Minetest Subgame +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +mapgen = {} + +local modpath = core.get_modpath("mapgen") .. "/lua/" +local files = {"aliases.lua"} + +for _, file in pairs(files) do + dofile(modpath .. file) +end diff --git a/mods/mapgen/lua/aliases.lua b/mods/mapgen/lua/aliases.lua new file mode 100644 index 0000000..b09a26c --- /dev/null +++ b/mods/mapgen/lua/aliases.lua @@ -0,0 +1,55 @@ +--[[ +mods/mapgen/lua/aliases.lua +=========================== +AF8 - A Minetest Subgame +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +-- Terrain +core.register_alias("mapgen_air", "air") +core.register_alias("mapgen_stone", "material:stone") +core.register_alias("mapgen_dirt", "material:dirt") +core.register_alias("mapgen_dirt_with_grass", "material:dirt_with_grass") +core.register_alias("mapgen_sand", "material:sand") +core.register_alias("mapgen_water_source", "material:water_source") +core.register_alias("mapgen_river_water_source", "material:water_source") +core.register_alias("mapgen_lava_source", "material:lava_source") +core.register_alias("mapgen_gravel", "material:gravel") +core.register_alias("mapgen_desert_stone", "material:desert_stone") +core.register_alias("mapgen_desert_sand", "material:desert_sand") +core.register_alias("mapgen_dirt_with_snow", "material:dirt_with_snow") +core.register_alias("mapgen_snowblock", "material:snowblock") +core.register_alias("mapgen_snow", "material:snow") +core.register_alias("mapgen_ice", "material:ice") +core.register_alias("mapgen_sandstone", "material:sandstone") + +-- Flora (mgv6) +core.register_alias("mapgen_tree", "material:tree") +core.register_alias("mapgen_leaves", "material:leaves") +core.register_alias("mapgen_apple", "material:leaves_with_apple") +core.register_alias("mapgen_jungletree", "material:jungletree") +core.register_alias("mapgen_jungleleaves", "material:jungleleaves") +core.register_alias("mapgen_junglegrass", "material:junglegrass") +core.register_alias("mapgen_pine_tree", "material:pine_tree") +core.register_alias("mapgen_pine_needles", "material:pine_needles") + +-- Dungeons +core.register_alias("mapgen_cobble", "material:cobble") +core.register_alias("mapgen_stair_cobble", "material:stair_cobble") +core.register_alias("mapgen_mossycobble", "material:mossycobble") +core.register_alias("mapgen_sandstonebrick", "material:sandstonebrick") +core.register_alias("mapgen_stair_sandstonebrick", "material:stair_sandstonebrick") diff --git a/mods/material/depends.txt b/mods/material/depends.txt new file mode 100644 index 0000000..dc22e61 --- /dev/null +++ b/mods/material/depends.txt @@ -0,0 +1 @@ +game diff --git a/mods/material/init.lua b/mods/material/init.lua new file mode 100644 index 0000000..2d4ce08 --- /dev/null +++ b/mods/material/init.lua @@ -0,0 +1,33 @@ +--[[ +mods/material/init.lua +====================== +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +local modpath = core.get_modpath("material") .. "/lua/" + +dofile(modpath .. "bricks.lua") +dofile(modpath .. "cobble.lua") +dofile(modpath .. "dirt.lua") +dofile(modpath .. "gravel.lua") +dofile(modpath .. "ice.lua") +dofile(modpath .. "lava.lua") +dofile(modpath .. "ores.lua") +dofile(modpath .. "sand.lua") +dofile(modpath .. "snow.lua") +dofile(modpath .. "stone.lua") +dofile(modpath .. "water.lua") diff --git a/mods/material/lua/bricks.lua b/mods/material/lua/bricks.lua new file mode 100644 index 0000000..73995f7 --- /dev/null +++ b/mods/material/lua/bricks.lua @@ -0,0 +1,120 @@ +--[[ +mods/material/lua/bricks.lua +============================ +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:brick", { + description = "Brick Block", + tiles = {"material_brick.png"}, + is_ground_content = false, + groups = {cracky = 3}, + + register = {stair = true, slab = true, wall = true}, + stair = { + description = "Brick Stair", + }, + slab = { + description = "Brick Slab", + }, + wall = { + description = "Brick Wall" + } +}) + + +-- Stonebricks + +core.register_node("material:stonebrick", { + register = {stair = true, slab = true, wall = true}, + description = "Stone Brick", + tiles = {"material_stone_brick.png"}, + is_ground_content = false, + groups = {cracky = 2, stone = 1}, + +}) + +core.register_node("material:desert_stonebrick", { + register = {stair = true, slab = true, wall = true}, + description = "Desert Stone Brick", + tiles = {"material_desert_stone_brick.png"}, + is_ground_content = false, + groups = {cracky = 2, stone = 1}, + +}) + +core.register_node("material:sandstonebrick", { + register = {stair = true, slab = true, wall = true}, + description = "Sandstone Brick", + tiles = {"material_sandstone_brick.png"}, + is_ground_content = false, + groups = {cracky = 2}, + +}) + +core.register_node("material:obsidianbrick", { + register = {stair = true, slab = true, wall = true}, + description = "Obsidian Brick", + tiles = {"material_obsidian_brick.png"}, + is_ground_content = false, + + groups = {cracky = 1, level = 2} +}) + + +-- Crafting + +core.register_craft({ + output = "material:brick", + recipe = { + {"material:clay_brick", "material:clay_brick"}, + {"material:clay_brick", "material:clay_brick"}, + } +}) + +core.register_craft({ + output = "material:stonebrick 4", + recipe = { + {"material:stone", "material:stone"}, + {"material:stone", "material:stone"}, + } +}) + +core.register_craft({ + output = "material:sandstonebrick 4", + recipe = { + {"material:sandstone", "material:sandstone"}, + {"material:sandstone", "material:sandstone"}, + } +}) + +core.register_craft({ + output = "material:obsidianbrick 4", + recipe = { + {"material:obsidian", "material:obsidian"}, + {"material:obsidian", "material:obsidian"} + } +}) + +core.register_craft({ + output = "material:desert_stonebrick 4", + recipe = { + {"material:desert_stone", "material:desert_stone"}, + {"material:desert_stone", "material:desert_stone"}, + } +}) diff --git a/mods/material/lua/cobble.lua b/mods/material/lua/cobble.lua new file mode 100644 index 0000000..8e37e91 --- /dev/null +++ b/mods/material/lua/cobble.lua @@ -0,0 +1,50 @@ +--[[ +mods/material/lua/cobble.lua +============================ +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:cobble", { + register = {stair = true, slab = true, table = true, wall = true}, + description = "Cobblestone", + tiles = {"material_cobble.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 2}, + + table = { + groups = {cracky = 2}, + }, +}) + +core.register_node("material:mossycobble", { + register = {stair = true, slab = true, wall = true}, + description = "Mossy Cobblestone", + tiles = {"material_mossycobble.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 1}, + +}) + +core.register_node("material:desert_cobble", { + register = {stair = true, slab = true, wall = true}, + description = "Desert Cobblestone", + tiles = {"material_desert_cobble.png"}, + is_ground_content = false, + groups = {cracky = 3, stone = 2}, + +}) diff --git a/mods/material/lua/dirt.lua b/mods/material/lua/dirt.lua new file mode 100644 index 0000000..56984ab --- /dev/null +++ b/mods/material/lua/dirt.lua @@ -0,0 +1,120 @@ +--[[ +mods/material/lua/dirt.lua +========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +-- Wet + +core.register_node("material:clay", { + description = "Clay", + tiles = {"material_clay.png"}, + groups = {crumbly = 3}, + drop = 'material:clay_lump 4', +}) + + +-- Dry + +core.register_node("material:dirt", { + description = "Dirt", + tiles = {"material_dirt.png"}, + groups = {crumbly = 3, soil = 1, dirt = 1}, +}) + +core.register_node("material:dry_dirt", { + description = "Dry Dirt", + tiles = {"material_dry_dirt.png"}, + groups = {crumbly = 3, dirt = 4}, +}) + + +-- Covered + +core.register_node("material:dirt_with_grass", { + description = "Dirt with Grass", + tiles = {"material_grass.png", "material_dirt.png", + {name = "material_dirt.png^material_grass_side.png", + tileable_vertical = false}}, + groups = {crumbly = 3, soil = 1, dirt = 2}, + drop = 'material:dirt', +-- sounds = default.node_sound_dirt_defaults({ +-- footstep = {name = "material_grass_footstep", gain = 0.2}, +-- on_place = {name = "material_grass_place", gain = 0.5}, +-- }), +}) + +core.register_node("material:dirt_with_grass_footsteps", { + description = "Dirt with Grass and Footsteps", + tiles = {"material_grass.png^material_footprint.png", "material_dirt.png", + {name = "material_dirt.png^material_grass_side.png", + tileable_vertical = false}}, + groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1, dirt = 2}, + drop = 'material:dirt', +-- sounds = default.node_sound_dirt_defaults({ +-- footstep = {name = "material_grass_footstep", gain = 0.25}, +-- }), +}) + +core.register_node("material:dirt_with_dry_grass", { + description = "Dirt with Dry Grass", + tiles = {"material_dry_grass.png", + "material_dirt.png", + {name = "material_dirt.png^material_dry_grass_side.png", + tileable_vertical = false}}, + groups = {crumbly = 3, soil = 1, dirt = 2}, + drop = 'material:dirt', +-- sounds = default.node_sound_dirt_defaults({ +-- footstep = {name = "material_grass_footstep", gain = 0.4}, +-- }), +}) + +core.register_node("material:dirt_with_snow", { + description = "Dirt with Snow", + tiles = {"material_snow.png", "material_dirt.png", + {name = "material_dirt.png^material_snow_side.png", + tileable_vertical = false}}, + groups = {crumbly = 3, soil = 1, dirt = 3, snowy = 1}, + drop = 'material:dirt', +-- sounds = default.node_sound_dirt_defaults({ +-- footstep = {name = "material_snow_footstep", gain = 0.25}, +-- }), +}) + + +-- Crafting + +core.register_craft({ + output = "material:clay", + recipe = { + {"material:clay_lump", "material:clay_lump"}, + {"material:clay_lump", "material:clay_lump"}, + } +}) + +core.register_craft({ + type = "shapeless", + output = "material:dirt_with_snow", + recipe = {"material:dirt", "material:snow"} +}) + +core.register_craft({ + type = "cooking", + output = "material:dry_dirt", + recipe = "material:dirt", +}) diff --git a/mods/material/lua/gravel.lua b/mods/material/lua/gravel.lua new file mode 100644 index 0000000..a6702e0 --- /dev/null +++ b/mods/material/lua/gravel.lua @@ -0,0 +1,33 @@ +--[[ +mods/material/lua/gravel.lua +============================ +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:gravel", { + description = "Gravel", + tiles = {"material_gravel.png"}, + groups = {crumbly = 2, falling_node = 1}, + drop = { + max_items = 1, + items = { + {items = {"material:flint"}, rarity = 16}, + {items = {"material:gravel"}} + } + } +}) diff --git a/mods/material/lua/ice.lua b/mods/material/lua/ice.lua new file mode 100644 index 0000000..4d8de53 --- /dev/null +++ b/mods/material/lua/ice.lua @@ -0,0 +1,28 @@ +--[[ +mods/material/lua/ice.lua +========================= +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:ice", { + description = "Ice", + tiles = {"material_ice.png"}, + is_ground_content = false, + paramtype = "light", + groups = {cracky = 3, puts_out_fire = 1, snowy = 2}, +}) diff --git a/mods/material/lua/lava.lua b/mods/material/lua/lava.lua new file mode 100644 index 0000000..27da7b5 --- /dev/null +++ b/mods/material/lua/lava.lua @@ -0,0 +1,115 @@ +--[[ +mods/material/lua/lava.lua +========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:lava_source", { + description = "Lava Source", + inventory_image = minetest.inventorycube("material_lava.png"), + drawtype = "liquid", + tiles = { + { + name = "material_lava_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + }, + }, + special_tiles = { + -- New-style lava source material (mostly unused) + { + name = "material_lava_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + backface_culling = false, + }, + }, + paramtype = "light", + light_source = game.LIGHT_MAX - 1, + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + is_ground_content = false, + drop = "", + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "material:lava_flowing", + liquid_alternative_source = "material:lava_source", + liquid_viscosity = 7, + liquid_renewable = false, + damage_per_second = 4 * 2, + post_effect_color = {a = 192, r = 255, g = 64, b = 0}, + groups = {lava = 3, liquid = 2, hot = 3, igniter = 1}, +}) + +core.register_node("material:lava_flowing", { + description = "Flowing Lava", + inventory_image = minetest.inventorycube("material_lava.png"), + drawtype = "flowingliquid", + tiles = {"material_lava.png"}, + special_tiles = { + { + name = "material_lava_flowing_animated.png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3, + }, + }, + { + name = "material_lava_flowing_animated.png", + backface_culling = true, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3, + }, + }, + }, + paramtype = "light", + paramtype2 = "flowingliquid", + light_source = game.LIGHT_MAX - 1, + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + is_ground_content = false, + drop = "", + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "material:lava_flowing", + liquid_alternative_source = "material:lava_source", + liquid_viscosity = 7, + liquid_renewable = false, + damage_per_second = 4 * 2, + post_effect_color = {a = 192, r = 255, g = 64, b = 0}, + groups = {lava = 3, liquid = 2, hot = 3, igniter = 1, + not_in_creative_inventory = 1}, +}) diff --git a/mods/material/lua/ores.lua b/mods/material/lua/ores.lua new file mode 100644 index 0000000..7905164 --- /dev/null +++ b/mods/material/lua/ores.lua @@ -0,0 +1,251 @@ +--[[ +mods/material/lua/ores.lua +========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +-- Minerals + +local stones = { + {"stone"}, + {"sandstone"}, + {"desert_stone"} +} + +for _,stone in pairs(stones) do + stone = stone[1] + core.register_node("material:" .. stone .. "_with_coal", { + description = "Coal Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_coal.png"}, + groups = {cracky = 3, not_in_creative_inventory = 1}, + drop = 'material:coal_lump', + + }) + + core.register_node("material:" .. stone .. "_with_iron", { + description = "Iron Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_iron.png"}, + groups = {cracky = 2, not_in_creative_inventory = 1}, + drop = 'material:iron_lump', + + }) + + core.register_node("material:" .. stone .. "_with_copper", { + description = "Copper Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_copper.png"}, + groups = {cracky = 2, not_in_creative_inventory = 1}, + drop = 'material:copper_lump', + + }) + + core.register_node("material:" .. stone .. "_with_mese", { + description = "Mese Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_mese.png"}, + paramtype = "light", + groups = {cracky = 1, not_in_creative_inventory = 1}, + drop = "material:mese_crystal", + + light_source = 1, + }) + + core.register_node("material:" .. stone .. "_with_diamond", { + description = "Diamond Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_diamond.png"}, + groups = {cracky = 1, not_in_creative_inventory = 1}, + drop = "material:diamond", + + }) + + core.register_node("material:" .. stone .. "_with_gold", { + description = "Gold Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_gold.png"}, + drop = "material:gold_lump", + groups = {cracky = 2, not_in_creative_inventory = 1}, + + }) + + core.register_node("material:" .. stone .. "_with_salt", { + description = "Salt Ore", + tiles = {"material_" .. stone .. ".png^material_mineral_salt.png"}, + groups = {cracky = 2, not_in_creative_inventory = 1}, + drop = { + max_items = 5, + items = { + {items = {"material:salt 2"}}, + {items = {"material:salt"}, rarity = 2}, + {items = {"material:salt"}, rarity = 3}, + {items = {"material:salt"}, rarity = 5} + } + }, + + }) +end + + + +-- Blocks + +core.register_node("material:mese", { + description = "Mese Block", + tiles = {"material_mese_block.png"}, + paramtype = "light", + groups = {cracky = 1, level = 2}, + + light_source = 3, +}) + +core.register_node("material:coalblock", { + register = {stair = true, slab = true}, + description = "Coal Block", + tiles = {"material_coal_block.png"}, + is_ground_content = false, + groups = {cracky = 3, fuel = 370}, + +}) + +core.register_node("material:steelblock", { + register = {stair = true, slab = true}, + description = "Steel Block", + tiles = {"material_steel_block.png"}, + is_ground_content = false, + groups = {cracky = 1, level = 2}, + + stair = {legacy_alias = "stairs:stair_steelblock"}, + slab = {legacy_alias = "stairs:slab_steelblock"}, +}) + +core.register_node("material:copperblock", { + register = {stair = true, slab = true}, + description = "Copper Block", + tiles = {"material_copper_block.png"}, + is_ground_content = false, + groups = {cracky = 1, level = 2}, + + stair = {legacy_alias = "stairs:stair_copperblock"}, + slab = {legacy_alias = "stairs:slab_copperblock"}, +}) + +core.register_node("material:bronzeblock", { + register = {stair = true, slab = true}, + description = "Bronze Block", + tiles = {"material_bronze_block.png"}, + is_ground_content = false, + groups = {cracky = 1, level = 2}, + + stair = {legacy_alias = "stairs:stair_bronzeblock"}, + slab = {legacy_alias = "stairs:slab_bronzeblock"}, +}) + +core.register_node("material:goldblock", { + register = {stair = true, slab = true}, + description = "Gold Block", + tiles = {"material_gold_block.png"}, + is_ground_content = false, + groups = {cracky = 1}, + + stair = {legacy_alias = "stairs:stair_goldblock"}, + slab = {legacy_alias = "stairs:slab_goldblock"}, +}) + +core.register_node("material:diamondblock", { + register = {stair = true, slab = true}, + description = "Diamond Block", + tiles = {"material_diamond_block.png"}, + is_ground_content = false, + groups = {cracky = 1, level = 3}, + + stair = {legacy_alias = "stairs:stair_diamondblock"}, + slab = {legacy_alias = "stairs:slab_diamondblock"}, +}) + +core.register_node("material:saltblock", { + register = {stair = true, slab = true}, + description = "Salt Block", + tiles = {"material_salt_block.png"}, + is_ground_content = false, + groups = {cracky = 2}, + +}) + + +-- +-- Crafting +-- + +core.register_craft({ + output = "material:mese", + recipe = { + {"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"}, + {"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"}, + {"material:mese_crystal", "material:mese_crystal", "material:mese_crystal"}, + } +}) + +core.register_craft({ + output = "material:coalblock", + recipe = { + {"material:coal_lump", "material:coal_lump", "material:coal_lump"}, + {"material:coal_lump", "material:coal_lump", "material:coal_lump"}, + {"material:coal_lump", "material:coal_lump", "material:coal_lump"}, + } +}) + +core.register_craft({ + output = "material:steelblock", + recipe = { + {"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"}, + {"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"}, + {"material:steel_ingot", "material:steel_ingot", "material:steel_ingot"}, + } +}) + +core.register_craft({ + output = "material:copperblock", + recipe = { + {"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"}, + {"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"}, + {"material:copper_ingot", "material:copper_ingot", "material:copper_ingot"}, + } +}) + +core.register_craft({ + output = "material:bronzeblock", + recipe = { + {"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"}, + {"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"}, + {"material:bronze_ingot", "material:bronze_ingot", "material:bronze_ingot"}, + } +}) + +core.register_craft({ + output = "material:goldblock", + recipe = { + {"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"}, + {"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"}, + {"material:gold_ingot", "material:gold_ingot", "material:gold_ingot"}, + } +}) + +core.register_craft({ + output = "material:diamondblock", + recipe = { + {"material:diamond", "material:diamond", "material:diamond"}, + {"material:diamond", "material:diamond", "material:diamond"}, + {"material:diamond", "material:diamond", "material:diamond"}, + } +}) diff --git a/mods/material/lua/sand.lua b/mods/material/lua/sand.lua new file mode 100644 index 0000000..0610ce1 --- /dev/null +++ b/mods/material/lua/sand.lua @@ -0,0 +1,40 @@ +--[[ +mods/material/lua/sand.lua +========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:sand", { + description = "Sand", + tiles = {"material_sand.png"}, + groups = {crumbly = 3, falling_node = 1, sand = 1}, +}) + +core.register_node("material:desert_sand", { + description = "Desert Sand", + tiles = {"material_desert_sand.png"}, + groups = {crumbly = 3, falling_node = 1, sand = 1}, +}) + +-- Crafting +core.register_craft({ + output = "material:sand 4", + recipe = { + {"material:sandstone"}, + } +}) diff --git a/mods/material/lua/snow.lua b/mods/material/lua/snow.lua new file mode 100644 index 0000000..9c553c3 --- /dev/null +++ b/mods/material/lua/snow.lua @@ -0,0 +1,69 @@ +--[[ +mods/material/lua/snow.lua +========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:snow", { + description = "Snow", + tiles = {"material_snow.png"}, + inventory_image = "material_snowball.png", + wield_image = "material_snowball.png", + paramtype = "light", + buildable_to = true, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, + }, + }, + groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1, snowy = 1}, + + on_construct = function(pos) + pos.y = pos.y - 1 + if minetest.get_node(pos).name == "material:dirt_with_grass" then + minetest.set_node(pos, {name = "material:dirt_with_snow"}) + end + end, +}) + +core.register_node("material:snowblock", { + description = "Snow Block", + tiles = {"material_snow.png"}, + groups = {crumbly = 3, puts_out_fire = 1, snowy = 1}, +}) + + +-- Crafting + +core.register_craft({ + output = "material:snowblock", + recipe = { + {"material:snow", "material:snow", "material:snow"}, + {"material:snow", "material:snow", "material:snow"}, + {"material:snow", "material:snow", "material:snow"}, + } +}) + +core.register_craft({ + output = "material:snow 9", + recipe = { + {"material:snowblock"}, + } +}) diff --git a/mods/material/lua/stone.lua b/mods/material/lua/stone.lua new file mode 100644 index 0000000..9cc3939 --- /dev/null +++ b/mods/material/lua/stone.lua @@ -0,0 +1,97 @@ +--[[ +mods/material/lua/stone.lua +=========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:stone", { + description = "Stone", + tiles = {"material_stone.png"}, + groups = {cracky = 3, stone = 1}, + drop = 'material:cobble', + legacy_mineral = true, + + register = {stair = true, slab = true, table = true, wall = true}, + table = { + groups = {cracky = 3} + }, +}) + +core.register_node("material:desert_stone", { + description = "Desert Stone", + tiles = {"material_desert_stone.png"}, + groups = {cracky = 3, stone = 1}, + drop = 'material:desert_cobble', + legacy_mineral = true, + + register = {stair = true, slab = true, wall = true}, +}) + +core.register_node("material:sandstone", { + register = {stair = true, slab = true, wall = true}, + description = "Sandstone", + tiles = {"material_sandstone.png"}, + groups = {crumbly = 2, cracky = 3}, + +}) + +core.register_node("material:obsidian", { + register = {stair = true, slab = true, wall = true}, + description = "Obsidian", + tiles = {"material_obsidian.png"}, + + groups = {cracky = 1, level = 2}, +}) + + +-- Crafting + +core.register_craft({ + type = "cooking", + output = "material:stone", + recipe = "material:cobble", +}) + +core.register_craft({ + type = "cooking", + output = "material:stone", + recipe = "material:mossycobble", +}) + +core.register_craft({ + type = "cooking", + output = "material:desert_stone", + recipe = "material:desert_cobble", +}) + +core.register_craft({ + output = "material:sandstone", + recipe = { + {"group:sand", "group:sand"}, + {"group:sand", "group:sand"}, + } +}) + +core.register_craft({ + output = "material:obsidian", + recipe = { + {"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"}, + {"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"}, + {"material:obsidian_shard", "material:obsidian_shard", "material:obsidian_shard"}, + } +}) diff --git a/mods/material/lua/water.lua b/mods/material/lua/water.lua new file mode 100644 index 0000000..7437b7a --- /dev/null +++ b/mods/material/lua/water.lua @@ -0,0 +1,111 @@ +--[[ +mods/material/lua/water.lua +=========================== +Copyright (C) 2011-2012 celeron55, Perttu Ahola +Copyright (C) 2016 LNJ + +This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +]] + +core.register_node("material:water_source", { + description = "Water Source", + inventory_image = minetest.inventorycube("material_water.png"), + drawtype = "liquid", + tiles = { + { + name = "material_water_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 2.0, + }, + }, + }, + special_tiles = { + -- New-style water source material (mostly unused) + { + name = "material_water_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 2.0, + }, + backface_culling = false, + }, + }, + alpha = 160, + paramtype = "light", + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + is_ground_content = false, + drop = "", + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "material:water_flowing", + liquid_alternative_source = "material:water_source", + liquid_viscosity = 1, + post_effect_color = {a = 120, r = 30, g = 60, b = 90}, + groups = {water = 3, liquid = 3, puts_out_fire = 1}, +}) + +core.register_node("material:water_flowing", { + description = "Flowing Water", + inventory_image = minetest.inventorycube("material_water.png"), + drawtype = "flowingliquid", + tiles = {"material_water.png"}, + special_tiles = { + { + name = "material_water_flowing_animated.png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 0.8, + }, + }, + { + name = "material_water_flowing_animated.png", + backface_culling = true, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 0.8, + }, + }, + }, + alpha = 160, + paramtype = "light", + paramtype2 = "flowingliquid", + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + is_ground_content = false, + drop = "", + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "material:water_flowing", + liquid_alternative_source = "material:water_source", + liquid_viscosity = 1, + post_effect_color = {a = 120, r = 30, g = 60, b = 90}, + groups = {water = 3, liquid = 3, puts_out_fire = 1, + not_in_creative_inventory = 1}, +}) diff --git a/mods/material/textures/material_brick.png b/mods/material/textures/material_brick.png new file mode 100644 index 0000000..de98961 Binary files /dev/null and b/mods/material/textures/material_brick.png differ diff --git a/mods/material/textures/material_bronze_block.png b/mods/material/textures/material_bronze_block.png new file mode 100644 index 0000000..3a4e602 Binary files /dev/null and b/mods/material/textures/material_bronze_block.png differ diff --git a/mods/material/textures/material_bronze_ingot.png b/mods/material/textures/material_bronze_ingot.png new file mode 100644 index 0000000..1267b58 Binary files /dev/null and b/mods/material/textures/material_bronze_ingot.png differ diff --git a/mods/material/textures/material_charcoal.png b/mods/material/textures/material_charcoal.png new file mode 100644 index 0000000..bbb49ba Binary files /dev/null and b/mods/material/textures/material_charcoal.png differ diff --git a/mods/material/textures/material_clay.png b/mods/material/textures/material_clay.png new file mode 100644 index 0000000..c566a68 Binary files /dev/null and b/mods/material/textures/material_clay.png differ diff --git a/mods/material/textures/material_clay_brick.png b/mods/material/textures/material_clay_brick.png new file mode 100644 index 0000000..20efc52 Binary files /dev/null and b/mods/material/textures/material_clay_brick.png differ diff --git a/mods/material/textures/material_clay_lump.png b/mods/material/textures/material_clay_lump.png new file mode 100644 index 0000000..759d6b9 Binary files /dev/null and b/mods/material/textures/material_clay_lump.png differ diff --git a/mods/material/textures/material_coal_block.png b/mods/material/textures/material_coal_block.png new file mode 100644 index 0000000..02dc157 Binary files /dev/null and b/mods/material/textures/material_coal_block.png differ diff --git a/mods/material/textures/material_coal_lump.png b/mods/material/textures/material_coal_lump.png new file mode 100644 index 0000000..06e5614 Binary files /dev/null and b/mods/material/textures/material_coal_lump.png differ diff --git a/mods/material/textures/material_cobble.png b/mods/material/textures/material_cobble.png new file mode 100644 index 0000000..b4d943a Binary files /dev/null and b/mods/material/textures/material_cobble.png differ diff --git a/mods/material/textures/material_copper_block.png b/mods/material/textures/material_copper_block.png new file mode 100644 index 0000000..e1b60f0 Binary files /dev/null and b/mods/material/textures/material_copper_block.png differ diff --git a/mods/material/textures/material_copper_ingot.png b/mods/material/textures/material_copper_ingot.png new file mode 100644 index 0000000..af87bc9 Binary files /dev/null and b/mods/material/textures/material_copper_ingot.png differ diff --git a/mods/material/textures/material_copper_lump.png b/mods/material/textures/material_copper_lump.png new file mode 100644 index 0000000..998c592 Binary files /dev/null and b/mods/material/textures/material_copper_lump.png differ diff --git a/mods/material/textures/material_desert_cobble.png b/mods/material/textures/material_desert_cobble.png new file mode 100644 index 0000000..d06f82e Binary files /dev/null and b/mods/material/textures/material_desert_cobble.png differ diff --git a/mods/material/textures/material_desert_sand.png b/mods/material/textures/material_desert_sand.png new file mode 100644 index 0000000..ff0e5d4 Binary files /dev/null and b/mods/material/textures/material_desert_sand.png differ diff --git a/mods/material/textures/material_desert_stone.png b/mods/material/textures/material_desert_stone.png new file mode 100644 index 0000000..5d3aded Binary files /dev/null and b/mods/material/textures/material_desert_stone.png differ diff --git a/mods/material/textures/material_desert_stone_brick.png b/mods/material/textures/material_desert_stone_brick.png new file mode 100644 index 0000000..4d487b8 Binary files /dev/null and b/mods/material/textures/material_desert_stone_brick.png differ diff --git a/mods/material/textures/material_diamond.png b/mods/material/textures/material_diamond.png new file mode 100644 index 0000000..289c0d6 Binary files /dev/null and b/mods/material/textures/material_diamond.png differ diff --git a/mods/material/textures/material_diamond_block.png b/mods/material/textures/material_diamond_block.png new file mode 100644 index 0000000..7437f4d Binary files /dev/null and b/mods/material/textures/material_diamond_block.png differ diff --git a/mods/material/textures/material_dirt.png b/mods/material/textures/material_dirt.png new file mode 100644 index 0000000..b12331e Binary files /dev/null and b/mods/material/textures/material_dirt.png differ diff --git a/mods/material/textures/material_dry_dirt.png b/mods/material/textures/material_dry_dirt.png new file mode 100644 index 0000000..d63c4b7 Binary files /dev/null and b/mods/material/textures/material_dry_dirt.png differ diff --git a/mods/material/textures/material_dry_grass.png b/mods/material/textures/material_dry_grass.png new file mode 100644 index 0000000..5c1db4e Binary files /dev/null and b/mods/material/textures/material_dry_grass.png differ diff --git a/mods/material/textures/material_flint.png b/mods/material/textures/material_flint.png new file mode 100644 index 0000000..55bb05c Binary files /dev/null and b/mods/material/textures/material_flint.png differ diff --git a/mods/material/textures/material_gold_block.png b/mods/material/textures/material_gold_block.png new file mode 100644 index 0000000..170d50b Binary files /dev/null and b/mods/material/textures/material_gold_block.png differ diff --git a/mods/material/textures/material_gold_ingot.png b/mods/material/textures/material_gold_ingot.png new file mode 100644 index 0000000..25ec739 Binary files /dev/null and b/mods/material/textures/material_gold_ingot.png differ diff --git a/mods/material/textures/material_gold_lump.png b/mods/material/textures/material_gold_lump.png new file mode 100644 index 0000000..bee5152 Binary files /dev/null and b/mods/material/textures/material_gold_lump.png differ diff --git a/mods/material/textures/material_grass.png b/mods/material/textures/material_grass.png new file mode 100644 index 0000000..45da4e4 Binary files /dev/null and b/mods/material/textures/material_grass.png differ diff --git a/mods/material/textures/material_grass_side.png b/mods/material/textures/material_grass_side.png new file mode 100644 index 0000000..c20e691 Binary files /dev/null and b/mods/material/textures/material_grass_side.png differ diff --git a/mods/material/textures/material_gravel.png b/mods/material/textures/material_gravel.png new file mode 100644 index 0000000..20c878e Binary files /dev/null and b/mods/material/textures/material_gravel.png differ diff --git a/mods/material/textures/material_ice.png b/mods/material/textures/material_ice.png new file mode 100644 index 0000000..27419e2 Binary files /dev/null and b/mods/material/textures/material_ice.png differ diff --git a/mods/material/textures/material_iron_lump.png b/mods/material/textures/material_iron_lump.png new file mode 100644 index 0000000..9d5b8f2 Binary files /dev/null and b/mods/material/textures/material_iron_lump.png differ diff --git a/mods/material/textures/material_lava.png b/mods/material/textures/material_lava.png new file mode 100644 index 0000000..b0d429e Binary files /dev/null and b/mods/material/textures/material_lava.png differ diff --git a/mods/material/textures/material_lava_flowing_animated.png b/mods/material/textures/material_lava_flowing_animated.png new file mode 100644 index 0000000..7fd718a Binary files /dev/null and b/mods/material/textures/material_lava_flowing_animated.png differ diff --git a/mods/material/textures/material_lava_source_animated.png b/mods/material/textures/material_lava_source_animated.png new file mode 100644 index 0000000..a577b52 Binary files /dev/null and b/mods/material/textures/material_lava_source_animated.png differ diff --git a/mods/material/textures/material_mese_block.png b/mods/material/textures/material_mese_block.png new file mode 100644 index 0000000..6b42694 Binary files /dev/null and b/mods/material/textures/material_mese_block.png differ diff --git a/mods/material/textures/material_mese_crystal.png b/mods/material/textures/material_mese_crystal.png new file mode 100644 index 0000000..85fb002 Binary files /dev/null and b/mods/material/textures/material_mese_crystal.png differ diff --git a/mods/material/textures/material_mese_crystal_fragment.png b/mods/material/textures/material_mese_crystal_fragment.png new file mode 100644 index 0000000..d5416ab Binary files /dev/null and b/mods/material/textures/material_mese_crystal_fragment.png differ diff --git a/mods/material/textures/material_mineral_coal.png b/mods/material/textures/material_mineral_coal.png new file mode 100644 index 0000000..6d1386b Binary files /dev/null and b/mods/material/textures/material_mineral_coal.png differ diff --git a/mods/material/textures/material_mineral_copper.png b/mods/material/textures/material_mineral_copper.png new file mode 100644 index 0000000..c4c518e Binary files /dev/null and b/mods/material/textures/material_mineral_copper.png differ diff --git a/mods/material/textures/material_mineral_diamond.png b/mods/material/textures/material_mineral_diamond.png new file mode 100644 index 0000000..b817bd1 Binary files /dev/null and b/mods/material/textures/material_mineral_diamond.png differ diff --git a/mods/material/textures/material_mineral_gold.png b/mods/material/textures/material_mineral_gold.png new file mode 100644 index 0000000..2220add Binary files /dev/null and b/mods/material/textures/material_mineral_gold.png differ diff --git a/mods/material/textures/material_mineral_iron.png b/mods/material/textures/material_mineral_iron.png new file mode 100644 index 0000000..e34efb1 Binary files /dev/null and b/mods/material/textures/material_mineral_iron.png differ diff --git a/mods/material/textures/material_mineral_mese.png b/mods/material/textures/material_mineral_mese.png new file mode 100644 index 0000000..335169d Binary files /dev/null and b/mods/material/textures/material_mineral_mese.png differ diff --git a/mods/material/textures/material_mineral_salt.png b/mods/material/textures/material_mineral_salt.png new file mode 100644 index 0000000..ff5b662 Binary files /dev/null and b/mods/material/textures/material_mineral_salt.png differ diff --git a/mods/material/textures/material_mossycobble.png b/mods/material/textures/material_mossycobble.png new file mode 100644 index 0000000..1071cb4 Binary files /dev/null and b/mods/material/textures/material_mossycobble.png differ diff --git a/mods/material/textures/material_obsidian.png b/mods/material/textures/material_obsidian.png new file mode 100644 index 0000000..2eaeb5a Binary files /dev/null and b/mods/material/textures/material_obsidian.png differ diff --git a/mods/material/textures/material_obsidian_brick.png b/mods/material/textures/material_obsidian_brick.png new file mode 100644 index 0000000..fbd34fa Binary files /dev/null and b/mods/material/textures/material_obsidian_brick.png differ diff --git a/mods/material/textures/material_obsidian_shard.png b/mods/material/textures/material_obsidian_shard.png new file mode 100644 index 0000000..a988d8c Binary files /dev/null and b/mods/material/textures/material_obsidian_shard.png differ diff --git a/mods/material/textures/material_salt.png b/mods/material/textures/material_salt.png new file mode 100644 index 0000000..a41df40 Binary files /dev/null and b/mods/material/textures/material_salt.png differ diff --git a/mods/material/textures/material_salt_block.png b/mods/material/textures/material_salt_block.png new file mode 100644 index 0000000..4ea1aaf Binary files /dev/null and b/mods/material/textures/material_salt_block.png differ diff --git a/mods/material/textures/material_sand.png b/mods/material/textures/material_sand.png new file mode 100644 index 0000000..8bd1470 Binary files /dev/null and b/mods/material/textures/material_sand.png differ diff --git a/mods/material/textures/material_sandstone.png b/mods/material/textures/material_sandstone.png new file mode 100644 index 0000000..7a1f199 Binary files /dev/null and b/mods/material/textures/material_sandstone.png differ diff --git a/mods/material/textures/material_sandstone_brick.png b/mods/material/textures/material_sandstone_brick.png new file mode 100644 index 0000000..6326391 Binary files /dev/null and b/mods/material/textures/material_sandstone_brick.png differ diff --git a/mods/material/textures/material_snow.png b/mods/material/textures/material_snow.png new file mode 100644 index 0000000..f83e022 Binary files /dev/null and b/mods/material/textures/material_snow.png differ diff --git a/mods/material/textures/material_snow_side.png b/mods/material/textures/material_snow_side.png new file mode 100644 index 0000000..0f3bd6f Binary files /dev/null and b/mods/material/textures/material_snow_side.png differ diff --git a/mods/material/textures/material_snowball.png b/mods/material/textures/material_snowball.png new file mode 100644 index 0000000..ecdba9a Binary files /dev/null and b/mods/material/textures/material_snowball.png differ diff --git a/mods/material/textures/material_steel_block.png b/mods/material/textures/material_steel_block.png new file mode 100644 index 0000000..5e421f0 Binary files /dev/null and b/mods/material/textures/material_steel_block.png differ diff --git a/mods/material/textures/material_steel_ingot.png b/mods/material/textures/material_steel_ingot.png new file mode 100644 index 0000000..8100b01 Binary files /dev/null and b/mods/material/textures/material_steel_ingot.png differ diff --git a/mods/material/textures/material_stick.png b/mods/material/textures/material_stick.png new file mode 100644 index 0000000..c99fc1c Binary files /dev/null and b/mods/material/textures/material_stick.png differ diff --git a/mods/material/textures/material_stone.png b/mods/material/textures/material_stone.png new file mode 100644 index 0000000..b1b6bb8 Binary files /dev/null and b/mods/material/textures/material_stone.png differ diff --git a/mods/material/textures/material_stone_brick.png b/mods/material/textures/material_stone_brick.png new file mode 100644 index 0000000..434acc7 Binary files /dev/null and b/mods/material/textures/material_stone_brick.png differ diff --git a/mods/material/textures/material_water.png b/mods/material/textures/material_water.png new file mode 100644 index 0000000..e2743c1 Binary files /dev/null and b/mods/material/textures/material_water.png differ diff --git a/mods/material/textures/material_water_flowing_animated.png b/mods/material/textures/material_water_flowing_animated.png new file mode 100644 index 0000000..4d9d1bf Binary files /dev/null and b/mods/material/textures/material_water_flowing_animated.png differ diff --git a/mods/material/textures/material_water_source_animated.png b/mods/material/textures/material_water_source_animated.png new file mode 100644 index 0000000..7e7f9ff Binary files /dev/null and b/mods/material/textures/material_water_source_animated.png differ diff --git a/mods/mobs/modpack.txt b/mods/mobs/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/tool/init.lua b/mods/tool/init.lua new file mode 100644 index 0000000..e69de29