diff --git a/3dmushrooms/init.lua b/3dmushrooms/init.lua index 82ae86d..170a0da 100644 --- a/3dmushrooms/init.lua +++ b/3dmushrooms/init.lua @@ -8,7 +8,8 @@ minetest.override_item("flowers:mushroom_fertile_brown", { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, - inventory_image = "3dmushrooms_brown_inv.png" + inventory_image = "3dmushrooms_brown_inv.png", + wield_image = "3dmushrooms_brown_inv.png" }) minetest.override_item("flowers:mushroom_brown", { @@ -19,7 +20,8 @@ minetest.override_item("flowers:mushroom_brown", { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, - inventory_image = "3dmushrooms_brown_inv.png" + inventory_image = "3dmushrooms_brown_inv.png", + wield_image = "3dmushrooms_brown_inv.png" }) minetest.override_item("flowers:mushroom_fertile_red", { @@ -30,7 +32,8 @@ minetest.override_item("flowers:mushroom_fertile_red", { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, - inventory_image = "3dmushrooms_red_inv.png" + inventory_image = "3dmushrooms_red_inv.png", + wield_image = "3dmushrooms_red_inv.png" }) minetest.override_item("flowers:mushroom_red", { @@ -41,7 +44,8 @@ minetest.override_item("flowers:mushroom_red", { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, - inventory_image = "3dmushrooms_red_inv.png" + inventory_image = "3dmushrooms_red_inv.png", + wield_image = "3dmushrooms_red_inv.png" }) -- aliases to the default mushrooms @@ -59,5 +63,3 @@ minetest.register_alias("mushroom:spore1", "flowers:mushroom_spores_red") minetest.register_alias("mushroom:poison", "flowers:mushroom_red") minetest.register_alias("mushroom:identifier", "default:mese_crystal_fragment") - -print("[3D Mushrooms] loaded.") diff --git a/3dmushrooms/mod.conf b/3dmushrooms/mod.conf index 27d9684..d7b881e 100644 --- a/3dmushrooms/mod.conf +++ b/3dmushrooms/mod.conf @@ -1,2 +1,2 @@ name = 3dmushrooms -depends = default, flowers +depends = flowers diff --git a/bushes/init.lua b/bushes/init.lua index 4c57f85..f541259 100644 --- a/bushes/init.lua +++ b/bushes/init.lua @@ -31,7 +31,6 @@ minetest.register_node("bushes:youngtree2_bottom", { node_box = { type = "fixed", fixed = { - --{0.375000,-0.500000,-0.500000,0.500000,0.500000,-0.375000}, --NodeBox 1 {-0.0612,-0.500000,-0.500000,0.0612,0.500000,-0.375000}, --NodeBox 1 } }, @@ -40,10 +39,10 @@ minetest.register_node("bushes:youngtree2_bottom", { drop = 'default:stick' }) -local BushBranchCenter = { {1,1}, {3,2} } +local BushBranchCenter = { {1,1}, {3,2} } for i in pairs(BushBranchCenter) do - local Num = BushBranchCenter[i][1] - local TexNum = BushBranchCenter[i][2] + local Num = BushBranchCenter[i][1] + local TexNum = BushBranchCenter[i][2] minetest.register_node("bushes:bushbranches"..Num, { description = S("Bush Branches @1", Num), drawtype = "nodebox", @@ -51,6 +50,7 @@ for i in pairs(BushBranchCenter) do "bushes_leaves_"..TexNum..".png", "bushes_branches_center_"..TexNum..".png" }, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = { @@ -78,10 +78,10 @@ for i in pairs(BushBranchCenter) do }) end -local BushBranchSide = { {2,1}, {4,2} } +local BushBranchSide = { {2,1}, {4,2} } for i in pairs(BushBranchSide) do - local Num = BushBranchSide[i][1] - local TexNum = BushBranchSide[i][2] + local Num = BushBranchSide[i][1] + local TexNum = BushBranchSide[i][2] minetest.register_node("bushes:bushbranches"..Num, { description = S("Bush Branches @1", Num), drawtype = "nodebox", @@ -93,6 +93,7 @@ for i in pairs(BushBranchSide) do --[[back]] "bushes_branches_center_"..TexNum..".png",-- unless U really want 'em 2 B different --[[front]] "bushes_branches_right_"..TexNum..".png" }, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = { @@ -122,18 +123,20 @@ for i in pairs(BushBranchSide) do }) end -local BushLeafNode = { {1}, {2}} +local BushLeafNode = { {1}, {2}} for i in pairs(BushLeafNode) do local Num = BushLeafNode[i][1] minetest.register_node("bushes:BushLeaves"..Num, { description = S("Bush Leaves @1", Num), drawtype = "allfaces_optional", tiles = {"bushes_leaves_"..Num..".png"}, + use_texture_alpha = "clip", paramtype = "light", groups = { -- MM: Should we add leafdecay? snappy=3, flammable=2, - attached_node=1 + attached_node=1, + leaves=1 }, sounds = default.node_sound_leaves_defaults(), }) diff --git a/bushes/locale/bushes.de.tr b/bushes/locale/bushes.de.tr new file mode 100644 index 0000000..af63ead --- /dev/null +++ b/bushes/locale/bushes.de.tr @@ -0,0 +1,4 @@ +# textdomain: bushes +Young Tree 2 (bottom)=Strauch 2 (Ansatz) +Bush Branches @1=Buschäste @1 +Bush Leaves @1=Buschblätter @1 diff --git a/bushes/locale/bushes.eo.tr b/bushes/locale/bushes.eo.tr new file mode 100644 index 0000000..95ef7ab --- /dev/null +++ b/bushes/locale/bushes.eo.tr @@ -0,0 +1,4 @@ +# textdomain: bushes +Young Tree 2 (bottom)=Juna Arbo 2 (malsupro) +Bush Branches @1=Arbustaj Branĉoj @1 +Bush Leaves @1=Arbustaj Folioj @1 diff --git a/bushes/locale/bushes.fr.tr b/bushes/locale/bushes.fr.tr index a338814..6289a52 100644 --- a/bushes/locale/bushes.fr.tr +++ b/bushes/locale/bushes.fr.tr @@ -1,11 +1,4 @@ # textdomain: bushes - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Young Tree 2 (bottom)=Arbuste 2 (bas) Bush Branches @1=Branches de buisson @1 Bush Leaves @1=Feuilles de buisson @1 diff --git a/bushes/locale/template.txt b/bushes/locale/template.txt index e3db363..412fb60 100644 --- a/bushes/locale/template.txt +++ b/bushes/locale/template.txt @@ -1,10 +1,4 @@ # textdomain: bushes - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. - Young Tree 2 (bottom)= Bush Branches @1= Bush Leaves @1= diff --git a/bushes/mod.conf b/bushes/mod.conf index 998cdd5..0a4f665 100644 --- a/bushes/mod.conf +++ b/bushes/mod.conf @@ -1,3 +1,3 @@ name = bushes depends = default, biome_lib -optional_depends = stonage, sumpf +optional_depends = stoneage, sumpf diff --git a/bushes_classic/cooking.lua b/bushes_classic/cooking.lua index 3e46441..9179f11 100644 --- a/bushes_classic/cooking.lua +++ b/bushes_classic/cooking.lua @@ -33,9 +33,12 @@ end -- override farming_plus strawberry and add food_ group if minetest.get_modpath("farming_plus") then + local groups = table.copy(minetest.registered_items["farming_plus:strawberry_item"]) + groups["food_strawberry"] = 1 + groups["food_berry"] = 1 minetest.override_item("farming_plus:strawberry_item", { - groups = {food_strawberry = 1, food_berry = 1, flammable = 2}, + groups = groups, }) end diff --git a/bushes_classic/init.lua b/bushes_classic/init.lua index a470a8f..ff386cb 100644 --- a/bushes_classic/init.lua +++ b/bushes_classic/init.lua @@ -7,7 +7,7 @@ bushes_classic = {} local S = minetest.get_translator("bushes_classic") bushes_classic.bushes = { - "strawberry", + "strawberry", "blackberry", "blueberry", "raspberry", @@ -54,5 +54,3 @@ biome_lib.register_active_spawner({ }) minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry") - -print("[Bushes] Loaded.") diff --git a/bushes_classic/locale/bushes_classic.de.tr b/bushes_classic/locale/bushes_classic.de.tr index 35520b5..727b0b2 100644 --- a/bushes_classic/locale/bushes_classic.de.tr +++ b/bushes_classic/locale/bushes_classic.de.tr @@ -1,46 +1,39 @@ # textdomain: bushes_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Xanthin, 2017. -# - Sugar=Zucker -Basket with Strawberry pies=Korb mit Erdbeertorten -Cooked Strawberry pie=Erdbeertorte -Raw Strawberry pie=Rohe Erdbeertorte -Slice of Strawberry pie=Erdbeertortenstueck Strawberry=Erdbeere +Raw Strawberry pie=Rohe Erdbeertorte +Cooked Strawberry pie=Erdbeertorte +Slice of Strawberry pie=Erdbeertortenstück +Basket with Strawberry pies=Korb mit Erdbeertorten Strawberry Bush=Erdbeerbusch -Basket with Blackberry pies=Korb mit Brombeertorten Blackberry=Brombeere -Blackberry Bush=Brombeerbusch -Cooked Blackberry pie=Brombeertorte Raw Blackberry pie=Rohe Brombeertorte -Slice of Blackberry pie=Brombeertortenstueck -Basket with Blueberry pies=Korb mit Blaubeertorten +Cooked Blackberry pie=Brombeertorte +Slice of Blackberry pie=Brombeertortenstück +Basket with Blackberry pies=Korb mit Brombeertorten +Blackberry Bush=Brombeerbusch Blueberry=Blaubeere -Blueberry Bush=Blaubeerbusch -Cooked Blueberry pie=Blaubeertorte Raw Blueberry pie=Rohe Blaubeertorte -Slice of Blueberry pie=Blaubeertortenstueck -Basket with Raspberry pies=Korb mit Himbeertorten -Cooked Raspberry pie=Himbeertorte +Cooked Blueberry pie=Blaubeertorte +Slice of Blueberry pie=Blaubeertortenstück +Basket with Blueberry pies=Korb mit Blaubeertorten +Blueberry Bush=Blaubeerbusch Raspberry=Himbeere -Raspberry Bush=Himbeerbusch Raw Raspberry pie=Rohe Himbeertorte -Slice of Raspberry pie=Himbeertortenstueck -Basket with Gooseberry pies=Korb mit Stachelbeertorten -Cooked Gooseberry pie=Stachelbeertorte +Cooked Raspberry pie=Himbeertorte +Slice of Raspberry pie=Himbeertortenstück +Basket with Raspberry pies=Korb mit Himbeertorten +Raspberry Bush=Himbeerbusch Gooseberry=Stachelbeere -Gooseberry Bush=Stachelbeerbusch Raw Gooseberry pie=Rohe Stachelbeertorte -Slice of Gooseberry pie=Stachelbeertortenstueck -Basket with Mixed Berry pies=Korb mit Beerenmixtorten -Cooked Mixed Berry pie=Beerenmixtorte -Currently fruitless Bush=zur Zeit fruechteloser +Cooked Gooseberry pie=Stachelbeertorte +Slice of Gooseberry pie=Stachelbeertortenstück +Basket with Gooseberry pies=Korb mit Stachelbeertorten +Gooseberry Bush=Stachelbeerbusch Mixed Berry=Beerenmix Raw Mixed Berry pie=Rohe Beerenmixtorte -Slice of Mixed Berry pie=Beerenmixtortenstueck +Cooked Mixed Berry pie=Beerenmixtorte +Slice of Mixed Berry pie=Beerenmixtortenstück +Basket with Mixed Berry pies=Korb mit Beerenmixtorten +Currently fruitless Bush=Zur Zeit früchteloser Busch Basket=Korb diff --git a/bushes_classic/locale/bushes_classic.eo.tr b/bushes_classic/locale/bushes_classic.eo.tr new file mode 100644 index 0000000..194cc17 --- /dev/null +++ b/bushes_classic/locale/bushes_classic.eo.tr @@ -0,0 +1,39 @@ +# textdomain: bushes_classic +Sugar=Sukero +Strawberry=Frago +Raw Strawberry pie=Kruda Fragokuko +Cooked Strawberry pie=Kuirita Fragokuko +Slice of Strawberry pie=Tranĉaĵo de Fragokuko +Basket with Strawberry pies=Korbo kun Fragokukoj +Strawberry Bush=Fraga Arbusto +Blackberry=Rubuso +Raw Blackberry pie=Kruda Rubusokuko +Cooked Blackberry pie=Kuirita Rubusokuko +Slice of Blackberry pie=Tranĉaĵo de Rubusokuko +Basket with Blackberry pies=Korbo kun Rubusokukoj +Blackberry Bush=Rubusa Arbusto +Blueberry=Mirtelo +Raw Blueberry pie=Kruda Mirtelokuko +Cooked Blueberry pie=Kuirita Mirtelokuko +Slice of Blueberry pie=Tranĉaĵo de Mirtelokuko +Basket with Blueberry pies=Korbo kun Mirtelokukoj +Blueberry Bush=Mirtela Arbusto +Raspberry=Frambo +Raw Raspberry pie=Kruda Frambokuko +Cooked Raspberry pie=Kuirita Frambokuko +Slice of Raspberry pie=Tranĉaĵo de Frambokuko +Basket with Raspberry pies=Korbo kun Frambokukoj +Raspberry Bush=Framba Arbusto +Gooseberry=Grosbero +Raw Gooseberry pie=Kruda Grosberkuko +Cooked Gooseberry pie=Kuirita Grosberkuko +Slice of Gooseberry pie=Tranĉaĵo de Grosberkuko +Basket with Gooseberry pies=Korbo kun Grosberkuko +Gooseberry Bush=Grosberarbusto +Mixed Berry=Miksita Bero +Raw Mixed Berry pie=Kruda Miksita Bera Kuko +Cooked Mixed Berry pie=Kuirita Miksa Beraj Kukoj +Slice of Mixed Berry pie=Tranĉaĵo de Miksita Bera Kuko +Basket with Mixed Berry pies=Korbo kun Miksitaj Beraj Kukoj +Currently fruitless Bush=Nuntempe senfrukta Arbusto +Basket=Korbo diff --git a/bushes_classic/locale/bushes_classic.es.tr b/bushes_classic/locale/bushes_classic.es.tr index 9726073..2a900bc 100644 --- a/bushes_classic/locale/bushes_classic.es.tr +++ b/bushes_classic/locale/bushes_classic.es.tr @@ -1,46 +1,39 @@ # textdomain: bushes_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Carlos Barraza , 2017. -# - Sugar=Azúcar -Basket with Strawberry pies=Cesta con Pasteles de Frutilla -Cooked Strawberry pie=Pastel de Frutilla Cocido -Raw Strawberry pie=Pastel de Frutilla Crudo -Slice of Strawberry pie=Rebanada de Pastel de Frutilla Strawberry=Frutilla +Raw Strawberry pie=Pastel de Frutilla Crudo +Cooked Strawberry pie=Pastel de Frutilla Cocido +Slice of Strawberry pie=Rebanada de Pastel de Frutilla +Basket with Strawberry pies=Cesta con Pasteles de Frutilla Strawberry Bush=Arbusto de Frutilla -Basket with Blackberry pies=Cesta con Pasteles de Mora Blackberry=Mora -Blackberry Bush=Arbusto de Mora -Cooked Blackberry pie=Pastel de Mora Cocido Raw Blackberry pie=Pastel de Mora Crudo +Cooked Blackberry pie=Pastel de Mora Cocido Slice of Blackberry pie=Rebanada de Pastel de Mora -Basket with Blueberry pies=Cesta con Pasteles de Arándano +Basket with Blackberry pies=Cesta con Pasteles de Mora +Blackberry Bush=Arbusto de Mora Blueberry=Arándano -Blueberry Bush=Arbusto de Arándano -Cooked Blueberry pie=Pastel de Arándano Cocido Raw Blueberry pie=Pastel de Arándano Crudo +Cooked Blueberry pie=Pastel de Arándano Cocido Slice of Blueberry pie=Rebanada de Pastel de Arándano -Basket with Raspberry pies=Cesta con Pasteles de Frambuesa -Cooked Raspberry pie=Pastel de Frambuesa Cocido +Basket with Blueberry pies=Cesta con Pasteles de Arándano +Blueberry Bush=Arbusto de Arándano Raspberry=Frambuesa -Raspberry Bush=Arbusto de Frambuesa Raw Raspberry pie=Pastel de Frambuesa Crudo +Cooked Raspberry pie=Pastel de Frambuesa Cocido Slice of Raspberry pie=Rebanada de Pastel de Frambuesa -Basket with Gooseberry pies=Cesta con Pasteles de Grosella -Cooked Gooseberry pie=Pastel de Grosella Cocido +Basket with Raspberry pies=Cesta con Pasteles de Frambuesa +Raspberry Bush=Arbusto de Frambuesa Gooseberry=Grosella -Gooseberry Bush=Arbusto de Grosella Raw Gooseberry pie=Pastel de Grosella Crudo +Cooked Gooseberry pie=Pastel de Grosella Cocido Slice of Gooseberry pie=Rebanada de Pastel de Grosella -Basket with Mixed Berry pies=Cesta con Pasteles de Mezcla de Baya -Cooked Mixed Berry pie=Pastel de Mezcla de Bayas Cocido -Currently fruitless Bush=Arbusto actualmente infructuoso +Basket with Gooseberry pies=Cesta con Pasteles de Grosella +Gooseberry Bush=Arbusto de Grosella Mixed Berry=Mezcla de Baya Raw Mixed Berry pie=Pastel de Mezcla de Bayas Cruda +Cooked Mixed Berry pie=Pastel de Mezcla de Bayas Cocido Slice of Mixed Berry pie=Rebanada de Pastel de Mezcla de Bayas +Basket with Mixed Berry pies=Cesta con Pasteles de Mezcla de Baya +Currently fruitless Bush=Arbusto actualmente infructuoso Basket=Cesta diff --git a/bushes_classic/locale/bushes_classic.fr.tr b/bushes_classic/locale/bushes_classic.fr.tr index 4400433..b64e3b6 100644 --- a/bushes_classic/locale/bushes_classic.fr.tr +++ b/bushes_classic/locale/bushes_classic.fr.tr @@ -1,46 +1,39 @@ # textdomain: bushes_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Sugar=Sucre -Basket with Strawberry pies=Panier de tartes aux fraises -Cooked Strawberry pie=Tarte aux fraises (cuite) -Raw Strawberry pie=Tarte aux fraises (crue) -Slice of Strawberry pie=Part de tarte aux fraises Strawberry=Fraises +Raw Strawberry pie=Tarte aux fraises (crue) +Cooked Strawberry pie=Tarte aux fraises (cuite) +Slice of Strawberry pie=Part de tarte aux fraises +Basket with Strawberry pies=Panier de tartes aux fraises Strawberry Bush=Buisson de fraises -Basket with Blackberry pies=Panier de tartes aux fraises Blackberry=Mûres -Blackberry Bush=Buisson de mûres -Cooked Blackberry pie=Tarte aux mûres (cuite) Raw Blackberry pie=Tarte aux mûres (crue) +Cooked Blackberry pie=Tarte aux mûres (cuite) Slice of Blackberry pie=Part de tarte aux mûres -Basket with Blueberry pies=Panier de tartes aux mûres +Basket with Blackberry pies=Panier de tartes aux fraises +Blackberry Bush=Buisson de mûres Blueberry=Myrtilles -Blueberry Bush=Buisson de myrtilles -Cooked Blueberry pie=Tarte aux myrtilles (cuite) Raw Blueberry pie=Tarte aux myrtilles (crue) +Cooked Blueberry pie=Tarte aux myrtilles (cuite) Slice of Blueberry pie=Part de tarte aux myrtilles -Basket with Raspberry pies=Panier de tartes aux framboises -Cooked Raspberry pie=Tarte aux framboises (cuite) +Basket with Blueberry pies=Panier de tartes aux mûres +Blueberry Bush=Buisson de myrtilles Raspberry=Framboises -Raspberry Bush=Buisson de framboises Raw Raspberry pie=Tarte aux framboises (crue) +Cooked Raspberry pie=Tarte aux framboises (cuite) Slice of Raspberry pie=Part de tarts aux framboises -Basket with Gooseberry pies=Panier de tartes aux groseilles -Cooked Gooseberry pie=Tarte aux groseilles (cuite) +Basket with Raspberry pies=Panier de tartes aux framboises +Raspberry Bush=Buisson de framboises Gooseberry=Groseilles -Gooseberry Bush=Buisson de groseilles Raw Gooseberry pie=Tarte aux groseilles (crue) +Cooked Gooseberry pie=Tarte aux groseilles (cuite) Slice of Gooseberry pie=Part de tarte aux groseilles -Basket with Mixed Berry pies=Panier de tartes aux fruits rouges -Cooked Mixed Berry pie=Tarte aux fruits rouges (cuite) -Currently fruitless Bush=Buisson sans fruits pour l'instant +Basket with Gooseberry pies=Panier de tartes aux groseilles +Gooseberry Bush=Buisson de groseilles Mixed Berry=Fruits rouges Raw Mixed Berry pie=Tarte aux fruits rouges (crue) +Cooked Mixed Berry pie=Tarte aux fruits rouges (cuite) Slice of Mixed Berry pie=Part de tarte aux fruits rouges +Basket with Mixed Berry pies=Panier de tartes aux fruits rouges +Currently fruitless Bush=Buisson sans fruits pour l'instant Basket=Panier diff --git a/bushes_classic/locale/bushes_classic.tr.tr b/bushes_classic/locale/bushes_classic.tr.tr index 38ed28d..c88b716 100644 --- a/bushes_classic/locale/bushes_classic.tr.tr +++ b/bushes_classic/locale/bushes_classic.tr.tr @@ -1,46 +1,39 @@ # textdomain: bushes_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# mahmutelmas06@hotmail.com, 2017. -# - Sugar=Şeker -Basket with Strawberry pies=Çilekli pasta sepeti -Cooked Strawberry pie=Pişmiş çilekli pasta -Raw Strawberry pie=Çilekli çiğ pasta -Slice of Strawberry pie=Çilekli pasta dilimi Strawberry=Çilek +Raw Strawberry pie=Çilekli çiğ pasta +Cooked Strawberry pie=Pişmiş çilekli pasta +Slice of Strawberry pie=Çilekli pasta dilimi +Basket with Strawberry pies=Çilekli pasta sepeti Strawberry Bush=Çilek fidanı -Basket with Blackberry pies=Böğürtlenli pasta sepeti Blackberry=Böğürtlen -Blackberry Bush=Böğürtlen fidanı -Cooked Blackberry pie=Pişmiş böğürtlenli pasta Raw Blackberry pie=Böğürtlenli çiğ pasta +Cooked Blackberry pie=Pişmiş böğürtlenli pasta Slice of Blackberry pie=Böğürtlenli pasta dilimi -Basket with Blueberry pies=Yaban mersini pastalı sepet +Basket with Blackberry pies=Böğürtlenli pasta sepeti +Blackberry Bush=Böğürtlen fidanı Blueberry=Yaban mersini -Blueberry Bush=Yaban mersini fidanı -Cooked Blueberry pie=Pişmiş yaban mersinli pasta Raw Blueberry pie=Yaban mersinli çiğ pasta +Cooked Blueberry pie=Pişmiş yaban mersinli pasta Slice of Blueberry pie=Yaban mersinli pasta dilimi -Basket with Raspberry pies=Ahududulu pasta sepeti -Cooked Raspberry pie=Pişmiş ahududulu pasta +Basket with Blueberry pies=Yaban mersini pastalı sepet +Blueberry Bush=Yaban mersini fidanı Raspberry=Ahududu -Raspberry Bush=Ahududu fidanı Raw Raspberry pie=Ahududulu çiğ pasta +Cooked Raspberry pie=Pişmiş ahududulu pasta Slice of Raspberry pie=Ahududulu pasta dilimi -Basket with Gooseberry pies=Bektaşi üzümlü pasta sepeti -Cooked Gooseberry pie=Pişmiş bektaşi üzümlü pasta +Basket with Raspberry pies=Ahududulu pasta sepeti +Raspberry Bush=Ahududu fidanı Gooseberry=Bektaşi üzümü -Gooseberry Bush=Bektaşi üzümü fidanı Raw Gooseberry pie=Bektaşi üzümlü çiğ pasta +Cooked Gooseberry pie=Pişmiş bektaşi üzümlü pasta Slice of Gooseberry pie=Bektaşi üzümlü pasta dilimi -Basket with Mixed Berry pies=Dutlu pasta sepeti -Cooked Mixed Berry pie=Pişmiş dutlu pasta -Currently fruitless Bush=Fidanı şu anda meyvesiz +Basket with Gooseberry pies=Bektaşi üzümlü pasta sepeti +Gooseberry Bush=Bektaşi üzümü fidanı Mixed Berry=Dut Raw Mixed Berry pie=Dutlu çiğ pasta +Cooked Mixed Berry pie=Pişmiş dutlu pasta Slice of Mixed Berry pie=Dutlu pasta dilimi +Basket with Mixed Berry pies=Dutlu pasta sepeti +Currently fruitless Bush=Fidanı şu anda meyvesiz Basket=Sepet diff --git a/bushes_classic/locale/template.txt b/bushes_classic/locale/template.txt index c721e23..69fc2a1 100644 --- a/bushes_classic/locale/template.txt +++ b/bushes_classic/locale/template.txt @@ -1,46 +1,39 @@ # textdomain: bushes_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Sugar= -Basket with Strawberry pies= -Cooked Strawberry pie= -Raw Strawberry pie= -Slice of Strawberry pie= Strawberry= +Raw Strawberry pie= +Cooked Strawberry pie= +Slice of Strawberry pie= +Basket with Strawberry pies= Strawberry Bush= -Basket with Blackberry pies= Blackberry= -Blackberry Bush= -Cooked Blackberry pie= Raw Blackberry pie= +Cooked Blackberry pie= Slice of Blackberry pie= -Basket with Blueberry pies= +Basket with Blackberry pies= +Blackberry Bush= Blueberry= -Blueberry Bush= -Cooked Blueberry pie= Raw Blueberry pie= +Cooked Blueberry pie= Slice of Blueberry pie= -Basket with Raspberry pies= -Cooked Raspberry pie= +Basket with Blueberry pies= +Blueberry Bush= Raspberry= -Raspberry Bush= Raw Raspberry pie= +Cooked Raspberry pie= Slice of Raspberry pie= -Basket with Gooseberry pies= -Cooked Gooseberry pie= +Basket with Raspberry pies= +Raspberry Bush= Gooseberry= -Gooseberry Bush= Raw Gooseberry pie= +Cooked Gooseberry pie= Slice of Gooseberry pie= -Basket with Mixed Berry pies= -Cooked Mixed Berry pie= -Currently fruitless Bush= +Basket with Gooseberry pies= +Gooseberry Bush= Mixed Berry= Raw Mixed Berry pie= +Cooked Mixed Berry pie= Slice of Mixed Berry pie= +Basket with Mixed Berry pies= +Currently fruitless Bush= Basket= diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua index aadd720..1a32a9f 100644 --- a/bushes_classic/nodes.lua +++ b/bushes_classic/nodes.lua @@ -63,7 +63,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger) -- with a chance of 1/3, return 2 bushes local amount - if math.random(1,3) == 1 then + if can_harvest and math.random(1,3) == 1 then amount = "2" else amount = "1" @@ -167,6 +167,13 @@ for i, bush_name in ipairs(bushes_classic.bushes) do groups.not_in_creative_inventory = 1 end + local node_dig_prediction + local node_placement_prediction + if bush_name ~= "fruitless" then + node_dig_prediction = "bushes:fruitless_bush" + node_placement_prediction = "bushes:fruitless_bush" + end + minetest.register_node(":bushes:" .. bush_name .. "_bush", { description = bushes_classic.bushes_descriptions[i][6], drawtype = "mesh", @@ -178,6 +185,8 @@ for i, bush_name in ipairs(bushes_classic.bushes) do groups = groups, sounds = default.node_sound_leaves_defaults(), drop = "", + node_dig_prediction = node_dig_prediction, + node_placement_prediction = node_placement_prediction, after_dig_node = function( pos, oldnode, oldmetadata, digger ) return plantlife_bushes.after_dig_node(pos, oldnode, oldmetadata, digger); end, diff --git a/cavestuff/init.lua b/cavestuff/init.lua index 17c0a20..d328f46 100644 --- a/cavestuff/init.lua +++ b/cavestuff/init.lua @@ -1,12 +1,2 @@ ------------------------------------------------------------------------------------------------ -local title = "Cave Stuff" -local version = "0.0.3" -local mname = "cavestuff" ------------------------------------------------------------------------------------------------ - dofile(minetest.get_modpath("cavestuff").."/nodes.lua") dofile(minetest.get_modpath("cavestuff").."/mapgen.lua") - ------------------------------------------------------------------------------------------------ - -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") diff --git a/cavestuff/locale/cavestuff.de.tr b/cavestuff/locale/cavestuff.de.tr new file mode 100644 index 0000000..69bb0cc --- /dev/null +++ b/cavestuff/locale/cavestuff.de.tr @@ -0,0 +1,4 @@ +# textdomain: cavestuff +Pebble=Kieselstein +Desert Pebble=Wüstenkiesel +Stalactite=Stalaktit diff --git a/cavestuff/locale/cavestuff.eo.tr b/cavestuff/locale/cavestuff.eo.tr new file mode 100644 index 0000000..9da0f26 --- /dev/null +++ b/cavestuff/locale/cavestuff.eo.tr @@ -0,0 +1,4 @@ +# textdomain: cavestuff +Pebble=Ŝtoneto +Desert Pebble=Dezerta Ŝtoneto +Stalactite=Stalaktito diff --git a/cavestuff/locale/cavestuff.fr.tr b/cavestuff/locale/cavestuff.fr.tr index aae88ac..0c48fb0 100644 --- a/cavestuff/locale/cavestuff.fr.tr +++ b/cavestuff/locale/cavestuff.fr.tr @@ -1,11 +1,4 @@ # textdomain: cavestuff - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Pebble=Caillou Desert Pebble=Caillou du désert Stalactite=Stalactite diff --git a/cavestuff/locale/template.txt b/cavestuff/locale/template.txt index 8e8d18a..aae2112 100644 --- a/cavestuff/locale/template.txt +++ b/cavestuff/locale/template.txt @@ -1,11 +1,4 @@ # textdomain: cavestuff - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Pebble= Desert Pebble= Stalactite= diff --git a/cavestuff/mapgen.lua b/cavestuff/mapgen.lua index 92989bc..64de328 100644 --- a/cavestuff/mapgen.lua +++ b/cavestuff/mapgen.lua @@ -1,39 +1,65 @@ --Map Generation Stuff -biome_lib.register_on_generate( - { - surface = { - "default:dirt_with_grass", - "default:gravel", - "default:stone", - "default:permafrost_with_stones" - }, - max_count = 50, - rarity = 0, - plantlife_limit = -1, - check_air = true, - random_facedir = {0, 3} - }, - { +minetest.register_decoration({ + decoration = { "cavestuff:pebble_1", "cavestuff:pebble_2" - } -) - -biome_lib.register_on_generate( - { - surface = { - "default:desert_sand", - "default:desert_stone" - }, - max_count = 50, - rarity = 0, - plantlife_limit = -1, - check_air = true, - random_facedir = {0, 3} }, - { + place_on = { + "default:dirt_with_grass", + "default:gravel", + "default:stone", + "default:permafrost_with_stones" + }, + noise_params = { + offset = 0, + scale = 0.0078125, + spread = { + y = 100, + z = 100, + x = 100 + }, + seed = 0, + octaves = 3, + persist = 0.6, + flags = "absvalue", + lacunarity = 2 + }, + param2 = 0, + flags = "all_floors", + deco_type = "simple", + param2_max = 3, + y_min = -16, + y_max = 48 +}) + +minetest.register_decoration({ + decoration = { "cavestuff:desert_pebble_1", "cavestuff:desert_pebble_2" - } -) + }, + place_on = { + "default:desert_sand", + "default:desert_stone" + }, + noise_params = { + offset = 0, + scale = 0.0078125, + spread = { + y = 100, + z = 100, + x = 100 + }, + seed = 0, + octaves = 3, + persist = 0.6, + flags = "absvalue", + lacunarity = 2 + }, + param2 = 0, + flags = "all_floors", + deco_type = "simple", + param2_max = 3, + y_min = -16, + y_max = 48 +}) \ No newline at end of file diff --git a/cavestuff/mod.conf b/cavestuff/mod.conf index 55cdcab..b021c9e 100644 --- a/cavestuff/mod.conf +++ b/cavestuff/mod.conf @@ -1,2 +1,2 @@ name = cavestuff -depends = default,biome_lib +depends = default diff --git a/cavestuff/nodes.lua b/cavestuff/nodes.lua index 01bfcb9..b0e15d9 100644 --- a/cavestuff/nodes.lua +++ b/cavestuff/nodes.lua @@ -12,32 +12,32 @@ minetest.register_node("cavestuff:pebble_1",{ description = S("Pebble"), drawtype = "mesh", mesh = "cavestuff_pebble.obj", - tiles = {"undergrowth_pebble.png"}, - paramtype = "light", + tiles = {"undergrowth_pebble.png"}, + paramtype = "light", paramtype2 = "facedir", - groups = {cracky=3, stone=1, attached_node=1}, - selection_box = cbox, - collision_box = cbox, - on_place = function(itemstack, placer, pointed_thing) + groups = {cracky=3, stone=1, attached_node=1}, + selection_box = cbox, + collision_box = cbox, + on_place = function(itemstack, placer, pointed_thing) -- place a random pebble node local stack = ItemStack("cavestuff:pebble_"..math.random(1,2)) local ret = minetest.item_place(stack, placer, pointed_thing) return ItemStack("cavestuff:pebble_1 "..itemstack:get_count()-(1-ret:get_count())) end, - sounds = default.node_sound_stone_defaults(), + sounds = default.node_sound_stone_defaults(), }) minetest.register_node("cavestuff:pebble_2",{ drawtype = "mesh", mesh = "cavestuff_pebble.obj", - tiles = {"undergrowth_pebble.png"}, + tiles = {"undergrowth_pebble.png"}, drop = "cavestuff:pebble_1", - paramtype = "light", + paramtype = "light", paramtype2 = "facedir", - groups = {cracky=3, stone=1, attached_node=1, not_in_creative_inventory=1}, + groups = {cracky=3, stone=1, attached_node=1, not_in_creative_inventory=1}, selection_box = cbox, collision_box = cbox, - sounds = default.node_sound_stone_defaults(), + sounds = default.node_sound_stone_defaults(), }) minetest.register_node("cavestuff:desert_pebble_1",{ @@ -155,5 +155,3 @@ minetest.register_node("cavestuff:stalactite_3",{ } }, }) - ---Stalagmites diff --git a/dryplants/crafting.lua b/dryplants/crafting.lua index 349661c..97be53e 100644 --- a/dryplants/crafting.lua +++ b/dryplants/crafting.lua @@ -53,7 +53,7 @@ minetest.register_craft({ {"default:stick",""} } }) -if minetest.get_modpath("flint") ~= nil then +if minetest.get_modpath("flint") then minetest.register_craft({ output = "dryplants:sickle", recipe = { @@ -63,7 +63,7 @@ if minetest.get_modpath("flint") ~= nil then } }) end -if minetest.get_modpath("stoneage") ~= nil then +if minetest.get_modpath("stoneage") then minetest.register_craft({ output = "dryplants:sickle", recipe = { diff --git a/dryplants/init.lua b/dryplants/init.lua index c145ae0..a3256b9 100644 --- a/dryplants/init.lua +++ b/dryplants/init.lua @@ -1,8 +1,3 @@ ------------------------------------------------------------------------------------------------ -local title = "Grasses" -- former "Dry plants" -local version = "0.1.5" -local mname = "dryplants" ------------------------------------------------------------------------------------------------ -- by Mossmanikin -- textures & ideas partly by Neuromancer @@ -20,13 +15,13 @@ dofile(minetest.get_modpath("dryplants").."/crafting.lua") dofile(minetest.get_modpath("dryplants").."/settings.txt") dofile(minetest.get_modpath("dryplants").."/reed.lua") if REEDMACE_GENERATES == true then -dofile(minetest.get_modpath("dryplants").."/reedmace.lua") + dofile(minetest.get_modpath("dryplants").."/reedmace.lua") end if SMALL_JUNCUS_GENERATES == true then -dofile(minetest.get_modpath("dryplants").."/juncus.lua") + dofile(minetest.get_modpath("dryplants").."/juncus.lua") end if EXTRA_TALL_GRASS_GENERATES == true then -dofile(minetest.get_modpath("dryplants").."/moregrass.lua") + dofile(minetest.get_modpath("dryplants").."/moregrass.lua") end --dofile(minetest.get_modpath("dryplants").."/meadowvariation.lua") @@ -130,6 +125,7 @@ minetest.register_node("dryplants:grass", { paramtype = "light", sunlight_propagates = true, tiles = {"dryplants_grass.png"}, + use_texture_alpha = "clip", drawtype = "nodebox", node_box = { type = "fixed", @@ -161,6 +157,7 @@ minetest.register_node("dryplants:hay", { paramtype = "light", sunlight_propagates = true, tiles = {"dryplants_hay.png"}, + use_texture_alpha = "clip", drawtype = "nodebox", node_box = { type = "fixed", @@ -199,7 +196,3 @@ minetest.register_abm({ end end, }) - ------------------------------------------------------------------------------------------------ -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ diff --git a/dryplants/juncus.lua b/dryplants/juncus.lua index 0bfd635..186b4b0 100644 --- a/dryplants/juncus.lua +++ b/dryplants/juncus.lua @@ -46,6 +46,10 @@ minetest.register_node("dryplants:juncus", { fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16}, }, on_place = function(itemstack, placer, pointed_thing) + if not itemstack or not placer or not pointed_thing then + return + end + local playername = placer:get_player_name() if minetest.is_protected(pointed_thing.above, playername) or minetest.is_protected(pointed_thing.under, playername) then diff --git a/dryplants/locale/dryplants.de.tr b/dryplants/locale/dryplants.de.tr new file mode 100644 index 0000000..793a2d7 --- /dev/null +++ b/dryplants/locale/dryplants.de.tr @@ -0,0 +1,21 @@ +# textdomain: dryplants +Sickle=Sichel +Cut Grass=Grasschnitt +Hay=Heu +Short Grass=Kurzes Gras +Juncus=Binsen +Wet Reed=Nasses Schilf +Wet Reed Slab=Nasse Schilfplatte +Wet Reed Roof=Nasses Schilfdach +Wet Reed Roof Corner=Nasser Schilfdachwinkel +Wet Reed Roof Corner 2=Nasser Schilfdachwinkel 2 +Reed=Schilf +Reed Slab=Schilfstufe +Reed Roof=Schilfdach +Reed Roof Corner=Schilfdachwinkel +Reed Roof Corner 2=Schilfdachwinkel +Reedmace=Rohrkolben +Reedmace, height: 1=Rohrkolben, Höhe: 1 +Reedmace, height: 2=Rohrkolben, Höhe: 2 +Reedmace, height: 3=Rohrkolben, Höhe: 3 +Reedmace, height: 3 & Spikes=Rohrkolben, Höhe: 3 & Rispe diff --git a/dryplants/locale/dryplants.eo.tr b/dryplants/locale/dryplants.eo.tr new file mode 100644 index 0000000..a9b36b9 --- /dev/null +++ b/dryplants/locale/dryplants.eo.tr @@ -0,0 +1,21 @@ +# textdomain: dryplants +Sickle= +Cut Grass=Tranĉita Herbenon +Hay=Fojno +Short Grass=Mallonga Herbo +Juncus=Junko +Wet Reed=Malseka Kano +Wet Reed Slab=Slabo de Malseka Kano +Wet Reed Roof=Tegmento de Malseka Kano +Wet Reed Roof Corner=Tegmentangulo de Malseka Kano +Wet Reed Roof Corner 2=Tegmentangulo 2 de Malseka Kano +Reed=Kano +Reed Slab=Slabo de Kano +Reed Roof=Tegmento de Kano +Reed Roof Corner=Tegmentangulo de Kano +Reed Roof Corner 2=Tegmentangulo 2 de Kano +Reedmace=Tifeo +Reedmace, height: 1=Tifeo, alteco: 1 +Reedmace, height: 2=Tifeo, alteco: 2 +Reedmace, height: 3=Tifeo, alteco: 3 +Reedmace, height: 3 & Spikes=Tifeo, alteco: 3 & Pikiloj diff --git a/dryplants/locale/dryplants.fr.tr b/dryplants/locale/dryplants.fr.tr index 4172ea8..4345799 100644 --- a/dryplants/locale/dryplants.fr.tr +++ b/dryplants/locale/dryplants.fr.tr @@ -1,11 +1,4 @@ # textdomain: dryplants - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Sickle=Faucille Cut Grass=Herbe coupée Hay=Foin diff --git a/dryplants/locale/template.txt b/dryplants/locale/template.txt index a95fb53..a244774 100644 --- a/dryplants/locale/template.txt +++ b/dryplants/locale/template.txt @@ -1,11 +1,4 @@ # textdomain: dryplants - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Sickle= Cut Grass= Hay= diff --git a/dryplants/reedmace.lua b/dryplants/reedmace.lua index 0ab5a90..3c97f56 100644 --- a/dryplants/reedmace.lua +++ b/dryplants/reedmace.lua @@ -264,7 +264,8 @@ minetest.register_node("dryplants:reedmace_sapling", { groups = { snappy=3, flammable=2, - attached_node=1 + attached_node=1, + sapling=1, }, sounds = default.node_sound_leaves_defaults(), selection_box = { diff --git a/ferns/crafting.lua b/ferns/crafting.lua index f32aa69..db419ef 100644 --- a/ferns/crafting.lua +++ b/ferns/crafting.lua @@ -30,7 +30,7 @@ minetest.register_craft({ ----------------------------------------------------------------------------------------------- -- FIDDLEHEAD ----------------------------------------------------------------------------------------------- -minetest.register_alias("archaeplantae:fiddlehead", "ferns:fiddlehead") +minetest.register_alias("archaeplantae:fiddlehead", "ferns:fiddlehead") minetest.register_craftitem("ferns:fiddlehead", { description = S("Fiddlehead"), @@ -51,7 +51,7 @@ minetest.register_craftitem("ferns:fiddlehead_roasted", { ----------------------------------------------------------------------------------------------- -- FERN TUBER ----------------------------------------------------------------------------------------------- -minetest.register_alias("archaeplantae:ferntuber", "ferns:ferntuber") +minetest.register_alias("archaeplantae:ferntuber", "ferns:ferntuber") minetest.register_craftitem("ferns:ferntuber", { description = S("Fern Tuber"), @@ -64,7 +64,7 @@ minetest.register_craft({ cooktime = 3, }) -minetest.register_alias("archaeplantae:ferntuber_roasted", "ferns:ferntuber_roasted") +minetest.register_alias("archaeplantae:ferntuber_roasted", "ferns:ferntuber_roasted") minetest.register_craftitem("ferns:ferntuber_roasted", { description = S("Roasted Fern Tuber"), diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index 2713e50..bc1a334 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -13,6 +13,25 @@ assert(abstract_ferns.config.enable_giant_treefern == true) local S = minetest.get_translator("ferns") -- lot of code, lot to load +function abstract_ferns.can_grow_giant_tree_fern(pos) + local node_name = minetest.get_node(pos).name + if node_name ~= "air" and node_name ~= "ferns:sapling_giant_tree_fern" and node_name ~= "default:junglegrass" then + return false + end + + local below_name = minetest.get_node(vector.new(pos.x, pos.y - 1, pos.z)).name + if minetest.get_item_group(below_name, "soil") == 0 and minetest.get_item_group(below_name, "sand") == 0 then + return false + end + + local light = minetest.get_node_light(pos, 0.5) + if light <= 8 then + return false + end + + return true +end + abstract_ferns.grow_giant_tree_fern = function(pos) local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z} local name = minetest.get_node(pos_aux).name @@ -65,8 +84,8 @@ abstract_ferns.grow_giant_tree_fern = function(pos) local brk = false for i = 1, size-3 do pos_aux.y = pos.y + i - name = minetest.get_node(pos_aux).name - if not (name == "air" or (i == 1 and name == "ferns:sapling_giant_tree_fern")) then + local nodename = minetest.get_node(pos_aux).name + if not (nodename == "air" or (i == 1 and nodename == "ferns:sapling_giant_tree_fern")) then brk = true break end @@ -162,6 +181,14 @@ minetest.register_node("ferns:tree_fern_leave_big", { }, drop = "", sounds = default.node_sound_leaves_defaults(), + after_destruct = function(pos,oldnode) + for _, d in pairs({{x=-1,z=0},{x=1,z=0},{x=0,z=-1},{x=0,z=1}}) do + local node = minetest.get_node({x=pos.x+d.x,y=pos.y+1,z=pos.z+d.z}) + if node.name == "ferns:tree_fern_leave_big" then + minetest.dig_node({x=pos.x+d.x,y=pos.y+1,z=pos.z+d.z}) + end + end + end, }) ----------------------------------------------------------------------------------------------- @@ -173,6 +200,7 @@ minetest.register_node("ferns:tree_fern_leave_big_end", { paramtype = "light", paramtype2 = "facedir", tiles = { "ferns_tree_fern_leave_big_end.png" }, + use_texture_alpha = "clip", walkable = false, node_box = { type = "fixed", @@ -205,6 +233,7 @@ minetest.register_node("ferns:fern_trunk_big_top", { "ferns_fern_trunk_big_top.png^ferns_tree_fern_leave_big_cross.png", "ferns_fern_trunk_big.png" }, + use_texture_alpha = "clip", node_box = { type = "fixed", -- {left, bottom, front, right, top, back } @@ -242,6 +271,7 @@ minetest.register_node("ferns:fern_trunk_big", { "ferns_fern_trunk_big_top.png", "ferns_fern_trunk_big.png" }, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}, @@ -271,7 +301,7 @@ minetest.register_node("ferns:sapling_giant_tree_fern", { tiles = {"ferns_sapling_tree_fern_giant.png"}, inventory_image = "ferns_sapling_tree_fern_giant.png", walkable = false, - groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + groups = {snappy=3,flammable=2,flora=1,attached_node=1,sapling=1}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -285,7 +315,9 @@ minetest.register_abm({ interval = 1000, chance = 4, action = function(pos, node, _, _) - abstract_ferns.grow_giant_tree_fern({x = pos.x, y = pos.y-1, z = pos.z}) + if abstract_ferns.can_grow_giant_tree_fern(pos) then + abstract_ferns.grow_giant_tree_fern({x = pos.x, y = pos.y-1, z = pos.z}) + end end }) diff --git a/ferns/init.lua b/ferns/init.lua index 3f0c302..14249b3 100644 --- a/ferns/init.lua +++ b/ferns/init.lua @@ -1,14 +1,5 @@ ------------------------------------------------------------------------------------------------ -local title = "Ferns" -- former "Archae Plantae" -local version = "0.2.1" -local mname = "ferns" -- former "archaeplantae" ------------------------------------------------------------------------------------------------ --- (by Mossmanikin) ------------------------------------------------------------------------------------------------ - abstract_ferns = {} - dofile(minetest.get_modpath("ferns").."/settings.lua") if abstract_ferns.config.enable_lady_fern == true then @@ -28,42 +19,3 @@ if abstract_ferns.config.enable_giant_treefern == true then end dofile(minetest.get_modpath("ferns").."/crafting.lua") - - ------------------------------------------------------------------------------ --- TESTS ------------------------------------------------------------------------------ -local run_tests = true -- set to false to skip - -if run_tests then - - -- These are, essentially, unit tests to make sure that all required item - -- strings are registered. The init sequence is not time critical so leaving - -- them here won't affect performance. - - -- Check node names - if abstract_ferns.config.enable_horsetails then - print("[Mod] " ..title.. " Checking horsetail item strings") - assert(minetest.registered_items["ferns:horsetail_01"] ~= nil) - assert(minetest.registered_items["ferns:horsetail_02"] ~= nil) - assert(minetest.registered_items["ferns:horsetail_03"] ~= nil) - assert(minetest.registered_items["ferns:horsetail_04"] ~= nil) - end - if abstract_ferns.config.enable_lady_fern then - print("[Mod] ".. title .." Checking lady fern item strings") - assert(minetest.registered_items["ferns:fern_01"] ~= nil) - assert(minetest.registered_items["ferns:fern_02"] ~= nil) - assert(minetest.registered_items["ferns:fern_03"] ~= nil) - end - if abstract_ferns.config.enable_treefern then - print("[Mod] ".. title .." Checking tree fern item strings") - assert(minetest.registered_items["ferns:tree_fern_leaves"] ~= nil) - assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil) - assert(minetest.registered_items["ferns:fern_trunk"] ~= nil) - assert(minetest.registered_items["ferns:sapling_tree_fern"] ~= nil) - end -end - ------------------------------------------------------------------------------------------------ -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ diff --git a/ferns/locale/ferns.de.tr b/ferns/locale/ferns.de.tr new file mode 100644 index 0000000..a9582d7 --- /dev/null +++ b/ferns/locale/ferns.de.tr @@ -0,0 +1,15 @@ +# textdomain: ferns +Fiddlehead=Geigenkopf +Roasted Fiddlehead=Gerösteter Geigenkopf +Fern Tuber=Farnknolle +Roasted Fern Tuber=Geröstete Farnknolle +Lady-fern (Athyrium)=Frauenfarn (Athyrium) +Giant Tree Fern Leaves=Riesige Baumfarnblätter +Giant Tree Fern Leave End=Riesiges Baumfarnblattende +Giant Fern Trunk=Riesiger Baumfarnstamm +Giant Tree Fern Sapling=Riesiger Baumfarnsetzling +Young Horsetail (Equisetum)=Junger Schachtelhalm (Equisetum) +Horsetail (Equisetum)=Schachtelhalm (Equisetum) +Fern Trunk (Dicksonia)=Farnstamm (Dicksonia) +Tree Fern Sapling (Dicksonia)=Baumfarnsetzling (Dicksonia) +Tree Fern Crown (Dicksonia)=Baumfarnkrone (Dicksonia) diff --git a/ferns/locale/ferns.eo.tr b/ferns/locale/ferns.eo.tr new file mode 100644 index 0000000..ad0bde3 --- /dev/null +++ b/ferns/locale/ferns.eo.tr @@ -0,0 +1,15 @@ +# textdomain: ferns +Fiddlehead=Filika Supro +Roasted Fiddlehead=Rostita Filika Supro +Fern Tuber=Filika Tubero +Roasted Fern Tuber=Rostita Filika Tubero +Lady-fern (Athyrium)=Afiriumo (Athyrium) +Giant Tree Fern Leaves=Folioj de Giganta Arba Filiko +Giant Tree Fern Leave End=Folifino de Giganta Arba Filiko +Giant Fern Trunk=Trunko de Giganta Arba Filiko +Giant Tree Fern Sapling=Arbido de Giganta Arba Filiko +Young Horsetail (Equisetum)=Juna Ekvizeto (Equisetum) +Horsetail (Equisetum)=Ekvizeto (Equisetum) +Fern Trunk (Dicksonia)=Trunko de Arba Filiko (Dicksonia) +Tree Fern Sapling (Dicksonia)=Arbido de Arba Filiko (Dicksonia) +Tree Fern Crown (Dicksonia)=Krono de Arba Filiko diff --git a/ferns/locale/ferns.fr.tr b/ferns/locale/ferns.fr.tr index 9eb8d74..c893605 100644 --- a/ferns/locale/ferns.fr.tr +++ b/ferns/locale/ferns.fr.tr @@ -1,17 +1,9 @@ # textdomain: ferns - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Fiddlehead=Crosse de fougère Roasted Fiddlehead=Crosse de fougère rôtie Fern Tuber=Tubercule de fougère Roasted Fern Tuber=Tubercule de fougère rôti Lady-fern (Athyrium)=Fougère (Athyrium) -Tree Fern Crown (Dicksonia)=Fougère en couronne (Dicksonia) Giant Tree Fern Leaves=Feuilles de fougère géante Giant Tree Fern Leave End=Feuilles de fougère géante (extrémité) Giant Fern Trunk=Tronc de fougère géante @@ -20,3 +12,4 @@ Young Horsetail (Equisetum)=Pousse de prêle (Equisetum) Horsetail (Equisetum)=Prêle (Equisetum) Fern Trunk (Dicksonia)=Tronc de fougère en couronne (Dicksonia) Tree Fern Sapling (Dicksonia)=Pousse de fougère en couronne (Dicksonia) +Tree Fern Crown (Dicksonia)=Fougère en couronne (Dicksonia) diff --git a/ferns/locale/template.txt b/ferns/locale/template.txt index a824e9c..b438c8c 100644 --- a/ferns/locale/template.txt +++ b/ferns/locale/template.txt @@ -1,18 +1,9 @@ # textdomain: ferns - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - - Fiddlehead= Roasted Fiddlehead= Fern Tuber= Roasted Fern Tuber= Lady-fern (Athyrium)= -Tree Fern Crown (Dicksonia)= Giant Tree Fern Leaves= Giant Tree Fern Leave End= Giant Fern Trunk= @@ -21,3 +12,4 @@ Young Horsetail (Equisetum)= Horsetail (Equisetum)= Fern Trunk (Dicksonia)= Tree Fern Sapling (Dicksonia)= +Tree Fern Crown (Dicksonia)= diff --git a/ferns/treefern.lua b/ferns/treefern.lua index 361417c..43a0db8 100644 --- a/ferns/treefern.lua +++ b/ferns/treefern.lua @@ -11,6 +11,25 @@ local S = minetest.get_translator("ferns") assert(abstract_ferns.config.enable_treefern == true) +function abstract_ferns.can_grow_tree_fern(pos) + local node_name = minetest.get_node(pos).name + if node_name ~= "air" and node_name ~= "ferns:sapling_tree_fern" and node_name ~= "default:junglegrass" then + return false + end + + local below_name = minetest.get_node(vector.new(pos.x, pos.y - 1, pos.z)).name + if minetest.get_item_group(below_name, "soil") == 0 and minetest.get_item_group(below_name, "sand") == 0 then + return false + end + + local light = minetest.get_node_light(pos, 0.5) + if light <= 8 then + return false + end + + return true +end + abstract_ferns.grow_tree_fern = function(pos) local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z} @@ -128,6 +147,7 @@ minetest.register_node("ferns:fern_trunk", { "ferns_fern_trunk_top.png", "ferns_fern_trunk.png" }, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}, @@ -158,7 +178,7 @@ minetest.register_node("ferns:sapling_tree_fern", { tiles = {"ferns_sapling_tree_fern.png"}, inventory_image = "ferns_sapling_tree_fern.png", walkable = false, - groups = {snappy=3,flammable=2,flora=1,attached_node=1}, + groups = {snappy=3,flammable=2,flora=1,attached_node=1,sapling=1}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -171,7 +191,9 @@ minetest.register_abm({ interval = 1000, chance = 4, action = function(pos, node, _, _) - abstract_ferns.grow_tree_fern({x = pos.x, y = pos.y-1, z = pos.z}) + if abstract_ferns.can_grow_tree_fern(pos) then + abstract_ferns.grow_tree_fern({x = pos.x, y = pos.y-1, z = pos.z}) + end end }) diff --git a/junglegrass/init.lua b/junglegrass/init.lua deleted file mode 100644 index a394d93..0000000 --- a/junglegrass/init.lua +++ /dev/null @@ -1,3 +0,0 @@ -minetest.register_alias("junglegrass:shortest", "air") -minetest.register_alias("junglegrass:short", "air") -minetest.register_alias("junglegrass:medium", "air") diff --git a/junglegrass/mod.conf b/junglegrass/mod.conf deleted file mode 100644 index bb0f56b..0000000 --- a/junglegrass/mod.conf +++ /dev/null @@ -1 +0,0 @@ -name = junglegrass diff --git a/molehills/init.lua b/molehills/init.lua index 872e987..c6f7824 100644 --- a/molehills/init.lua +++ b/molehills/init.lua @@ -1,20 +1,10 @@ ------------------------------------------------------------------------------------------------ -- Idea by Sokomine -- Code & textures by Mossmanikin -abstract_molehills = {} - -local molehills_rarity = tonumber(minetest.settings:get("molehills_rarity")) or 99.5 -local molehills_rarity_fertility = tonumber(minetest.settings:get("molehills_rarity_fertility")) or 1 -local molehills_fertility = tonumber(minetest.settings:get("molehills_fertility")) or -0.6 - - -- support for i18n local S = minetest.get_translator("molehills") ------------------------------------------------------------------------------------------------ --- NoDe ------------------------------------------------------------------------------------------------ +-- Node local mh_cbox = { type = "fixed", fixed = { -0.5, -0.5, -0.5, 0.5, -0.125, 0.5} @@ -26,6 +16,7 @@ minetest.register_node("molehills:molehill",{ description = S("Mole Hill"), inventory_image = "molehills_side.png", tiles = { "molehills_dirt.png" }, + use_texture_alpha = "clip", paramtype = "light", selection_box = mh_cbox, collision_box = mh_cbox, @@ -33,9 +24,7 @@ minetest.register_node("molehills:molehill",{ sounds = default.node_sound_dirt_defaults(), }) ------------------------------------------------------------------------------------------------ --- CRaFTiNG ------------------------------------------------------------------------------------------------ +-- Crafting minetest.register_craft({ -- molehills --> dirt output = "default:dirt", recipe = { @@ -44,32 +33,19 @@ minetest.register_craft({ -- molehills --> dirt } }) ------------------------------------------------------------------------------------------------ --- GeNeRaTiNG ------------------------------------------------------------------------------------------------ -abstract_molehills.place_molehill = function(pos) - local right_here = {x=pos.x , y=pos.y+1, z=pos.z } - if minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z }).name ~= "air" - and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z }).name ~= "air" - and minetest.get_node({x=pos.x , y=pos.y, z=pos.z+1}).name ~= "air" - and minetest.get_node({x=pos.x , y=pos.y, z=pos.z-1}).name ~= "air" - and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z+1}).name ~= "air" - and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z-1}).name ~= "air" - and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z+1}).name ~= "air" - and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z-1}).name ~= "air" then - minetest.swap_node(right_here, {name="molehills:molehill"}) - end -end - -biome_lib.register_on_generate({ - surface = {"default:dirt_with_grass"}, - rarity = molehills_rarity, - rarity_fertility = molehills_rarity_fertility, - plantlife_limit = molehills_fertility, - min_elevation = 1, - max_elevation = 40, - avoid_nodes = {"group:tree","group:liquid","group:stone","group:falling_node"--[[,"air"]]}, - avoid_radius = 4, +-- Generating +minetest.register_decoration({ + decoration = { + "molehills:molehill" }, - abstract_molehills.place_molehill -) + fill_ratio = 0.002, + y_min = 1, + y_max = 40, + place_on = { + "default:dirt_with_grass" + }, + spawn_by = "air", + num_spawn_by = 3, + deco_type = "simple", + flags = "all_floors", +}) diff --git a/molehills/locale/molehills.de.tr b/molehills/locale/molehills.de.tr new file mode 100644 index 0000000..07d8f7c --- /dev/null +++ b/molehills/locale/molehills.de.tr @@ -0,0 +1,2 @@ +# textdomain: molehills +Mole Hill=Maulwurfshügel diff --git a/molehills/locale/molehills.eo.tr b/molehills/locale/molehills.eo.tr new file mode 100644 index 0000000..ca7a1c6 --- /dev/null +++ b/molehills/locale/molehills.eo.tr @@ -0,0 +1,2 @@ +# textdomain: molehills +Mole Hill=Talpa Monteto diff --git a/molehills/locale/molehills.fr.tr b/molehills/locale/molehills.fr.tr index f3f9aab..b0eaf66 100644 --- a/molehills/locale/molehills.fr.tr +++ b/molehills/locale/molehills.fr.tr @@ -1,9 +1,2 @@ # textdomain: molehills - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Mole Hill=Taupinière diff --git a/molehills/locale/template.txt b/molehills/locale/template.txt index 46fc119..bd7f836 100644 --- a/molehills/locale/template.txt +++ b/molehills/locale/template.txt @@ -1,9 +1,2 @@ # textdomain: molehills - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Mole Hill= diff --git a/molehills/mod.conf b/molehills/mod.conf index d929679..ef391f9 100644 --- a/molehills/mod.conf +++ b/molehills/mod.conf @@ -1,2 +1,2 @@ name = molehills -depends = default, biome_lib +depends = default diff --git a/molehills/settingtypes.txt b/molehills/settingtypes.txt deleted file mode 100644 index a10276a..0000000 --- a/molehills/settingtypes.txt +++ /dev/null @@ -1,8 +0,0 @@ -#Molehills rarity % -molehills_rarity (Molehills rarity %) float 99.5 0 100 - -#How much the rarity is reduced by fertility % -molehills_rarity_fertility (Molehills rarity fertility reduction %) float 1 0 100 - -#Molehills minimum fertility (-1 to +1) -molehills_fertility (Molehills minimum fertility) float -0.6 -1 1 diff --git a/nature_classic/init.lua b/nature_classic/init.lua index 2cc08db..0d0de99 100644 --- a/nature_classic/init.lua +++ b/nature_classic/init.lua @@ -6,8 +6,6 @@ local current_mod_name = minetest.get_current_modname() nature = {} --- support for i18n -local S = minetest.get_translator("nature_classic") nature.blossomqueue = {} nature.blossomqueue_max = 1000 @@ -42,5 +40,3 @@ nature.blossom_duration = nature.blossom_delay dofile(minetest.get_modpath(current_mod_name) .. "/config.lua") dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua") dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua") - -minetest.log("info", S("[Nature Classic] loaded!")) diff --git a/nature_classic/locale/nature_classic.de.tr b/nature_classic/locale/nature_classic.de.tr new file mode 100644 index 0000000..1f1f4d0 --- /dev/null +++ b/nature_classic/locale/nature_classic.de.tr @@ -0,0 +1,2 @@ +# textdomain: nature_classic +Apple blossoms=Apfelblüten diff --git a/nature_classic/locale/nature_classic.fr.tr b/nature_classic/locale/nature_classic.fr.tr index ffa9c50..6c60509 100644 --- a/nature_classic/locale/nature_classic.fr.tr +++ b/nature_classic/locale/nature_classic.fr.tr @@ -1,10 +1,2 @@ # textdomain: nature_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Apple blossoms=Fleurs de pommier -[Nature Classic] loaded!=[Nature Classic] chargé.! diff --git a/nature_classic/locale/nature_classic.txt b/nature_classic/locale/nature_classic.txt new file mode 100644 index 0000000..0331d23 --- /dev/null +++ b/nature_classic/locale/nature_classic.txt @@ -0,0 +1,10 @@ +# textdomain: nature_classic + +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Jolesh, 2022. +# + +Apple blossoms=Poma Floroj +[Nature Classic] loaded!=[Nature Classic] ŝarĝita! diff --git a/nature_classic/locale/template.txt b/nature_classic/locale/template.txt index c39a57b..a2c7ee4 100644 --- a/nature_classic/locale/template.txt +++ b/nature_classic/locale/template.txt @@ -1,10 +1,2 @@ # textdomain: nature_classic - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Apple blossoms= -[Nature Classic] loaded!= diff --git a/pl_seaweed/init.lua b/pl_seaweed/init.lua index 7dd0392..e842478 100644 --- a/pl_seaweed/init.lua +++ b/pl_seaweed/init.lua @@ -25,6 +25,7 @@ for i in ipairs(algae_list) do "flowers_seaweed"..num..".png", "flowers_seaweed"..num..".png^[transformFY" }, + use_texture_alpha = "clip", inventory_image = "flowers_seaweed_2.png", wield_image = "flowers_seaweed_2.png", sunlight_propagates = true, @@ -46,7 +47,11 @@ for i in ipairs(algae_list) do liquids_pointable = true, drop = "flowers:seaweed", on_place = function(itemstack, placer, pointed_thing) - local keys=placer:get_player_control() + if not itemstack or not placer or not pointed_thing then + return + end + + local keys = placer:get_player_control() local pt = pointed_thing local place_pos = nil @@ -160,9 +165,9 @@ biome_lib.register_on_generate({ pl_seaweed.grow_seaweed ) -minetest.register_alias( "flowers:flower_seaweed" , "flowers:seaweed" ) -minetest.register_alias( "along_shore:pondscum_1" , "flowers:seaweed" ) -minetest.register_alias( "along_shore:seaweed_1" , "flowers:seaweed" ) -minetest.register_alias( "along_shore:seaweed_2" , "flowers:seaweed_2" ) -minetest.register_alias( "along_shore:seaweed_3" , "flowers:seaweed_3" ) -minetest.register_alias( "along_shore:seaweed_4" , "flowers:seaweed_4" ) +minetest.register_alias("flowers:flower_seaweed", "flowers:seaweed") +minetest.register_alias("along_shore:pondscum_1", "flowers:seaweed") +minetest.register_alias("along_shore:seaweed_1", "flowers:seaweed") +minetest.register_alias("along_shore:seaweed_2", "flowers:seaweed_2") +minetest.register_alias("along_shore:seaweed_3", "flowers:seaweed_3") +minetest.register_alias("along_shore:seaweed_4", "flowers:seaweed_4") diff --git a/pl_seaweed/locale/pl_seaweed.de.tr b/pl_seaweed/locale/pl_seaweed.de.tr index 89ed60d..989d7c0 100644 --- a/pl_seaweed/locale/pl_seaweed.de.tr +++ b/pl_seaweed/locale/pl_seaweed.de.tr @@ -1,11 +1,2 @@ # textdomain: pl_seaweed - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Xanthin, 2017. -# - - - -Seaweed=Seetang +Seaweed=Seegras diff --git a/pl_seaweed/locale/pl_seaweed.fr.tr b/pl_seaweed/locale/pl_seaweed.fr.tr index 5a76eb8..39dbbcf 100644 --- a/pl_seaweed/locale/pl_seaweed.fr.tr +++ b/pl_seaweed/locale/pl_seaweed.fr.tr @@ -1,10 +1,2 @@ # textdomain: pl_seaweed - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - - Seaweed=Algues diff --git a/pl_seaweed/locale/pl_seaweed.tr.tr b/pl_seaweed/locale/pl_seaweed.tr.tr index c1aa4bd..0e11bb1 100644 --- a/pl_seaweed/locale/pl_seaweed.tr.tr +++ b/pl_seaweed/locale/pl_seaweed.tr.tr @@ -1,10 +1,2 @@ # textdomain: pl_seaweed - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# mahmutelmas06@hotmail.com, 2017. -# - - Seaweed=Deniz yosunu diff --git a/pl_seaweed/locale/pl_seawood.eo.tr b/pl_seaweed/locale/pl_seawood.eo.tr new file mode 100644 index 0000000..f76dfe2 --- /dev/null +++ b/pl_seaweed/locale/pl_seawood.eo.tr @@ -0,0 +1,2 @@ +# textdomain: pl_seaweed +Seaweed=Algo diff --git a/pl_seaweed/locale/pl_seawood.es.tr b/pl_seaweed/locale/pl_seawood.es.tr index 2927e3c..bcd13a2 100644 --- a/pl_seaweed/locale/pl_seawood.es.tr +++ b/pl_seaweed/locale/pl_seawood.es.tr @@ -1,10 +1,2 @@ # textdomain: pl_seaweed - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Carlos Barraza , 2017. -# - - Seaweed=Algas marinas diff --git a/pl_seaweed/locale/template.txt b/pl_seaweed/locale/template.txt index 1950d90..e2f00f6 100644 --- a/pl_seaweed/locale/template.txt +++ b/pl_seaweed/locale/template.txt @@ -1,11 +1,2 @@ # textdomain: pl_seaweed - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - - - Seaweed= diff --git a/pl_sunflowers/init.lua b/pl_sunflowers/init.lua index f997da0..a801ff8 100644 --- a/pl_sunflowers/init.lua +++ b/pl_sunflowers/init.lua @@ -1,10 +1,6 @@ -- support for i18n local S = minetest.get_translator("pl_sunflowers") -local sunflowers_max_count = tonumber(minetest.settings:get("pl_sunflowers_max_count")) or 10 -local sunflowers_rarity = tonumber(minetest.settings:get("pl_sunflowers_rarity")) or 25 - - local box = { type="fixed", fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } }, @@ -19,10 +15,11 @@ minetest.register_node(":flowers:sunflower", { description = S("Sunflower"), drawtype = "mesh", paramtype = "light", - paramtype2 = "facedir", + paramtype2 = "degrotate", inventory_image = "flowers_sunflower_inv.png", mesh = "flowers_sunflower.obj", tiles = { "flowers_sunflower.png" }, + use_texture_alpha = "clip", walkable = false, buildable_to = true, is_ground_content = true, @@ -39,17 +36,20 @@ minetest.register_node(":flowers:sunflower", { } }) -biome_lib.register_on_generate({ - surface = {"default:dirt_with_grass"}, - avoid_nodes = { "flowers:sunflower" }, - max_count = sunflowers_max_count, - rarity = sunflowers_rarity, - min_elevation = 0, - plantlife_limit = -0.9, - temp_max = -0.1, - random_facedir = {0,3}, +minetest.register_decoration({ + decoration = { + "flowers:sunflower" }, - "flowers:sunflower" -) + fill_ratio = 0.005, + y_min = 1, + y_max = 40, + param2 = 0, + param2_max = 239, + place_on = { + "default:dirt_with_grass" + }, + deco_type = "simple", + flags = "all_floors", +}) minetest.register_alias("sunflower:sunflower", "flowers:sunflower") diff --git a/pl_sunflowers/locale/pl_sunflowers.de.tr b/pl_sunflowers/locale/pl_sunflowers.de.tr index ab40a42..d82b0c7 100644 --- a/pl_sunflowers/locale/pl_sunflowers.de.tr +++ b/pl_sunflowers/locale/pl_sunflowers.de.tr @@ -1,11 +1,2 @@ # textdomain: pl_sunflowers - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Xanthin, 2017. -# - - - Sunflower=Sonnenblume diff --git a/pl_sunflowers/locale/pl_sunflowers.eo.tr b/pl_sunflowers/locale/pl_sunflowers.eo.tr new file mode 100644 index 0000000..f9203e0 --- /dev/null +++ b/pl_sunflowers/locale/pl_sunflowers.eo.tr @@ -0,0 +1,2 @@ +# textdomain: pl_sunflowers +Sunflower=Sunfloro diff --git a/pl_sunflowers/locale/pl_sunflowers.es.tr b/pl_sunflowers/locale/pl_sunflowers.es.tr index b57f3b6..2d5edc3 100644 --- a/pl_sunflowers/locale/pl_sunflowers.es.tr +++ b/pl_sunflowers/locale/pl_sunflowers.es.tr @@ -1,10 +1,2 @@ # textdomain: pl_sunflowers - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Carlos Barraza , 2017. -# - - Sunflower=Girasol diff --git a/pl_sunflowers/locale/pl_sunflowers.fr.tr b/pl_sunflowers/locale/pl_sunflowers.fr.tr index 1c04e4f..aea069f 100644 --- a/pl_sunflowers/locale/pl_sunflowers.fr.tr +++ b/pl_sunflowers/locale/pl_sunflowers.fr.tr @@ -1,10 +1,2 @@ # textdomain: pl_sunflowers - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - - Sunflower=Tournesol diff --git a/pl_sunflowers/locale/pl_sunflowers.tr.tr b/pl_sunflowers/locale/pl_sunflowers.tr.tr index 5b6409f..13e5a85 100644 --- a/pl_sunflowers/locale/pl_sunflowers.tr.tr +++ b/pl_sunflowers/locale/pl_sunflowers.tr.tr @@ -1,10 +1,2 @@ # textdomain: pl_sunflowers - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# mahmutelmas06@hotmail.com, 2017. -# - - Sunflower=Ayçiçeği diff --git a/pl_sunflowers/locale/template.txt b/pl_sunflowers/locale/template.txt index 46c6f0a..96186a8 100644 --- a/pl_sunflowers/locale/template.txt +++ b/pl_sunflowers/locale/template.txt @@ -1,11 +1,2 @@ # textdomain: pl_sunflowers - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - - - Sunflower= diff --git a/pl_sunflowers/mod.conf b/pl_sunflowers/mod.conf index 1332723..238079e 100644 --- a/pl_sunflowers/mod.conf +++ b/pl_sunflowers/mod.conf @@ -1,3 +1,2 @@ name = pl_sunflowers -depends = biome_lib optional_depends = farming, flowers diff --git a/pl_waterlilies/init.lua b/pl_waterlilies/init.lua index c1be804..1a33cbb 100644 --- a/pl_waterlilies/init.lua +++ b/pl_waterlilies/init.lua @@ -36,6 +36,7 @@ for i in ipairs(lilies_list) do "flowers_waterlily"..deg2..".png", "flowers_waterlily"..deg2..".png^[transformFY" }, + use_texture_alpha = "clip", inventory_image = "flowers_waterlily.png", wield_image = "flowers_waterlily.png", sunlight_propagates = true, @@ -58,7 +59,11 @@ for i in ipairs(lilies_list) do liquids_pointable = true, drop = "flowers:waterlily", on_place = function(itemstack, placer, pointed_thing) - local keys=placer:get_player_control() + if not itemstack or not placer or not pointed_thing then + return + end + + local keys = placer:get_player_control() local pt = pointed_thing local place_pos = nil @@ -156,8 +161,8 @@ minetest.register_alias( "flowers:flower_waterlily", "flowers:waterlily") minetest.register_alias( "flowers:flower_waterlily_225", "flowers:waterlily_225") minetest.register_alias( "flowers:flower_waterlily_45", "flowers:waterlily_45") minetest.register_alias( "flowers:flower_waterlily_675", "flowers:waterlily_675") -minetest.register_alias( "trunks:lilypad" , "flowers:waterlily_s1" ) -minetest.register_alias( "along_shore:lilypads_1" , "flowers:waterlily_s1" ) -minetest.register_alias( "along_shore:lilypads_2" , "flowers:waterlily_s2" ) -minetest.register_alias( "along_shore:lilypads_3" , "flowers:waterlily_s3" ) -minetest.register_alias( "along_shore:lilypads_4" , "flowers:waterlily_s4" ) +minetest.register_alias( "trunks:lilypad", "flowers:waterlily_s1") +minetest.register_alias( "along_shore:lilypads_1", "flowers:waterlily_s1") +minetest.register_alias( "along_shore:lilypads_2", "flowers:waterlily_s2") +minetest.register_alias( "along_shore:lilypads_3", "flowers:waterlily_s3") +minetest.register_alias( "along_shore:lilypads_4", "flowers:waterlily_s4") diff --git a/pl_waterlilies/locale/pl_waterlilies.de.tr b/pl_waterlilies/locale/pl_waterlilies.de.tr index 58de1f5..09558c5 100644 --- a/pl_waterlilies/locale/pl_waterlilies.de.tr +++ b/pl_waterlilies/locale/pl_waterlilies.de.tr @@ -1,11 +1,2 @@ # textdomain: pl_waterlilies - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Xanthin, 2017. -# - - - Waterlily=Seerose diff --git a/pl_waterlilies/locale/pl_waterlilies.eo.tr b/pl_waterlilies/locale/pl_waterlilies.eo.tr new file mode 100644 index 0000000..c2de467 --- /dev/null +++ b/pl_waterlilies/locale/pl_waterlilies.eo.tr @@ -0,0 +1,2 @@ +# textdomain: pl_waterlilies +Waterlily=Akvolilio diff --git a/pl_waterlilies/locale/pl_waterlilies.es.tr b/pl_waterlilies/locale/pl_waterlilies.es.tr index bf93642..55f8874 100644 --- a/pl_waterlilies/locale/pl_waterlilies.es.tr +++ b/pl_waterlilies/locale/pl_waterlilies.es.tr @@ -1,10 +1,2 @@ # textdomain: pl_waterlilies - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Carlos Barraza , 2017. -# - - Waterlily=Lirio de agua diff --git a/pl_waterlilies/locale/pl_waterlilies.fr.tr b/pl_waterlilies/locale/pl_waterlilies.fr.tr index c0e0fd1..0770369 100644 --- a/pl_waterlilies/locale/pl_waterlilies.fr.tr +++ b/pl_waterlilies/locale/pl_waterlilies.fr.tr @@ -1,10 +1,2 @@ # textdomain: pl_waterlilies - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - - Waterlily=Nénuphar diff --git a/pl_waterlilies/locale/pl_waterlilies.tr.tr b/pl_waterlilies/locale/pl_waterlilies.tr.tr index ae05de6..b9f30e4 100644 --- a/pl_waterlilies/locale/pl_waterlilies.tr.tr +++ b/pl_waterlilies/locale/pl_waterlilies.tr.tr @@ -1,10 +1,2 @@ # textdomain: pl_waterlilies - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# mahmutelmas06@hotmail.com, 2017. -# - - Waterlily=Nilüfer diff --git a/pl_waterlilies/locale/template.txt b/pl_waterlilies/locale/template.txt index bdf61b3..f9399c7 100644 --- a/pl_waterlilies/locale/template.txt +++ b/pl_waterlilies/locale/template.txt @@ -1,11 +1,2 @@ -# textdomain: pl_waterlillies - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - - - +# textdomain: pl_waterlilies Waterlily= diff --git a/poisonivy/init.lua b/poisonivy/init.lua index e16fd55..3cdb1a1 100644 --- a/poisonivy/init.lua +++ b/poisonivy/init.lua @@ -1,5 +1,4 @@ -- This file supplies poison ivy for the plantlife modpack --- Last revision: 2013-01-24 -- support for i18n local S = minetest.get_translator("poisonivy") @@ -101,5 +100,3 @@ biome_lib.update_plant({ verticals_list = walls_list, ground_nodes = {"default:dirt_with_grass"} }) - -print("[Poison Ivy] Loaded.") diff --git a/poisonivy/locale/poisonivy.de.tr b/poisonivy/locale/poisonivy.de.tr index 85b9f13..5a678a5 100644 --- a/poisonivy/locale/poisonivy.de.tr +++ b/poisonivy/locale/poisonivy.de.tr @@ -1,12 +1,4 @@ # textdomain: poisonivy - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Xanthin, 2017. -# - -Poison ivy (seedling)=Giftefeu (Saemling) -Poison ivy (sproutling)=Giftefeu (Sproessling) +Poison ivy (seedling)=Giftefeu (Sämling) +Poison ivy (sproutling)=Giftefeu (Sprössling) Poison ivy (climbing plant)=Giftefeu (Kletterpflanze) -[Poison Ivy] Loaded.=[Poison Ivy] Geladen. diff --git a/poisonivy/locale/poisonivy.eo.tr b/poisonivy/locale/poisonivy.eo.tr new file mode 100644 index 0000000..8db7877 --- /dev/null +++ b/poisonivy/locale/poisonivy.eo.tr @@ -0,0 +1,4 @@ +# textdomain: poisonivy +Poison ivy (seedling)=Venena hedero (plantido) +Poison ivy (sproutling)=Venena hedero (ĝermanta) +Poison ivy (climbing plant)=Venena hedero (grimpplanto) diff --git a/poisonivy/locale/poisonivy.es.tr b/poisonivy/locale/poisonivy.es.tr index 19aaa3f..58f2f21 100644 --- a/poisonivy/locale/poisonivy.es.tr +++ b/poisonivy/locale/poisonivy.es.tr @@ -1,12 +1,4 @@ # textdomain: poisonivy - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Carlos Barraza , 2017. -# - Poison ivy (seedling)=Hiedra venenosa (retoño) Poison ivy (sproutling)=Hiedra venenosa (brotes) Poison ivy (climbing plant)=Hiedra venenosa (planta trepadora) -[Poison Ivy] Loaded.=[Poison Ivy] Cargado. diff --git a/poisonivy/locale/poisonivy.fr.tr b/poisonivy/locale/poisonivy.fr.tr index 1436b0d..519648e 100644 --- a/poisonivy/locale/poisonivy.fr.tr +++ b/poisonivy/locale/poisonivy.fr.tr @@ -1,12 +1,4 @@ # textdomain: poisonivy - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Poison ivy (seedling)=Sumac vénéneux (semis) Poison ivy (sproutling)=Sumac vénéneux (pousse) Poison ivy (climbing plant)=Sumac vénéneux (grimpant) -[Poison Ivy] Loaded.=[Poison Ivy] chargé. diff --git a/poisonivy/locale/poisonivy.pt.tr b/poisonivy/locale/poisonivy.pt.tr index 5b6ab87..9ef066d 100644 --- a/poisonivy/locale/poisonivy.pt.tr +++ b/poisonivy/locale/poisonivy.pt.tr @@ -1,12 +1,4 @@ # textdomain: poisonivy - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Poison ivy (seedling)=Hera venenosa (plantilha) Poison ivy (sproutling)=Hera venenosa (brotando) Poison ivy (climbing plant)=Hera venenosa (planta trepadeira) -[Poison Ivy] Loaded.=[Poison Ivy] Carregado diff --git a/poisonivy/locale/poisonivy.pt_BR.tr b/poisonivy/locale/poisonivy.pt_BR.tr index 185ddc9..d158d7c 100644 --- a/poisonivy/locale/poisonivy.pt_BR.tr +++ b/poisonivy/locale/poisonivy.pt_BR.tr @@ -1,6 +1,4 @@ # textdomain: poisonivy - -Poison ivy (seedling) = Hera venenosa (plantilha) -Poison ivy (sproutling) = Hera venenosa (brotando) -Poison ivy (climbing plant) = Hera venenosa (planta trepadeira) -[Poison Ivy] Loaded. =[Poison Ivy] Carregado +Poison ivy (seedling)= +Poison ivy (sproutling)= +Poison ivy (climbing plant)= diff --git a/poisonivy/locale/poisonivy.tr.tr b/poisonivy/locale/poisonivy.tr.tr index ecbb279..0e12f01 100644 --- a/poisonivy/locale/poisonivy.tr.tr +++ b/poisonivy/locale/poisonivy.tr.tr @@ -1,12 +1,4 @@ # textdomain: poisonivy - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# mahmutelmas06@hotmail.com, 2017. -# - Poison ivy (seedling)=Sarmaşık (Fidan) Poison ivy (sproutling)=Sarmaşık (Filiz) Poison ivy (climbing plant)=Sarmaşık (Dolanan) -[Poison Ivy] Loaded.=[Poison Ivy] yüklendi. diff --git a/poisonivy/locale/template.txt b/poisonivy/locale/template.txt new file mode 100644 index 0000000..d158d7c --- /dev/null +++ b/poisonivy/locale/template.txt @@ -0,0 +1,4 @@ +# textdomain: poisonivy +Poison ivy (seedling)= +Poison ivy (sproutling)= +Poison ivy (climbing plant)= diff --git a/trunks/crafting.lua b/trunks/crafting.lua index 72f39ba..63bf7d4 100644 --- a/trunks/crafting.lua +++ b/trunks/crafting.lua @@ -35,11 +35,11 @@ minetest.register_craft({ }) minetest.register_craft({ output = "trunks:twig_1 4", - recipe = {{"bushes:bushbranches2"}} + recipe = {{"bushes:bushbranches3"}} }) minetest.register_craft({ output = "trunks:twig_1 4", - recipe = {{"bushes:bushbranches3"}} + recipe = {{"bushes:bushbranches4"}} }) end minetest.register_craft({ -- twigs block --> twigs diff --git a/trunks/init.lua b/trunks/init.lua index 452031d..729ed13 100644 --- a/trunks/init.lua +++ b/trunks/init.lua @@ -1,8 +1,3 @@ ------------------------------------------------------------------------------------------------ -local title = "Trunks" -local version = "0.1.4" -local mname = "trunks" ------------------------------------------------------------------------------------------------ -- Code by Mossmanikin & Neuromancer abstract_trunks = {} @@ -11,7 +6,3 @@ dofile(minetest.get_modpath("trunks").."/trunks_settings.txt") dofile(minetest.get_modpath("trunks").."/generating.lua") dofile(minetest.get_modpath("trunks").."/nodes.lua") dofile(minetest.get_modpath("trunks").."/crafting.lua") - ------------------------------------------------------------------------------------------------ -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ diff --git a/trunks/locale/template.txt b/trunks/locale/template.txt index 50cbff1..3657950 100644 --- a/trunks/locale/template.txt +++ b/trunks/locale/template.txt @@ -1,11 +1,4 @@ # textdomain: trunks - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Twig= Moss= Moss with Fungus= diff --git a/trunks/locale/trunks.de.tr b/trunks/locale/trunks.de.tr new file mode 100644 index 0000000..de83a5a --- /dev/null +++ b/trunks/locale/trunks.de.tr @@ -0,0 +1,10 @@ +# textdomain: trunks +Twig=Zweig +Moss=Moos +Moss with Fungus=Moos mit Pilz +Twigs Block=Zweigblock +Twigs Slab=Zweigplatte +Twigs Roof=Zweigdach +Twigs Roof Corner 1=Zweigdachwinkel 1 +Twigs Roof Corner 2=Zweigdachwinkel 2 +@1 Root=Wurzel von @1 diff --git a/trunks/locale/trunks.eo.tr b/trunks/locale/trunks.eo.tr new file mode 100644 index 0000000..2e9255c --- /dev/null +++ b/trunks/locale/trunks.eo.tr @@ -0,0 +1,10 @@ +# textdomain: trunks +Twig=Branĉeto +Moss=Musko +Moss with Fungus=Musko kun Fungo +Twigs Block=Bloko de Branĉetoj +Twigs Slab=Slabo +Twigs Roof=Tegmento +Twigs Roof Corner 1=Tegmentangulo 1 de Branĉetoj +Twigs Roof Corner 2=Tegmentangulo 2 de Branĉetoj +@1 Root=@1 Radiko diff --git a/trunks/locale/trunks.fr.tr b/trunks/locale/trunks.fr.tr index 4ef3392..097c2bb 100644 --- a/trunks/locale/trunks.fr.tr +++ b/trunks/locale/trunks.fr.tr @@ -1,11 +1,4 @@ # textdomain: trunks - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Twig=Brindille Moss=Mousse Moss with Fungus=Mousse et champignons diff --git a/trunks/nodes.lua b/trunks/nodes.lua index 0caf26f..f88df72 100644 --- a/trunks/nodes.lua +++ b/trunks/nodes.lua @@ -24,6 +24,7 @@ for i in pairs(NoDe) do "trunks_twig_"..NR..".png^[transformFY", -- mirror "trunks_twig_6.png" -- empty }, + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "facedir", walkable = false, @@ -88,6 +89,7 @@ for r = 0, 3 do description = S("Moss"), drawtype = "nodebox", tiles = {"trunks_moss.png"..xform}, + use_texture_alpha = "clip", inventory_image = "trunks_moss.png", wield_image = "trunks_moss.png", paramtype = "light", @@ -110,6 +112,7 @@ for r = 0, 3 do tiles = {"trunks_moss_fungus.png"..xform}, inventory_image = "trunks_moss_fungus.png", wield_image = "trunks_moss_fungus.png", + use_texture_alpha = "clip", paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, @@ -122,7 +125,7 @@ for r = 0, 3 do }) end -minetest.register_alias("trunks:moss_plain", "trunks:moss_plain_0") +minetest.register_alias("trunks:moss_plain", "trunks:moss_plain_0") minetest.register_alias("trunks:moss_with_fungus", "trunks:moss_with_fungus_0") ----------------------------------------------------------------------------------------------- @@ -183,7 +186,7 @@ minetest.register_node("trunks:twigs_roof", { ----------------------------------------------------------------------------------------------- -- TWiGS RooF CoRNeR ----------------------------------------------------------------------------------------------- -minetest.register_alias("woodstuff:twigs_roof_corner", "trunks:twigs_roof_corner") +minetest.register_alias("woodstuff:twigs_roof_corner", "trunks:twigs_roof_corner") minetest.register_node("trunks:twigs_roof_corner", { description = S("Twigs Roof Corner 1"), @@ -211,7 +214,7 @@ minetest.register_node("trunks:twigs_roof_corner", { ----------------------------------------------------------------------------------------------- -- TWiGS RooF CoRNeR 2 ----------------------------------------------------------------------------------------------- -minetest.register_alias("woodstuff:twigs_roof_corner_2", "trunks:twigs_roof_corner_2") +minetest.register_alias("woodstuff:twigs_roof_corner_2", "trunks:twigs_roof_corner_2") minetest.register_node("trunks:twigs_roof_corner_2", { description = S("Twigs Roof Corner 2"), @@ -376,6 +379,7 @@ for i in pairs(TRuNKS) do --[[back]] MoD.."_"..TRuNK..".png", --[[front]] MoD.."_"..TRuNK..".png" }, + use_texture_alpha = "clip", drawtype = "nodebox", selection_box = {type = "fixed", fixed = roots_cube}, node_box = {type = "fixed", fixed = roots_sheet}, diff --git a/vines/README.md b/vines/README.md index 31006c7..085b590 100644 --- a/vines/README.md +++ b/vines/README.md @@ -1,6 +1,6 @@ # Vines Mod by Bas80 (Edited by TenPlus1) -### License: MIT for code, CC for textures +### License: MIT for code, CC0 for textures ## Features - Rope block for spawning rope that slowly drops into the deep. diff --git a/vines/init.lua b/vines/init.lua index 02f4224..1f4f0b4 100644 --- a/vines/init.lua +++ b/vines/init.lua @@ -43,9 +43,19 @@ local function on_dig(pos, node, player) drop_item = vine_name_end end - local wielded_item = player and player:get_wielded_item() + local wielded_item = minetest.is_player(player) and player:get_wielded_item() if wielded_item then - wielded_item:add_wear(1) + local node_def = minetest.registered_nodes[node.name] + local dig_params = minetest.get_dig_params( + node_def.groups, + wielded_item:get_tool_capabilities(), + wielded_item:get_wear() + ) + if dig_params.wear then + wielded_item:add_wear(dig_params.wear) + player:set_wielded_item(wielded_item) + end + if wielded_item:get_name() == 'vines:shears' then drop_item = vine_name_end end @@ -116,7 +126,7 @@ vines.register_vine = function( name, defs, biome ) paramtype = "light", paramtype2 = "wallmounted", buildable_to = false, - tiles = {vine_image_end}, + tiles = {vine_image_end .. (drawtype == "plantlike" and "^[transformR180" or "")}, drawtype = drawtype, inventory_image = vine_image_end, groups = groups, diff --git a/vines/locale/template.txt b/vines/locale/template.txt index c8c1a01..43ba2d9 100644 --- a/vines/locale/template.txt +++ b/vines/locale/template.txt @@ -1,10 +1,4 @@ # textdomain: vines - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# Vines= Matured= Rope= diff --git a/vines/locale/vines.de.tr b/vines/locale/vines.de.tr new file mode 100644 index 0000000..81c6cda --- /dev/null +++ b/vines/locale/vines.de.tr @@ -0,0 +1,8 @@ +# textdomain: vines +Vines=Ranken +Matured=Gereifte +Rope=Seil +Shears=Schere +Roots=Wurzeln +Jungle Vines=Dschungelranken +Willow Vines=Weidenranken diff --git a/vines/locale/vines.eo.tr b/vines/locale/vines.eo.tr new file mode 100644 index 0000000..12018c2 --- /dev/null +++ b/vines/locale/vines.eo.tr @@ -0,0 +1,8 @@ +# textdomain: vines +Vines=Vitoj +Matured=Maturita +Rope=Ŝnuro +Shears=Tondiloj +Roots=Radikoj +Jungle Vines=Ĝangalaj Vitoj +Willow Vines=Salikaj Vitoj diff --git a/vines/locale/vines.fr.tr b/vines/locale/vines.fr.tr index 5610071..70c7dc1 100644 --- a/vines/locale/vines.fr.tr +++ b/vines/locale/vines.fr.tr @@ -1,11 +1,4 @@ # textdomain: vines - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Vines=Plantes grimpantes Matured=Extrémité de Rope=Corde diff --git a/vines/screenshot.png b/vines/screenshot.png index b386f69..be398e1 100644 Binary files a/vines/screenshot.png and b/vines/screenshot.png differ diff --git a/vines/textures/vines_item.png b/vines/textures/vines_item.png index c66242e..5a4e2cd 100644 Binary files a/vines/textures/vines_item.png and b/vines/textures/vines_item.png differ diff --git a/vines/textures/vines_jungle_end.png b/vines/textures/vines_jungle_end.png index 6c8d339..a20fce6 100644 Binary files a/vines/textures/vines_jungle_end.png and b/vines/textures/vines_jungle_end.png differ diff --git a/vines/textures/vines_jungle_middle.png b/vines/textures/vines_jungle_middle.png index bf838a5..6f285bc 100644 Binary files a/vines/textures/vines_jungle_middle.png and b/vines/textures/vines_jungle_middle.png differ diff --git a/vines/textures/vines_root_end.png b/vines/textures/vines_root_end.png index 4fc3f87..42fc559 100644 Binary files a/vines/textures/vines_root_end.png and b/vines/textures/vines_root_end.png differ diff --git a/vines/textures/vines_root_middle.png b/vines/textures/vines_root_middle.png index 49f88c0..55f5ecc 100644 Binary files a/vines/textures/vines_root_middle.png and b/vines/textures/vines_root_middle.png differ diff --git a/vines/textures/vines_rope.png b/vines/textures/vines_rope.png index 0045c4c..a5159dd 100644 Binary files a/vines/textures/vines_rope.png and b/vines/textures/vines_rope.png differ diff --git a/vines/textures/vines_rope_end.png b/vines/textures/vines_rope_end.png index faf2c71..f86498e 100644 Binary files a/vines/textures/vines_rope_end.png and b/vines/textures/vines_rope_end.png differ diff --git a/vines/textures/vines_shears.png b/vines/textures/vines_shears.png index c4c39f9..9fe9224 100644 Binary files a/vines/textures/vines_shears.png and b/vines/textures/vines_shears.png differ diff --git a/vines/textures/vines_side_end.png b/vines/textures/vines_side_end.png index 5b3b28f..0513ef7 100644 Binary files a/vines/textures/vines_side_end.png and b/vines/textures/vines_side_end.png differ diff --git a/vines/textures/vines_side_middle.png b/vines/textures/vines_side_middle.png index 2576e93..bdfd199 100644 Binary files a/vines/textures/vines_side_middle.png and b/vines/textures/vines_side_middle.png differ diff --git a/vines/textures/vines_vine_end.png b/vines/textures/vines_vine_end.png index 062857b..aa82ee6 100644 Binary files a/vines/textures/vines_vine_end.png and b/vines/textures/vines_vine_end.png differ diff --git a/vines/textures/vines_vine_middle.png b/vines/textures/vines_vine_middle.png index 8afffe8..92bd2a2 100644 Binary files a/vines/textures/vines_vine_middle.png and b/vines/textures/vines_vine_middle.png differ diff --git a/vines/textures/vines_willow_end.png b/vines/textures/vines_willow_end.png index b5b8e59..a064a51 100644 Binary files a/vines/textures/vines_willow_end.png and b/vines/textures/vines_willow_end.png differ diff --git a/vines/textures/vines_willow_middle.png b/vines/textures/vines_willow_middle.png index ca0b831..a3f48f3 100644 Binary files a/vines/textures/vines_willow_middle.png and b/vines/textures/vines_willow_middle.png differ diff --git a/woodsoils/init.lua b/woodsoils/init.lua index eb269ef..456ec30 100644 --- a/woodsoils/init.lua +++ b/woodsoils/init.lua @@ -1,29 +1,4 @@ ------------------------------------------------------------------------------------------------ -local title = "Wood Soils" -- former "Forest Soils" -local version = "0.0.9" -local mname = "woodsoils" -- former "forestsoils" ------------------------------------------------------------------------------------------------ - abstract_woodsoils = {} dofile(minetest.get_modpath("woodsoils").."/nodes.lua") dofile(minetest.get_modpath("woodsoils").."/generating.lua") - --- felt like playing a bit :D ---[[print(" _____ __") -print("_/ ____\\___________ ____ _______/ |_") -print("\\ __\\/ _ \\_ __ \\_/ __ \\ / ___/\\ __\\") -print(" | | ( <_> ) | \\/\\ ___/ \\___ \\ | |") -print(" |__| \\____/|__| \\___ >____ > |__|") -print(" \\/ \\/") - -print(" .__.__") -print(" __________ |__| | ______") -print(" / ___/ _ \\| | | / ___/") -print(" \\___ ( <_> ) | |__\\___ \\") -print("/____ >____/|__|____/____ >") -print(" \\/ \\/")]] - ------------------------------------------------------------------------------------------------ -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ diff --git a/woodsoils/locale/template.txt b/woodsoils/locale/template.txt index 9c40b2a..e1ce367 100644 --- a/woodsoils/locale/template.txt +++ b/woodsoils/locale/template.txt @@ -1,11 +1,4 @@ # textdomain: woodsoils - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Forest Soil 1= Forest Soil 2= Forest Soil 3= diff --git a/woodsoils/locale/woodsoils.de.tr b/woodsoils/locale/woodsoils.de.tr new file mode 100644 index 0000000..c87d1b5 --- /dev/null +++ b/woodsoils/locale/woodsoils.de.tr @@ -0,0 +1,5 @@ +# textdomain: woodsoils +Forest Soil 1=Waldboden 1 +Forest Soil 2=Waldboden 2 +Forest Soil 3=Waldboden 3 +Forest Soil 4=Waldboden 4 diff --git a/woodsoils/locale/woodsoils.eo.tr b/woodsoils/locale/woodsoils.eo.tr new file mode 100644 index 0000000..8905184 --- /dev/null +++ b/woodsoils/locale/woodsoils.eo.tr @@ -0,0 +1,5 @@ +# textdomain: woodsoils +Forest Soil 1=Arbara Grundo 1 +Forest Soil 2=Arbara Grundo 2 +Forest Soil 3=Arbara Grundo 3 +Forest Soil 4=Arbara Grundo 4 diff --git a/woodsoils/locale/woodsoils.fr.tr b/woodsoils/locale/woodsoils.fr.tr index 3ef6a2c..a9e756e 100644 --- a/woodsoils/locale/woodsoils.fr.tr +++ b/woodsoils/locale/woodsoils.fr.tr @@ -1,11 +1,4 @@ # textdomain: woodsoils - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Forest Soil 1=Humus forestier 1 Forest Soil 2=Humus forestier 2 Forest Soil 3=Humus forestier 3 diff --git a/youngtrees/init.lua b/youngtrees/init.lua index 96bcb9a..586b5e4 100644 --- a/youngtrees/init.lua +++ b/youngtrees/init.lua @@ -31,6 +31,7 @@ minetest.register_node("youngtrees:youngtree2_middle",{ description = S("Young Tree 2 (middle)"), drawtype="nodebox", tiles = {"youngtree2branch.png"}, + use_texture_alpha = "clip", inventory_image = "youngtree2branch.png", wield_image = "youngtree2branch.png", paramtype = "light", diff --git a/youngtrees/locale/template.txt b/youngtrees/locale/template.txt index 745f6b8..33048ea 100644 --- a/youngtrees/locale/template.txt +++ b/youngtrees/locale/template.txt @@ -1,11 +1,4 @@ # textdomain: youngtrees - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# - Young Bamboo Tree= Young Tree 2 (middle)= Young Tree (top)= diff --git a/youngtrees/locale/youngtrees.de.tr b/youngtrees/locale/youngtrees.de.tr new file mode 100644 index 0000000..0024f8e --- /dev/null +++ b/youngtrees/locale/youngtrees.de.tr @@ -0,0 +1,6 @@ +# textdomain: youngtrees +Young Bamboo Tree=Junger Bambus +Young Tree 2 (middle)=Strauch 2 (Mitte) +Young Tree (top)=Strauch (Spitze) +Young Tree (middle)=Strauch (Mitte) +Young Tree (bottom)=Strauch (Ansatz) diff --git a/youngtrees/locale/youngtrees.eo.tr b/youngtrees/locale/youngtrees.eo.tr new file mode 100644 index 0000000..3aeca86 --- /dev/null +++ b/youngtrees/locale/youngtrees.eo.tr @@ -0,0 +1,6 @@ +# textdomain: youngtrees +Young Bamboo Tree=Juna Bambuarbo +Young Tree 2 (middle)=Juna Arbo 2 (mezo) +Young Tree (top)=Juna Arbo (supro) +Young Tree (middle)=Juna Arbo (mezo) +Young Tree (bottom)=Juna Arbo (malsupro) diff --git a/youngtrees/locale/youngtrees.fr.tr b/youngtrees/locale/youngtrees.fr.tr index 42de95b..19d9533 100644 --- a/youngtrees/locale/youngtrees.fr.tr +++ b/youngtrees/locale/youngtrees.fr.tr @@ -1,11 +1,4 @@ # textdomain: youngtrees - -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# fat115 , 2017. -# - Young Bamboo Tree=Bambou jeune Young Tree 2 (middle)=Arbuste 2 (milieu) Young Tree (top)=Arbuste (haut)