diff --git a/README.txt b/README.txt index dba005b..2eaef5d 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,5 @@ -An improved game for the Minetest game engine [minetest_next] -================================================================= +An improved game for the Minetest game engine [minetest_tng] +============================================================ To use this game with Minetest, insert this repository as /games/minetest_next @@ -8,6 +8,19 @@ in the Minetest Engine. The Minetest engine can be found in: https://github.com/minetest/minetest/ +Introduction +------------ +Since I (LNJ / LNJplus) read that BlockMen leaves us, I decided to fork and continue BlockMen's really nice work! +Of course I would really like to hear your ideas and suggestions! +I changed the title of the game to Minetest: The NeXt Gameration. :D + +My plans: + - many new plants and trees + - CME (Creatures Mob Engine) that means some mobs + - some nice decorations like pictures, furniture + - many new cooking recipes + - hunger + License of source code ---------------------- @@ -32,7 +45,7 @@ License of media (textures and sounds) See README.txt in each mod directory for information about other authors. License of menu/header.png -Copyright (C) 2015 BlockMen CC BY-SA 3.0 +Copyright (C) 2016 LNJ CC BY-SA 3.0 (based on header by BlockMen CC BY-SA 3.0) License of menu/icon.png Copyright (C) 2014 BlockMen CC BY-SA 3.0 (based on icon by erlehmann CC BY-SA 3.0) diff --git a/game.conf b/game.conf index 25a467f..f118b5f 100644 --- a/game.conf +++ b/game.conf @@ -1 +1 @@ -name = Minetest NeXt +name = Minetest: The NeXt Gameration diff --git a/game_api.txt b/game_api.txt index a1042c0..eb1c1be 100644 --- a/game_api.txt +++ b/game_api.txt @@ -1,10 +1,10 @@ -Minetest NeXt - Game API +Minetest TNG - Game API ======================== -GitHub Repo: https://github.com/BlockMen/minetest_next +GitHub Repo: https://github.com/gamerbude/minetest_tng Introduction ------------ -Minetest NeXt offers multiple new possibilities in addition to the Minetest engine's API, +Minetest TNG offers multiple new possibilities in addition to the Minetest engine's API, allowing you to add new plants, stairs and much more. For information on the Minetest API, visit https://github.com/minetest/minetest/blob/master/doc/lua_api.txt @@ -13,6 +13,26 @@ Please note: [#ABC] refers to a section in this document ^ Explanation for line above +Overview: + - Bucket API + - Beds API, #Bed definition + - Doors API, #Door definition, #Trapdoor definition + - Farming API, #Hoe Definition, #Plant definition + - TNT API, #TNT definition + - Screwdriver API + - Stairs API + - Xpanes API, #Pane definition + - Fence API, #Fence definition + - Table API, #Table definition + - Player API, #Model definition + - Raillike definitions + - Default sounds + - Default constants + - Leafdecay + - Dyes, #Color groups, #Color groups + - Trees + + Bucket API ---------- The bucket API allows registering new types of buckets for non-default liquids. @@ -273,40 +293,30 @@ default.register_fence(itemstring, def) ^ The sounds of the fence. If it isn't defined it equals default.node_sound_wood_defaults(). } -Raillike definitions --------------------- -The following nodes use the group `connect_to_raillike` and will only connect to -raillike nodes within this group and the same group value. -Use `minetest.raillike_group()` to get the group value. +Table API +--------- +Creates tables of given material. -| Node type | Raillike group name -+-----------------------+-------------------- -| default:rail | "rail" -| tnt:gunpowder | "gunpowder" -| tnt:gunpowder_burning | "gunpowder" +default.register_table(itemstring, def) + -> itemstring: used for nodename and crafting recipes. + -> def: See [#Table deinition] -Example: -If you want to add a new rail type and want it to connect with default:rail, -add `connect_to_raillike=minetest.raillike_group("rail")` into the `groups` table -of your node. - - -Default sounds --------------- -Sounds inside the default table can be used within the sounds field of node definitions. - -default.node_sound_defaults() -default.node_sound_stone_defaults() -default.node_sound_dirt_defaults() -default.node_sound_sand_defaults() -default.node_sound_wood_defaults() -default.node_sound_leaves_defaults() -default.node_sound_glass_defaults() - -Default constants +#Table definition ----------------- -default.LIGHT_MAX -^ The maximum light level (see [Node definition] light_source) +By the way you can use here all preferences of the normal minetest.register_node function. +{ + description = "Wooden Table", + ^ The name / description of the table + tiles = {"default_wood.png"}, + ^ The texture(s) of the table. + material = "default:wood", + ^ The material which you need to craft the fence. + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, fuel = 6}, + ^ The groups of the table. If it isn't defined it equals {choppy = 2, + oddly_breakable_by_hand = 2, flammable = 2, fuel = 6}. + sounds = default.node_sound_wood_defaults() + ^ The sounds of the table. If it isn't defined it equals default.node_sound_wood_defaults(). +} Player API ---------- @@ -346,8 +356,8 @@ default.player_get_animation(player) ^ Any of the fields of the returned table may be nil. -> player: PlayerRef -Model Definition ----------------- +#Model definition +----------------- { animation_speed = 30, -- Default animation speed, in FPS. textures = {"character.png", }, -- Default array of textures. @@ -360,6 +370,41 @@ Model Definition }, } +Raillike definitions +-------------------- +The following nodes use the group `connect_to_raillike` and will only connect to +raillike nodes within this group and the same group value. +Use `minetest.raillike_group()` to get the group value. + +| Node type | Raillike group name ++-----------------------+-------------------- +| default:rail | "rail" +| tnt:gunpowder | "gunpowder" +| tnt:gunpowder_burning | "gunpowder" + +Example: +If you want to add a new rail type and want it to connect with default:rail, +add `connect_to_raillike=minetest.raillike_group("rail")` into the `groups` table +of your node. + + +Default sounds +-------------- +Sounds inside the default table can be used within the sounds field of node definitions. + +default.node_sound_defaults() +default.node_sound_stone_defaults() +default.node_sound_dirt_defaults() +default.node_sound_sand_defaults() +default.node_sound_wood_defaults() +default.node_sound_leaves_defaults() +default.node_sound_glass_defaults() + +Default constants +----------------- +default.LIGHT_MAX +^ The maximum light level (see [Node definition] light_source) + Leafdecay --------- To enable leaf decay for a node, add it to the "leafdecay" group. diff --git a/menu/header.png b/menu/header.png index 211a272..2599294 100644 Binary files a/menu/header.png and b/menu/header.png differ diff --git a/mods/armor/README.txt b/mods/armor/README.txt index e15e176..094cc73 100644 --- a/mods/armor/README.txt +++ b/mods/armor/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/beds/README.txt b/mods/beds/README.txt index a15dafa..bdb1b5a 100644 --- a/mods/beds/README.txt +++ b/mods/beds/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/boats/README.txt b/mods/boats/README.txt index ba6640a..ddb0a2e 100644 --- a/mods/boats/README.txt +++ b/mods/boats/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/bones/README.txt b/mods/bones/README.txt index 8016f59..8994796 100644 --- a/mods/bones/README.txt +++ b/mods/bones/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/bucket/README.txt b/mods/bucket/README.txt index 1507ac6..50107a9 100644 --- a/mods/bucket/README.txt +++ b/mods/bucket/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/creative/README.txt b/mods/creative/README.txt index 003f987..dbaac95 100644 --- a/mods/creative/README.txt +++ b/mods/creative/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/default/README.txt b/mods/default/README.txt index 880fcd8..002f5de 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -1,10 +1,11 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- Copyright (C) 2011-2012 celeron55, Perttu Ahola Copyright (C) 2014-2015 BlockMen +Copyright (C) 2016 LNJ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,6 +25,10 @@ License of media (textures, sounds, meshes): -------------------------------------------- (by Authors) +JBB (CC BY-SA 3.0): + default_itemframe.png + default_jungleleaves.png, based on texture of BlockMen (CC BY-SA 3.0) + Cisoun (WTFPL): default_lava.png default_sapling.png @@ -129,7 +134,6 @@ BlockMen (CC BY-SA 3.0): default_grass_side.png default_grass_*.png, based on texture of Gambit (WTFPL) default_iron_ingot.png - default_jungleleaves.png default_jungletree.png default_jungletree_top.png default_lava_flowing_animated.png diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index aceb92e..3e04c28 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -713,3 +713,12 @@ minetest.register_craft({ output = "default:charcoal", recipe = "group:tree", }) + +minetest.register_craft({ + output = "default:itemframe", + recipe = { + {"default:stick", "default:stick", "default:stick"}, + {"default:stick", "default:paper", "default:stick"}, + {"default:stick", "default:stick", "default:stick"}, + } +}) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index c62b468..985c8f9 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1,56 +1,61 @@ -local modpath = minetest.get_modpath("default") +local modpath = minetest.get_modpath("default") .. "/nodes/" -dofile(modpath .. "/nodes/sounds.lua") +dofile(modpath .. "sounds.lua") -- full/natural/mapgen -dofile(modpath .. "/nodes/ores.lua") -dofile(modpath .. "/nodes/leaves.lua") -dofile(modpath .. "/nodes/logs.lua") +dofile(modpath .. "ores.lua") +dofile(modpath .. "leaves.lua") +dofile(modpath .. "logs.lua") -dofile(modpath .. "/nodes/dirt.lua") -dofile(modpath .. "/nodes/sand.lua") -dofile(modpath .. "/nodes/gravel.lua") -dofile(modpath .. "/nodes/stone.lua") -dofile(modpath .. "/nodes/cobble.lua") +dofile(modpath .. "dirt.lua") +dofile(modpath .. "sand.lua") +dofile(modpath .. "gravel.lua") +dofile(modpath .. "stone.lua") +dofile(modpath .. "cobble.lua") -dofile(modpath .. "/nodes/ice.lua") -dofile(modpath .. "/nodes/snow.lua") +dofile(modpath .. "ice.lua") +dofile(modpath .. "snow.lua") -- Plants -dofile(modpath .. "/nodes/grass.lua") -dofile(modpath .. "/nodes/papyrus.lua") -dofile(modpath .. "/nodes/saplings.lua") +dofile(modpath .. "grass.lua") +dofile(modpath .. "papyrus.lua") +dofile(modpath .. "saplings.lua") -dofile(modpath .. "/nodes/cactus.lua") +dofile(modpath .. "cactus.lua") -- liquids -dofile(modpath .. "/nodes/water.lua") -dofile(modpath .. "/nodes/lava.lua") +dofile(modpath .. "water.lua") +dofile(modpath .. "lava.lua") -- crafted -dofile(modpath .. "/nodes/glass.lua") -dofile(modpath .. "/nodes/planks.lua") +dofile(modpath .. "glass.lua") +dofile(modpath .. "planks.lua") -dofile(modpath .. "/nodes/bricks.lua") +dofile(modpath .. "bricks.lua") +-- light +dofile(modpath .. "torch.lua") +dofile(modpath .. "lamps.lua") + +-- blocks with an inventory +dofile(modpath .. "chests.lua") +dofile(modpath .. "furnace.lua") +dofile(modpath .. "bookshelf.lua") + +-- nodes with special functions +dofile(modpath .. "signs.lua") +dofile(modpath .. "fences.lua") +dofile(modpath .. "latter.lua") +dofile(modpath .. "rails.lua") +dofile(modpath .. "itemframes.lua") +dofile(modpath .. "tables.lua") + -- special -dofile(modpath .. "/nodes/torch.lua") -dofile(modpath .. "/nodes/furnace.lua") -dofile(modpath .. "/nodes/chests.lua") -dofile(modpath .. "/nodes/bookshelf.lua") -dofile(modpath .. "/nodes/lamps.lua") +dofile(modpath .. "food.lua") +dofile(modpath .. "nyancat.lua") -dofile(modpath .. "/nodes/food.lua") - -dofile(modpath .. "/nodes/latter.lua") -dofile(modpath .. "/nodes/rails.lua") -dofile(modpath .. "/nodes/signs.lua") -dofile(modpath .. "/nodes/fences.lua") - -dofile(modpath .. "/nodes/nyancat.lua") - -dofile(modpath .. "/nodes/unused.lua") +dofile(modpath .. "unused.lua") diff --git a/mods/default/nodes/itemframes.lua b/mods/default/nodes/itemframes.lua new file mode 100644 index 0000000..af0af80 --- /dev/null +++ b/mods/default/nodes/itemframes.lua @@ -0,0 +1,133 @@ +local itemframe = {} + +minetest.register_entity("default:itemframe_item",{ + hp_max = 1, + visual = "wielditem", + visual_size = {x = 0.33, y = 0.33}, + collisionbox = {0, 0, 0, 0, 0, 0}, + physical = false, + textures = {"air"}, + on_activate = function(self, staticdata) + if itemframe.nodename ~= nil and itemframe.texture ~= nil then + self.nodename = itemframe.nodename + itemframe.nodename = nil + self.texture = itemframe.texture + itemframe.texture = nil + else + if staticdata ~= nil and staticdata ~= "" then + local data = staticdata:split(";") + if data and data[1] and data[2] then + self.nodename = data[1] + self.texture = data[2] + end + end + end + if self.texture ~= nil then + self.object:set_properties({textures = {self.texture}}) + end + end, + get_staticdata = function(self) + if self.nodename ~= nil and self.texture ~= nil then + return self.nodename .. ";" .. self.texture + end + return + end +}) + + +local facedir = {} +facedir[0] = {x = 0, y = 0, z = 1} +facedir[1] = {x = 1, y = 0, z = 0} +facedir[2] = {x = 0, y = 0, z = -1} +facedir[3] = {x = -1, y = 0, z= 0} + +local remove_item = function(pos, node) + local objs = nil + if node.name == "default:itemframe" then + objs = minetest.get_objects_inside_radius(pos, .5) + end + if objs then + for _, obj in ipairs(objs) do + if obj and obj:get_luaentity() and obj:get_luaentity().name == "default:itemframe_item" then + obj:remove() + end + end + end +end + +local update_item = function(pos, node) + remove_item(pos, node) + local meta = minetest.env:get_meta(pos) + if meta:get_string("item") ~= "" then + if node.name == "default:itemframe" then + local posad = facedir[node.param2] + if not posad then return end + pos.x = pos.x + posad.x*6.5/16 + pos.y = pos.y + posad.y*6.5/16 + pos.z = pos.z + posad.z*6.5/16 + elseif node.name == "itemframes:pedestal" then + pos.y = pos.y + 12/16+.33 + end + itemframe.nodename = node.name + itemframe.texture = ItemStack(meta:get_string("item")):get_name() + local e = minetest.env:add_entity(pos,"default:itemframe_item") + if node.name == "default:itemframe" then + local yaw = math.pi*2 - node.param2 * math.pi/2 + e:setyaw(yaw) + end + end +end + +local drop_item = function(pos, node) + local meta = minetest.get_meta(pos) + if meta:get_string("item") ~= "" then + if node.name == "default:itemframe" then + minetest.add_item(pos, meta:get_string("item")) + end + meta:set_string("item", "") + end + remove_item(pos, node) +end + +minetest.register_node("default:itemframe",{ + description = "Item frame", + drawtype = "nodebox", + node_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} }, + selection_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} }, + tiles = {"default_itemframe.png"}, + inventory_image = "default_itemframe.png", + wield_image = "default_itemframe.png", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = {choppy=2, dig_immediate=2, flammable = 2, fuel = 4}, + legacy_wallmounted = true, + sounds = default.node_sound_defaults(), + on_rightclick = function(pos, node, clicker, itemstack) + if not itemstack then return end + local meta = minetest.get_meta(pos) + drop_item(pos,node) + local s = itemstack:take_item() + meta:set_string("item",s:to_string()) + update_item(pos,node) + return itemstack + end, + on_punch = function(pos, node) + drop_item(pos, node) + end +}) + +--[[ +-- automatically restore entities lost from frames +-- due to /clearobjects or similar + +minetest.register_abm({ + nodenames = { "default:itemframe" }, + interval = 15, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + if #minetest.get_objects_inside_radius(pos, 0.5) > 0 then return end + update_item(pos, node) + end +}) +--]] diff --git a/mods/default/nodes/tables.lua b/mods/default/nodes/tables.lua new file mode 100644 index 0000000..d9d28d2 --- /dev/null +++ b/mods/default/nodes/tables.lua @@ -0,0 +1,85 @@ +function default.register_table(itemstring, def) + local material = def.material + + -- set defaults if nothing is set already + if not def.groups then + def.groups = {choppy = 2, flammable = 2, oddly_breakable_by_hand = 2, fuel = 6} + end + if not def.sounds then + def.sounds = default.node_sound_wood_defaults() + end + + -- set table properties + def.paramtype = "light" + def.drawtype = "nodebox" + def.node_box = { + type = "fixed", + fixed = { + {-0.5, 0.375, -0.5, 0.5, 0.5, 0.5}, + {-0.1875, -0.5, -0.1875, 0.1875, 0.375, 0.1875} + } + } + + -- clean up variables + def.material = nil + + -- register the table node + minetest.register_node(itemstring, def) + + -- and register the crafting recipe + minetest.register_craft({ + output = itemstring .. " 4", + recipe = { + {material, material, material}, + { "", material, "" }, + { "", material, "" }, + } + }) + +end + +default.register_table("default:table_wood", { + description = "Wooden Table", + tiles = {"default_wood.png"}, + material = "default:wood" +}) + +default.register_table("default:table_junglewood", { + description = "Junglewood Table", + tiles = {"default_junglewood.png"}, + material = "default:junglewood" +}) + +default.register_table("default:table_pinewood", { + description = "Pine Wood Table", + tiles = {"default_pine_wood.png"}, + material = "default:pinewood" +}) + +default.register_table("default:table_acaciawood", { + description = "Acacia Wood Table", + tiles = {"default_acacia_wood.png"}, + material = "default:acacia_wood" +}) + +default.register_table("default:table_birchwood", { + description = "Birch Wood Table", + tiles = {"default_birch_wood.png"}, + material = "default:birch_wood" +}) + +default.register_table("default:table_stone", { + description = "Stone Table", + tiles = {"default_stone.png"}, + material = "default:stone", + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults() +}) + +default.register_table("default:table_cobble", { + description = "Cobblestone Table", + tiles = {"default_cobble.png"}, + material = "default:cobble", + groups = {cracky = 2}, + sounds = default.node_sound_stone_defaults() +}) diff --git a/mods/default/textures/16x_blank.png b/mods/default/textures/16x_blank.png index e0ba59f..5354dc2 100644 Binary files a/mods/default/textures/16x_blank.png and b/mods/default/textures/16x_blank.png differ diff --git a/mods/default/textures/default_acacia_leaves.png b/mods/default/textures/default_acacia_leaves.png index 626e1b3..fea6090 100644 Binary files a/mods/default/textures/default_acacia_leaves.png and b/mods/default/textures/default_acacia_leaves.png differ diff --git a/mods/default/textures/default_acacia_sapling.png b/mods/default/textures/default_acacia_sapling.png index 07170a0..086fdec 100644 Binary files a/mods/default/textures/default_acacia_sapling.png and b/mods/default/textures/default_acacia_sapling.png differ diff --git a/mods/default/textures/default_acacia_tree.png b/mods/default/textures/default_acacia_tree.png index 91058c0..5f5a464 100644 Binary files a/mods/default/textures/default_acacia_tree.png and b/mods/default/textures/default_acacia_tree.png differ diff --git a/mods/default/textures/default_acacia_tree_top.png b/mods/default/textures/default_acacia_tree_top.png index b17cc96..d69a485 100644 Binary files a/mods/default/textures/default_acacia_tree_top.png and b/mods/default/textures/default_acacia_tree_top.png differ diff --git a/mods/default/textures/default_acacia_wood.png b/mods/default/textures/default_acacia_wood.png index a7c8bd5..3b2fa34 100644 Binary files a/mods/default/textures/default_acacia_wood.png and b/mods/default/textures/default_acacia_wood.png differ diff --git a/mods/default/textures/default_armor_blank.png b/mods/default/textures/default_armor_blank.png index ac157a9..ae16299 100644 Binary files a/mods/default/textures/default_armor_blank.png and b/mods/default/textures/default_armor_blank.png differ diff --git a/mods/default/textures/default_birch_leaves.png b/mods/default/textures/default_birch_leaves.png index 7306423..ba083d1 100644 Binary files a/mods/default/textures/default_birch_leaves.png and b/mods/default/textures/default_birch_leaves.png differ diff --git a/mods/default/textures/default_birch_sapling.png b/mods/default/textures/default_birch_sapling.png index f8d9136..ad28f5a 100644 Binary files a/mods/default/textures/default_birch_sapling.png and b/mods/default/textures/default_birch_sapling.png differ diff --git a/mods/default/textures/default_birch_tree.png b/mods/default/textures/default_birch_tree.png index 62549cd..a684db3 100644 Binary files a/mods/default/textures/default_birch_tree.png and b/mods/default/textures/default_birch_tree.png differ diff --git a/mods/default/textures/default_birch_tree_top.png b/mods/default/textures/default_birch_tree_top.png index 1807aaa..b891ac5 100644 Binary files a/mods/default/textures/default_birch_tree_top.png and b/mods/default/textures/default_birch_tree_top.png differ diff --git a/mods/default/textures/default_birch_wood.png b/mods/default/textures/default_birch_wood.png index d16fdc9..f31ac30 100644 Binary files a/mods/default/textures/default_birch_wood.png and b/mods/default/textures/default_birch_wood.png differ diff --git a/mods/default/textures/default_book_written.png b/mods/default/textures/default_book_written.png index f5c0a77..5ac4e22 100644 Binary files a/mods/default/textures/default_book_written.png and b/mods/default/textures/default_book_written.png differ diff --git a/mods/default/textures/default_bookshelf.png b/mods/default/textures/default_bookshelf.png index 10d6483..3407f75 100644 Binary files a/mods/default/textures/default_bookshelf.png and b/mods/default/textures/default_bookshelf.png differ diff --git a/mods/default/textures/default_brick.png b/mods/default/textures/default_brick.png index ab19121..de98961 100644 Binary files a/mods/default/textures/default_brick.png and b/mods/default/textures/default_brick.png differ diff --git a/mods/default/textures/default_bronze_block.png b/mods/default/textures/default_bronze_block.png index 1d0c9d5..491fc78 100644 Binary files a/mods/default/textures/default_bronze_block.png and b/mods/default/textures/default_bronze_block.png differ diff --git a/mods/default/textures/default_cactus_side.png b/mods/default/textures/default_cactus_side.png index 8d6c40c..e5c10c3 100644 Binary files a/mods/default/textures/default_cactus_side.png and b/mods/default/textures/default_cactus_side.png differ diff --git a/mods/default/textures/default_charcoal.png b/mods/default/textures/default_charcoal.png index 52b445a..bbb49ba 100644 Binary files a/mods/default/textures/default_charcoal.png and b/mods/default/textures/default_charcoal.png differ diff --git a/mods/default/textures/default_chest_front.png b/mods/default/textures/default_chest_front.png index 85227d8..f413279 100644 Binary files a/mods/default/textures/default_chest_front.png and b/mods/default/textures/default_chest_front.png differ diff --git a/mods/default/textures/default_chest_lock.png b/mods/default/textures/default_chest_lock.png index 73f46c7..b1885ea 100644 Binary files a/mods/default/textures/default_chest_lock.png and b/mods/default/textures/default_chest_lock.png differ diff --git a/mods/default/textures/default_chest_top.png b/mods/default/textures/default_chest_top.png index f1a5cb5..1fbdbb9 100644 Binary files a/mods/default/textures/default_chest_top.png and b/mods/default/textures/default_chest_top.png differ diff --git a/mods/default/textures/default_coal_block.png b/mods/default/textures/default_coal_block.png index 180eaea..987c383 100644 Binary files a/mods/default/textures/default_coal_block.png and b/mods/default/textures/default_coal_block.png differ diff --git a/mods/default/textures/default_coal_lump.png b/mods/default/textures/default_coal_lump.png index f31ad1f..16e9282 100644 Binary files a/mods/default/textures/default_coal_lump.png and b/mods/default/textures/default_coal_lump.png differ diff --git a/mods/default/textures/default_copper_block.png b/mods/default/textures/default_copper_block.png index 8533754..e1b60f0 100644 Binary files a/mods/default/textures/default_copper_block.png and b/mods/default/textures/default_copper_block.png differ diff --git a/mods/default/textures/default_desert_cobble.png b/mods/default/textures/default_desert_cobble.png index f914c98..d807c3d 100644 Binary files a/mods/default/textures/default_desert_cobble.png and b/mods/default/textures/default_desert_cobble.png differ diff --git a/mods/default/textures/default_desert_sand.png b/mods/default/textures/default_desert_sand.png index 371b8c7..75ade0b 100644 Binary files a/mods/default/textures/default_desert_sand.png and b/mods/default/textures/default_desert_sand.png differ diff --git a/mods/default/textures/default_desert_stone_brick.png b/mods/default/textures/default_desert_stone_brick.png index 42d9f27..1603629 100644 Binary files a/mods/default/textures/default_desert_stone_brick.png and b/mods/default/textures/default_desert_stone_brick.png differ diff --git a/mods/default/textures/default_dirt.png b/mods/default/textures/default_dirt.png index ca7e4ae..b12331e 100644 Binary files a/mods/default/textures/default_dirt.png and b/mods/default/textures/default_dirt.png differ diff --git a/mods/default/textures/default_dry_grass_2.png b/mods/default/textures/default_dry_grass_2.png index c925ace..b7c463f 100644 Binary files a/mods/default/textures/default_dry_grass_2.png and b/mods/default/textures/default_dry_grass_2.png differ diff --git a/mods/default/textures/default_dry_grass_3.png b/mods/default/textures/default_dry_grass_3.png index 4e4d84e..c7d76f2 100644 Binary files a/mods/default/textures/default_dry_grass_3.png and b/mods/default/textures/default_dry_grass_3.png differ diff --git a/mods/default/textures/default_dry_grass_4.png b/mods/default/textures/default_dry_grass_4.png index d315849..4447c7f 100644 Binary files a/mods/default/textures/default_dry_grass_4.png and b/mods/default/textures/default_dry_grass_4.png differ diff --git a/mods/default/textures/default_dry_grass_5.png b/mods/default/textures/default_dry_grass_5.png index 871d04c..497bb5a 100644 Binary files a/mods/default/textures/default_dry_grass_5.png and b/mods/default/textures/default_dry_grass_5.png differ diff --git a/mods/default/textures/default_dry_grass_side.png b/mods/default/textures/default_dry_grass_side.png index 27f4d96..21c6d9e 100644 Binary files a/mods/default/textures/default_dry_grass_side.png and b/mods/default/textures/default_dry_grass_side.png differ diff --git a/mods/default/textures/default_footprint.png b/mods/default/textures/default_footprint.png index 41d9546..84e2acf 100644 Binary files a/mods/default/textures/default_footprint.png and b/mods/default/textures/default_footprint.png differ diff --git a/mods/default/textures/default_furnace_bottom.png b/mods/default/textures/default_furnace_bottom.png index b79ed06..92279ba 100644 Binary files a/mods/default/textures/default_furnace_bottom.png and b/mods/default/textures/default_furnace_bottom.png differ diff --git a/mods/default/textures/default_furnace_fire_fg.png b/mods/default/textures/default_furnace_fire_fg.png index 63888f3..576f113 100644 Binary files a/mods/default/textures/default_furnace_fire_fg.png and b/mods/default/textures/default_furnace_fire_fg.png differ diff --git a/mods/default/textures/default_furnace_front.png b/mods/default/textures/default_furnace_front.png index 8c1798e..f445d83 100644 Binary files a/mods/default/textures/default_furnace_front.png and b/mods/default/textures/default_furnace_front.png differ diff --git a/mods/default/textures/default_furnace_front_active.png b/mods/default/textures/default_furnace_front_active.png index ea43ed9..68c03f5 100644 Binary files a/mods/default/textures/default_furnace_front_active.png and b/mods/default/textures/default_furnace_front_active.png differ diff --git a/mods/default/textures/default_furnace_top.png b/mods/default/textures/default_furnace_top.png index b79ed06..92279ba 100644 Binary files a/mods/default/textures/default_furnace_top.png and b/mods/default/textures/default_furnace_top.png differ diff --git a/mods/default/textures/default_glass.png b/mods/default/textures/default_glass.png index da25402..7086ced 100644 Binary files a/mods/default/textures/default_glass.png and b/mods/default/textures/default_glass.png differ diff --git a/mods/default/textures/default_gold_lump.png b/mods/default/textures/default_gold_lump.png index 280c25a..1fdd221 100644 Binary files a/mods/default/textures/default_gold_lump.png and b/mods/default/textures/default_gold_lump.png differ diff --git a/mods/default/textures/default_grass.png b/mods/default/textures/default_grass.png index c1ca922..45da4e4 100644 Binary files a/mods/default/textures/default_grass.png and b/mods/default/textures/default_grass.png differ diff --git a/mods/default/textures/default_ice.png b/mods/default/textures/default_ice.png index be8eadd..d372521 100644 Binary files a/mods/default/textures/default_ice.png and b/mods/default/textures/default_ice.png differ diff --git a/mods/default/textures/default_itemframe.png b/mods/default/textures/default_itemframe.png new file mode 100644 index 0000000..2ff6cf3 Binary files /dev/null and b/mods/default/textures/default_itemframe.png differ diff --git a/mods/default/textures/default_junglegrass.png b/mods/default/textures/default_junglegrass.png index d4b6c79..14e0395 100644 Binary files a/mods/default/textures/default_junglegrass.png and b/mods/default/textures/default_junglegrass.png differ diff --git a/mods/default/textures/default_jungleleaves.png b/mods/default/textures/default_jungleleaves.png index 4bbcb2d..4754598 100644 Binary files a/mods/default/textures/default_jungleleaves.png and b/mods/default/textures/default_jungleleaves.png differ diff --git a/mods/default/textures/default_jungleleaves_simple.png b/mods/default/textures/default_jungleleaves_simple.png index 689195f..493d3bb 100644 Binary files a/mods/default/textures/default_jungleleaves_simple.png and b/mods/default/textures/default_jungleleaves_simple.png differ diff --git a/mods/default/textures/default_jungletree.png b/mods/default/textures/default_jungletree.png index 269fe1b..a8f4bf6 100644 Binary files a/mods/default/textures/default_jungletree.png and b/mods/default/textures/default_jungletree.png differ diff --git a/mods/default/textures/default_jungletree_top.png b/mods/default/textures/default_jungletree_top.png index 82ca98d..4dbda2c 100644 Binary files a/mods/default/textures/default_jungletree_top.png and b/mods/default/textures/default_jungletree_top.png differ diff --git a/mods/default/textures/default_junglewood.png b/mods/default/textures/default_junglewood.png index f7b1acb..446fdd1 100644 Binary files a/mods/default/textures/default_junglewood.png and b/mods/default/textures/default_junglewood.png differ diff --git a/mods/default/textures/default_ladder.png b/mods/default/textures/default_ladder.png index c167fff..6e18e54 100644 Binary files a/mods/default/textures/default_ladder.png and b/mods/default/textures/default_ladder.png differ diff --git a/mods/default/textures/default_lava_flowing_animated.png b/mods/default/textures/default_lava_flowing_animated.png index 2ec0746..ebb0ec1 100644 Binary files a/mods/default/textures/default_lava_flowing_animated.png and b/mods/default/textures/default_lava_flowing_animated.png differ diff --git a/mods/default/textures/default_lava_source_animated.png b/mods/default/textures/default_lava_source_animated.png index 32267a6..326af64 100644 Binary files a/mods/default/textures/default_lava_source_animated.png and b/mods/default/textures/default_lava_source_animated.png differ diff --git a/mods/default/textures/default_leaves.png b/mods/default/textures/default_leaves.png index 4fab173..79ddefd 100644 Binary files a/mods/default/textures/default_leaves.png and b/mods/default/textures/default_leaves.png differ diff --git a/mods/default/textures/default_leaves_simple.png b/mods/default/textures/default_leaves_simple.png index e492a32..4b51b41 100644 Binary files a/mods/default/textures/default_leaves_simple.png and b/mods/default/textures/default_leaves_simple.png differ diff --git a/mods/default/textures/default_leaves_with_apple.png b/mods/default/textures/default_leaves_with_apple.png index 48f0f2b..e4f01d8 100644 Binary files a/mods/default/textures/default_leaves_with_apple.png and b/mods/default/textures/default_leaves_with_apple.png differ diff --git a/mods/default/textures/default_meselamp.png b/mods/default/textures/default_meselamp.png index c67cf88..ef82a2b 100644 Binary files a/mods/default/textures/default_meselamp.png and b/mods/default/textures/default_meselamp.png differ diff --git a/mods/default/textures/default_mineral_diamond.png b/mods/default/textures/default_mineral_diamond.png index 39c0f83..b817bd1 100644 Binary files a/mods/default/textures/default_mineral_diamond.png and b/mods/default/textures/default_mineral_diamond.png differ diff --git a/mods/default/textures/default_mineral_iron.png b/mods/default/textures/default_mineral_iron.png index bfec8b1..5d63062 100644 Binary files a/mods/default/textures/default_mineral_iron.png and b/mods/default/textures/default_mineral_iron.png differ diff --git a/mods/default/textures/default_mossycobble.png b/mods/default/textures/default_mossycobble.png index 1ae7c91..1071cb4 100644 Binary files a/mods/default/textures/default_mossycobble.png and b/mods/default/textures/default_mossycobble.png differ diff --git a/mods/default/textures/default_obsidian.png b/mods/default/textures/default_obsidian.png index 8f4a49c..30e063f 100644 Binary files a/mods/default/textures/default_obsidian.png and b/mods/default/textures/default_obsidian.png differ diff --git a/mods/default/textures/default_obsidian_glass_detail.png b/mods/default/textures/default_obsidian_glass_detail.png index a8bbec9..4b21e08 100644 Binary files a/mods/default/textures/default_obsidian_glass_detail.png and b/mods/default/textures/default_obsidian_glass_detail.png differ diff --git a/mods/default/textures/default_papyrus.png b/mods/default/textures/default_papyrus.png index a85e809..982d589 100644 Binary files a/mods/default/textures/default_papyrus.png and b/mods/default/textures/default_papyrus.png differ diff --git a/mods/default/textures/default_pine_needles.png b/mods/default/textures/default_pine_needles.png index 1a32f63..dcc4d84 100644 Binary files a/mods/default/textures/default_pine_needles.png and b/mods/default/textures/default_pine_needles.png differ diff --git a/mods/default/textures/default_pine_sapling.png b/mods/default/textures/default_pine_sapling.png index e800e31..c9159fb 100644 Binary files a/mods/default/textures/default_pine_sapling.png and b/mods/default/textures/default_pine_sapling.png differ diff --git a/mods/default/textures/default_pine_tree.png b/mods/default/textures/default_pine_tree.png index d06f81b..4447df8 100644 Binary files a/mods/default/textures/default_pine_tree.png and b/mods/default/textures/default_pine_tree.png differ diff --git a/mods/default/textures/default_pine_tree_top.png b/mods/default/textures/default_pine_tree_top.png index 56a3b4d..5efb4aa 100644 Binary files a/mods/default/textures/default_pine_tree_top.png and b/mods/default/textures/default_pine_tree_top.png differ diff --git a/mods/default/textures/default_pine_wood.png b/mods/default/textures/default_pine_wood.png index 3176b40..c3fe737 100644 Binary files a/mods/default/textures/default_pine_wood.png and b/mods/default/textures/default_pine_wood.png differ diff --git a/mods/default/textures/default_rail_t_junction.png b/mods/default/textures/default_rail_t_junction.png index 486c416..8479cb1 100644 Binary files a/mods/default/textures/default_rail_t_junction.png and b/mods/default/textures/default_rail_t_junction.png differ diff --git a/mods/default/textures/default_sand.png b/mods/default/textures/default_sand.png index 68b060c..c47091e 100644 Binary files a/mods/default/textures/default_sand.png and b/mods/default/textures/default_sand.png differ diff --git a/mods/default/textures/default_sandstone_brick.png b/mods/default/textures/default_sandstone_brick.png index e7150e5..5edce26 100644 Binary files a/mods/default/textures/default_sandstone_brick.png and b/mods/default/textures/default_sandstone_brick.png differ diff --git a/mods/default/textures/default_sign.png b/mods/default/textures/default_sign.png index 912a372..7899ae9 100644 Binary files a/mods/default/textures/default_sign.png and b/mods/default/textures/default_sign.png differ diff --git a/mods/default/textures/default_snow.png b/mods/default/textures/default_snow.png index 17c970c..bfba66f 100644 Binary files a/mods/default/textures/default_snow.png and b/mods/default/textures/default_snow.png differ diff --git a/mods/default/textures/default_snow_side.png b/mods/default/textures/default_snow_side.png index 6ed9cb9..71f8791 100644 Binary files a/mods/default/textures/default_snow_side.png and b/mods/default/textures/default_snow_side.png differ diff --git a/mods/default/textures/default_steel_block.png b/mods/default/textures/default_steel_block.png index 7f49f61..5e421f0 100644 Binary files a/mods/default/textures/default_steel_block.png and b/mods/default/textures/default_steel_block.png differ diff --git a/mods/default/textures/default_stone.png b/mods/default/textures/default_stone.png index 63cb7c4..d3f0ef8 100644 Binary files a/mods/default/textures/default_stone.png and b/mods/default/textures/default_stone.png differ diff --git a/mods/default/textures/default_stone_brick.png b/mods/default/textures/default_stone_brick.png index be949ab..d1880c3 100644 Binary files a/mods/default/textures/default_stone_brick.png and b/mods/default/textures/default_stone_brick.png differ diff --git a/mods/default/textures/default_tool_diamondpick.png b/mods/default/textures/default_tool_diamondpick.png index f9883c6..5dcc998 100644 Binary files a/mods/default/textures/default_tool_diamondpick.png and b/mods/default/textures/default_tool_diamondpick.png differ diff --git a/mods/default/textures/default_tree.png b/mods/default/textures/default_tree.png index 284eb34..5113b4e 100644 Binary files a/mods/default/textures/default_tree.png and b/mods/default/textures/default_tree.png differ diff --git a/mods/default/textures/default_tree_top.png b/mods/default/textures/default_tree_top.png index e19032a..9ed4503 100644 Binary files a/mods/default/textures/default_tree_top.png and b/mods/default/textures/default_tree_top.png differ diff --git a/mods/default/textures/default_water.png b/mods/default/textures/default_water.png index 00500e9..77863d6 100644 Binary files a/mods/default/textures/default_water.png and b/mods/default/textures/default_water.png differ diff --git a/mods/default/textures/gui_formbg.png b/mods/default/textures/gui_formbg.png index c543466..e259fec 100644 Binary files a/mods/default/textures/gui_formbg.png and b/mods/default/textures/gui_formbg.png differ diff --git a/mods/default/textures/gui_hotbar.png b/mods/default/textures/gui_hotbar.png index 73fb3ca..039f6f5 100644 Binary files a/mods/default/textures/gui_hotbar.png and b/mods/default/textures/gui_hotbar.png differ diff --git a/mods/doors/README.txt b/mods/doors/README.txt index 2c602da..7260975 100644 --- a/mods/doors/README.txt +++ b/mods/doors/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/dye/README.txt b/mods/dye/README.txt index 1552231..e57fb47 100644 --- a/mods/dye/README.txt +++ b/mods/dye/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/farming/README.txt b/mods/farming/README.txt index 1f643af..adf3f81 100644 --- a/mods/farming/README.txt +++ b/mods/farming/README.txt @@ -1,4 +1,4 @@ -MThis mod is part of Minetest NeXt +MThis mod is part of Minetest TNG ================================= License of source code: diff --git a/mods/farming/depends.txt b/mods/farming/depends.txt index 470ec30..be420a3 100644 --- a/mods/farming/depends.txt +++ b/mods/farming/depends.txt @@ -1,2 +1,2 @@ default -wool +wool \ No newline at end of file diff --git a/mods/farming/nodes.lua b/mods/farming/nodes.lua index 3c0f940..3847431 100644 --- a/mods/farming/nodes.lua +++ b/mods/farming/nodes.lua @@ -1,5 +1,5 @@ minetest.override_item("default:dirt", { - groups = {crumbly=3,soil=1}, + groups = {crumbly = 3, soil = 1}, soil = { base = "default:dirt", dry = "farming:soil", @@ -8,7 +8,7 @@ minetest.override_item("default:dirt", { }) minetest.override_item("default:dirt_with_grass", { - groups = {crumbly=3,soil=1}, + groups = {crumbly = 3, soil = 1}, soil = { base = "default:dirt_with_grass", dry = "farming:soil", @@ -20,7 +20,7 @@ minetest.register_node("farming:soil", { description = "Soil", tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"}, drop = "default:dirt", - groups = {crumbly=3, not_in_creative_inventory=1, soil=2, grassland = 1, field = 1}, + groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 2, grassland = 1, field = 1}, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dirt", @@ -33,7 +33,7 @@ minetest.register_node("farming:soil_wet", { description = "Wet Soil", tiles = {"default_dirt.png^farming_soil_wet.png", "default_dirt.png^farming_soil_wet_side.png"}, drop = "default:dirt", - groups = {crumbly=3, not_in_creative_inventory=1, soil=3, wet = 1, grassland = 1, field = 1}, + groups = {crumbly = 3, not_in_creative_inventory = 1, soil = 3, wet = 1, grassland = 1, field = 1}, sounds = default.node_sound_dirt_defaults(), soil = { base = "default:dirt", @@ -43,7 +43,7 @@ minetest.register_node("farming:soil_wet", { }) minetest.override_item("default:desert_sand", { - groups = {crumbly=3, falling_node=1, sand=1, soil = 1}, + groups = {crumbly = 3, falling_node = 1, sand = 1, soil = 1}, soil = { base = "default:desert_sand", dry = "farming:desert_sand_soil", @@ -54,7 +54,7 @@ minetest.register_node("farming:desert_sand_soil", { description = "Desert Sand Soil", drop = "default:desert_sand", tiles = {"farming_desert_sand_soil.png", "default_desert_sand.png"}, - groups = {crumbly=3, not_in_creative_inventory = 1, falling_node=1, sand=1, soil = 2, desert = 1, field = 1}, + groups = {crumbly = 3, not_in_creative_inventory = 1, falling_node=1, sand=1, soil = 2, desert = 1, field = 1}, sounds = default.node_sound_sand_defaults(), soil = { base = "default:desert_sand", @@ -67,7 +67,7 @@ minetest.register_node("farming:desert_sand_soil_wet", { description = "Wet Desert Sand Soil", drop = "default:desert_sand", tiles = {"farming_desert_sand_soil_wet.png", "farming_desert_sand_soil_wet_side.png"}, - groups = {crumbly=3, falling_node=1, sand=1, not_in_creative_inventory=1, soil=3, wet = 1, desert = 1, field = 1}, + groups = {crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = 1, soil = 3, wet = 1, desert = 1, field = 1}, sounds = default.node_sound_sand_defaults(), soil = { base = "default:desert_sand", @@ -80,7 +80,7 @@ minetest.register_node("farming:straw", { description = "Straw", tiles = {"farming_straw.png"}, is_ground_content = false, - groups = {snappy=3, flammable=4}, + groups = {snappy = 3, flammable = 4}, sounds = default.node_sound_leaves_defaults(), }) @@ -141,16 +141,18 @@ for i = 1, 5 do minetest.override_item("default:grass_"..i, {drop = { max_items = 1, items = { - {items = {'farming:seed_wheat'},rarity = 5}, + {items = {'farming:seed_wheat'}, rarity = 5}, {items = {'default:grass_1'}}, } }}) end - -minetest.override_item("default:junglegrass", {drop = { - max_items = 1, - items = { - {items = {'farming:seed_cotton'},rarity = 8}, - {items = {'default:junglegrass'}}, + +minetest.override_item("default:junglegrass", { + drop = { + max_items = 1, + items = { + {items = {'farming:seed_cotton'}, rarity = 8}, + {items = {'default:junglegrass'}}, + } } -}}) +}) diff --git a/mods/fire/README.txt b/mods/fire/README.txt index 28a379a..77cad6a 100644 --- a/mods/fire/README.txt +++ b/mods/fire/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/flowers/README.txt b/mods/flowers/README.txt index 2b0d76c..6e52a17 100644 --- a/mods/flowers/README.txt +++ b/mods/flowers/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================= +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/plants/README.txt b/mods/plants/README.txt new file mode 100644 index 0000000..1f4f149 --- /dev/null +++ b/mods/plants/README.txt @@ -0,0 +1,41 @@ +This mod is part of Minetest TNG +================================ + +Status +------ +This mod is in heavy development. It may contain bugs. +~ 1% finished. + +License of source code: +----------------------- +Copyright (C) 2016 LNJ + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + + +License of media (textures, sounds, meshes): +-------------------------------------------- +(by Authors) + +LNJ (CC BY-SA 3.0): + plants_vine.png + +MatrexsVigil [#1]: + plants_pear.png + plants_pear_1.png + plants_pear_2.png + plants_pear_sapling.png + +[#1]: + See for all information about it. diff --git a/mods/plants/depends.txt b/mods/plants/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/mods/plants/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/mods/plants/init.lua b/mods/plants/init.lua new file mode 100644 index 0000000..88263e0 --- /dev/null +++ b/mods/plants/init.lua @@ -0,0 +1,18 @@ +plants = {} + +-- the growing time factor decides how long every plant needs to grow 1.0 (normal), 0.75 (fast), 1.25 (slow) +-- not used at the moment +if not minetest.setting_get ("plants_growtime_factor") then + plants.growtime_factor = 1.0 +else + plants.growtime_factor = minetest.setting_get ("plants_growtime_factor") +end + +-- execute all files +plants.path = minetest.get_modpath("plants") + +-- Food +dofile (plants.path .. "/lua/food/pear.lua") + +-- Plants +dofile (plants.path .. "/lua/plants/vines.lua") diff --git a/mods/plants/lua/food/pear.lua b/mods/plants/lua/food/pear.lua new file mode 100644 index 0000000..538ce04 --- /dev/null +++ b/mods/plants/lua/food/pear.lua @@ -0,0 +1,90 @@ +minetest.register_node("plants:pear", { + description = "Pear", + drawtype = "plantlike", + visual_scale = 1.0, + tiles = {"plants_pear.png"}, + inventory_image = "plants_pear.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + is_ground_content = false, + selection_box = { + type = "fixed", + fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} + }, + groups = {fleshy = 3, dig_immediate = 3, flammable = 2, + leafdecay = 3, leafdecay_drop = 1}, + on_use = minetest.item_eat(1), + sounds = default.node_sound_leaves_defaults(), + + after_place_node = function(pos, placer, itemstack) + if placer:is_player() then + minetest.set_node(pos, {name = "plants:pear", param2 = 1}) + end + end, +}) + +--[[ +minetest.register_alias("plants:pear_3", "plants:pear") +3 +minetest.register_node("plants:pear_1", { + drawtype = "plantlike", + drop = "", + visual_scale = 1.0, + tiles = {"plants_pear_1.png"}, + paramtype = "light", + sunlight_propagates = true, + walkable = false, + is_ground_content = false, + selection_box = { + type = "fixed", + fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} + }, + groups = {fleshy = 3, dig_immediate = 3, flammable = 2, not_in_creative_inventory = 1, + leafdecay = 3, leafdecay_drop = 1}, + sounds = default.node_sound_leaves_defaults(), +--[[ + after_place_node = function(pos, placer, itemstack) + if placer:is_player() then + minetest.set_node(pos, {name = "default:apple", param2 = 1}) + end + end, +--] +}) + +minetest.register_node("plants:pear_2", { + drawtype = "plantlike", + drop = "", + visual_scale = 1.0, + tiles = {"plants_pear_2.png"}, + paramtype = "light", + sunlight_propagates = true, + walkable = false, + is_ground_content = false, + selection_box = { + type = "fixed", + fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} + }, + groups = {fleshy = 3, dig_immediate = 3, flammable = 2, not_in_creative_inventory = 1, + leafdecay = 3, leafdecay_drop = 1}, + sounds = default.node_sound_leaves_defaults(), +--[[ + after_place_node = function(pos, placer, itemstack) + if placer:is_player() then + minetest.set_node(pos, {name = "default:apple", param2 = 1}) + end + end, +--] +}) + + +minetest.register_abm({ + nodenames = {"group:growing_fruit"}, + interval = 30, + chance = 30, + action = function (pos, node) + + end +}) + +--]] \ No newline at end of file diff --git a/mods/plants/lua/plants/vines.lua b/mods/plants/lua/plants/vines.lua new file mode 100644 index 0000000..606192d --- /dev/null +++ b/mods/plants/lua/plants/vines.lua @@ -0,0 +1,20 @@ +minetest.register_node ("plants:vine", { + description = "Vine", + drawtype = "signlike", + tiles = {"plants_vine.png"}, + inventory_image = "plants_vine.png", + wield_image = "plants_vine.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + walkable = false, + climbable = true, + buildable_to = true, + is_ground_content = false, + selection_box = { + type = "wallmounted" + }, + groups = {snappy = 3, leafdecay = 3, flammable = 2, fuel = 1}, + legacy_wallmounted = true, + sounds = default.node_sound_leaves_defaults(), +}) diff --git a/mods/plants/textures/plants_pear.png b/mods/plants/textures/plants_pear.png new file mode 100755 index 0000000..39c6223 Binary files /dev/null and b/mods/plants/textures/plants_pear.png differ diff --git a/mods/plants/textures/plants_pear_1.png b/mods/plants/textures/plants_pear_1.png new file mode 100755 index 0000000..7ad39aa Binary files /dev/null and b/mods/plants/textures/plants_pear_1.png differ diff --git a/mods/plants/textures/plants_pear_2.png b/mods/plants/textures/plants_pear_2.png new file mode 100755 index 0000000..97e5612 Binary files /dev/null and b/mods/plants/textures/plants_pear_2.png differ diff --git a/mods/plants/textures/plants_pear_sapling.png b/mods/plants/textures/plants_pear_sapling.png new file mode 100755 index 0000000..544e955 Binary files /dev/null and b/mods/plants/textures/plants_pear_sapling.png differ diff --git a/mods/plants/textures/plants_vine.png b/mods/plants/textures/plants_vine.png new file mode 100755 index 0000000..15540b0 Binary files /dev/null and b/mods/plants/textures/plants_vine.png differ diff --git a/mods/screwdriver/README.txt b/mods/screwdriver/README.txt new file mode 100644 index 0000000..310aca3 --- /dev/null +++ b/mods/screwdriver/README.txt @@ -0,0 +1,27 @@ +This mod is part of Minetest TNG +================================ + +License of source code: +----------------------- +Copyright (C) 2013 RealBadAngel, Maciej Kasatkin + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + + +License of media (textures, sounds, meshes): +-------------------------------------------- +(by Authors) + +Gambit (WTFPL): + screwdriver.png diff --git a/mods/sethome/README.txt b/mods/sethome/README.txt index 23f41c7..92bebd7 100644 --- a/mods/sethome/README.txt +++ b/mods/sethome/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/stairs/README.txt b/mods/stairs/README.txt index d0533f2..7c4b1cf 100644 --- a/mods/stairs/README.txt +++ b/mods/stairs/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 4723f12..409b145 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -260,148 +260,156 @@ end -- Register default stairs and slabs stairs.register_stair_and_slab("wood", "default:wood", - {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, - {"default_wood.png"}, - "Wooden Stair", - "Wooden Slab", - default.node_sound_wood_defaults()) + {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"default_wood.png"}, + "Wooden Stair", + "Wooden Slab", + default.node_sound_wood_defaults()) stairs.register_stair_and_slab("junglewood", "default:junglewood", - {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, - {"default_junglewood.png"}, - "Junglewood Stair", - "Junglewood Slab", - default.node_sound_wood_defaults()) + {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"default_junglewood.png"}, + "Junglewood Stair", + "Junglewood Slab", + default.node_sound_wood_defaults()) stairs.register_stair_and_slab("pine_wood", "default:pine_wood", - {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, - {"default_pine_wood.png"}, - "Pine Wood Stair", - "Pine Wood Slab", - default.node_sound_wood_defaults()) + {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"default_pine_wood.png"}, + "Pine Wood Stair", + "Pine Wood Slab", + default.node_sound_wood_defaults()) stairs.register_stair_and_slab("acacia_wood", "default:acacia_wood", - {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, - {"default_acacia_wood.png"}, - "Acacia Wood Stair", - "Acacia Wood Slab", - default.node_sound_wood_defaults()) + {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"default_acacia_wood.png"}, + "Acacia Wood Stair", + "Acacia Wood Slab", + default.node_sound_wood_defaults()) stairs.register_stair_and_slab("birch_wood", "default:birch_wood", - {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, - {"default_birch_wood.png"}, - "Birch Wood Stair", - "Birch Wood Slab", - default.node_sound_wood_defaults()) + {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"default_birch_wood.png"}, + "Birch Wood Stair", + "Birch Wood Slab", + default.node_sound_wood_defaults()) stairs.register_stair_and_slab("stone", "default:stone", - {cracky = 3}, - {"default_stone.png"}, - "Stone Stair", - "Stone Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_stone.png"}, + "Stone Stair", + "Stone Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("cobble", "default:cobble", - {cracky = 3}, - {"default_cobble.png"}, - "Cobblestone Stair", - "Cobblestone Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_cobble.png"}, + "Cobblestone Stair", + "Cobblestone Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("stonebrick", "default:stonebrick", - {cracky = 3}, - {"default_stone_brick.png"}, - "Stone Brick Stair", - "Stone Brick Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_stone_brick.png"}, + "Stone Brick Stair", + "Stone Brick Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("desert_stone", "default:desert_stone", - {cracky = 3}, - {"default_desert_stone.png"}, - "Desertstone Stair", - "Desertstone Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_desert_stone.png"}, + "Desertstone Stair", + "Desertstone Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("desert_cobble", "default:desert_cobble", - {cracky = 3}, - {"default_desert_cobble.png"}, - "Desert Cobblestone Stair", - "Desert Cobblestone Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_desert_cobble.png"}, + "Desert Cobblestone Stair", + "Desert Cobblestone Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("desert_stonebrick", "default:desert_stonebrick", - {cracky = 3}, - {"default_desert_stone_brick.png"}, - "Desert Stone Brick Stair", - "Desert Stone Brick Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_desert_stone_brick.png"}, + "Desert Stone Brick Stair", + "Desert Stone Brick Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("sandstone", "default:sandstone", - {crumbly = 2, cracky = 2}, - {"default_sandstone.png"}, - "Sandstone Stair", - "Sandstone Slab", - default.node_sound_stone_defaults()) + {crumbly = 2, cracky = 2}, + {"default_sandstone.png"}, + "Sandstone Stair", + "Sandstone Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("sandstonebrick", "default:sandstonebrick", - {crumbly = 2, cracky = 2}, - {"default_sandstone_brick.png"}, - "Sandstone Brick Stair", - "Sandstone Brick Slab", - default.node_sound_stone_defaults()) + {crumbly = 2, cracky = 2}, + {"default_sandstone_brick.png"}, + "Sandstone Brick Stair", + "Sandstone Brick Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("obsidian", "default:obsidian", - {cracky = 1, level = 2}, - {"default_obsidian.png"}, - "Obsidian Stair", - "Obsidian Slab", - default.node_sound_stone_defaults()) + {cracky = 1, level = 2}, + {"default_obsidian.png"}, + "Obsidian Stair", + "Obsidian Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("obsidianbrick", "default:obsidianbrick", - {cracky = 1, level = 2}, - {"default_obsidian_brick.png"}, - "Obsidian Brick Stair", - "Obsidian Brick Slab", - default.node_sound_stone_defaults()) + {cracky = 1, level = 2}, + {"default_obsidian_brick.png"}, + "Obsidian Brick Stair", + "Obsidian Brick Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("brick", "default:brick", - {cracky = 3}, - {"default_brick.png"}, - "Brick Stair", - "Brick Slab", - default.node_sound_stone_defaults()) + {cracky = 3}, + {"default_brick.png"}, + "Brick Stair", + "Brick Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("straw", "farming:straw", - {snappy = 3, flammable = 4}, - {"farming_straw.png"}, - "Straw Stair", - "Straw Slab", - default.node_sound_leaves_defaults()) + {snappy = 3, flammable = 4}, + {"farming_straw.png"}, + "Straw Stair", + "Straw Slab", + default.node_sound_leaves_defaults()) stairs.register_stair_and_slab("steelblock", "default:steelblock", - {cracky = 1, level = 2}, - {"default_steel_block.png"}, - "Steel Block Stair", - "Steel Block Slab", - default.node_sound_stone_defaults()) + {cracky = 1, level = 2}, + {"default_steel_block.png"}, + "Steel Block Stair", + "Steel Block Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("copperblock", "default:copperblock", - {cracky = 1, level = 2}, - {"default_copper_block.png"}, - "Copper Block Stair", - "Copper Block Slab", - default.node_sound_stone_defaults()) + {cracky = 1, level = 2}, + {"default_copper_block.png"}, + "Copper Block Stair", + "Copper Block Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("bronzeblock", "default:bronzeblock", - {cracky = 1, level = 2}, - {"default_bronze_block.png"}, - "Bronze Block Stair", - "Bronze Block Slab", - default.node_sound_stone_defaults()) + {cracky = 1, level = 2}, + {"default_bronze_block.png"}, + "Bronze Block Stair", + "Bronze Block Slab", + default.node_sound_stone_defaults()) stairs.register_stair_and_slab("goldblock", "default:goldblock", - {cracky = 1}, - {"default_gold_block.png"}, - "Gold Block Stair", - "Gold Block Slab", - default.node_sound_stone_defaults()) + {cracky = 1}, + {"default_gold_block.png"}, + "Gold Block Stair", + "Gold Block Slab", + default.node_sound_stone_defaults()) + + +stairs.register_stair_and_slab("straw", "farming:straw", + {snappy = 3, flammable = 4}, + {"farming_straw.png"}, + "Straw Stair", + "Straw Slab", + default.node_sound_leaves_defaults()) diff --git a/mods/tnt/README.txt b/mods/tnt/README.txt index 2e2cddf..25e14ad 100644 --- a/mods/tnt/README.txt +++ b/mods/tnt/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/vessels/README.txt b/mods/vessels/README.txt index db08597..8ea15fd 100644 --- a/mods/vessels/README.txt +++ b/mods/vessels/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- diff --git a/mods/wool/README.txt b/mods/wool/README.txt index 5b4aef8..cdbc939 100644 --- a/mods/wool/README.txt +++ b/mods/wool/README.txt @@ -1,9 +1,10 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: ----------------------- Copyright (C) 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 General Public License as published by diff --git a/mods/wool/init.lua b/mods/wool/init.lua index 0d4eede..3ac4ebb 100644 --- a/mods/wool/init.lua +++ b/mods/wool/init.lua @@ -9,7 +9,7 @@ local wool = {} -- colors, and then some recipes using more specific colors for a few non-base -- colors available. When crafting, the last recipes will be checked first. wool.dyes = { - {"white", "White", "basecolor_white"}, + {"white", "White", nil}, {"grey", "Grey", "basecolor_grey"}, {"black", "Black", "basecolor_black"}, {"red", "Red", "basecolor_red"}, @@ -26,24 +26,57 @@ wool.dyes = { {"dark_green", "Dark Green", "unicolor_dark_green"}, } +-- Register wool blocks for _, row in ipairs(wool.dyes) do local name = row[1] local desc = row[2] local craft_color_group = row[3] + -- Node Definition - minetest.register_node("wool:"..name, { - description = desc.." Wool", - tiles = {"wool_"..name..".png"}, + minetest.register_node("wool:" .. name, { + description = desc .. " Wool", + tiles = {"wool_" .. name .. ".png"}, is_ground_content = false, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, + groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3, wool = 1}, sounds = default.node_sound_defaults(), }) if craft_color_group then -- Crafting from dye and white wool minetest.register_craft({ type = "shapeless", - output = 'wool:'..name, - recipe = {'group:dye,'..craft_color_group, 'group:wool'}, + output = "wool:" .. name, + recipe = {"group:dye," .. craft_color_group, "group:wool"}, }) end end + +-- Register carpets +for _, row in ipairs(wool.dyes) do + local name = row[1] + local desc = row[2] + + -- Node Definition + minetest.register_node("wool:carpet_" .. name, { + description = desc .. " Carpet", + tiles = {"wool_" .. name .. ".png"}, + is_ground_content = true, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, -0.57+2/16, 0.5}, + }, + }, + groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3, carpet = 1, attached_node = 1}, + sounds = default.node_sound_defaults(), + }) + + -- Crafting from wool + minetest.register_craft({ + output = "wool:carpet_" .. name .. " 4", + recipe = { + {"wool:" .. name, "wool:" .. name}, + }, + }) +end diff --git a/mods/xpanes/README.txt b/mods/xpanes/README.txt index 792ecbb..8fdb002 100644 --- a/mods/xpanes/README.txt +++ b/mods/xpanes/README.txt @@ -1,5 +1,5 @@ -This mod is part of Minetest NeXt -================================== +This mod is part of Minetest TNG +================================ License of source code: -----------------------