From 4aab7d0dbd782cf6741bdbba94440faf0c5c2e61 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 12 Aug 2017 20:37:50 -0400 Subject: updated several mods biome_lib, boost cart, homedecor modpack, plantlife modpack, cottages, currency, farming redo, gloopblocks, ilights, moreores, moretrees, pipeworks, plasticbox, replacer, signs_lib, streets, travelnet, unified dyes, and vines, and maybe one or two others that I didn't see in the list. :-) I fixed the misc_overrides component (it broke when I switched over to farming redo a while back), and also I've added the classic peaceful_npc mod back into the modpack, since it seems to work now. Be sure when you run a world for the first time after this update, that you "Configure" the world, *disable* all of Dreambuilder Modpack, then re-enable the whole thing. If you don't, a few mods will fail to load due to recent changes in their dependencies. --- dryplants/reed.lua | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'dryplants/reed.lua') diff --git a/dryplants/reed.lua b/dryplants/reed.lua index 6f29028..db7d937 100644 --- a/dryplants/reed.lua +++ b/dryplants/reed.lua @@ -4,8 +4,11 @@ -- by Mossmanikin -- License (everything): WTFPL -- Looked at code from: darkage, default, stairs --- Dependencies: default +-- Dependencies: default ----------------------------------------------------------------------------------------------- +-- support for i18n +local S = plantlife_i18n.gettext + minetest.register_alias("stairs:stair_wetreed", "dryplants:wetreed_roof") minetest.register_alias("stairs:slab_wetreed", "dryplants:wetreed_slab") minetest.register_alias("stairs:stair_reed", "dryplants:reed_roof") @@ -16,7 +19,7 @@ minetest.register_alias("stairs:slab_reed", "dryplants:reed_slab") -- Wet Reed ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:wetreed", { - description = "Wet Reed", + description = S("Wet Reed"), paramtype = "light", paramtype2 = "facedir", tiles = {"dryplants_reed_wet.png"}, @@ -28,7 +31,7 @@ minetest.register_node("dryplants:wetreed", { -- Wet Reed Slab ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:wetreed_slab", { - description = "Wet Reed Slab", + description = S("Wet Reed Slab"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -49,7 +52,7 @@ minetest.register_node("dryplants:wetreed_slab", { -- Wet Reed Roof ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:wetreed_roof", { - description = "Wet Reed Roof", + description = S("Wet Reed Roof"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -93,7 +96,7 @@ if AUTO_ROOF_CORNER == true then interval = 1, chance = 1, action = function(pos) - + local node_east = minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z }) local node_west = minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z }) local node_north = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) @@ -106,7 +109,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner, param2=0}) end - + if ((node_north.name == roof and node_north.param2 == 1) or (node_north.name == corner and node_north.param2 == 2)) and ((node_east.name == roof and node_east.param2 == 0) @@ -114,7 +117,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner, param2=1}) end - + if ((node_east.name == roof and node_east.param2 == 2) or (node_east.name == corner and node_east.param2 == 3)) and ((node_south.name == roof and node_south.param2 == 1) @@ -122,7 +125,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner, param2=2}) end - + if ((node_south.name == roof and node_south.param2 == 3) or (node_south.name == corner and node_south.param2 == 0)) and ((node_west.name == roof and node_west.param2 == 2) @@ -138,7 +141,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner_2, param2=0}) end - + if ((node_north.name == roof and node_north.param2 == 3) or (node_north.name == corner_2 and node_north.param2 == 2)) and ((node_east.name == roof and node_east.param2 == 2) @@ -146,7 +149,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner_2, param2=1}) end - + if ((node_east.name == roof and node_east.param2 == 0) or (node_east.name == corner_2 and node_east.param2 == 3)) and ((node_south.name == roof and node_south.param2 == 3) @@ -154,7 +157,7 @@ if AUTO_ROOF_CORNER == true then then minetest.set_node(pos, {name=corner_2, param2=2}) end - + if ((node_south.name == roof and node_south.param2 == 1) or (node_south.name == corner_2 and node_south.param2 == 0)) and ((node_west.name == roof and node_west.param2 == 0) @@ -172,7 +175,7 @@ end -- Wet Reed Roof Corner ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:wetreed_roof_corner", { - description = "Wet Reed Roof Corner", + description = S("Wet Reed Roof Corner"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -202,7 +205,7 @@ minetest.register_node("dryplants:wetreed_roof_corner", { -- Wet Reed Roof Corner 2 ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:wetreed_roof_corner_2", { - description = "Wet Reed Roof Corner 2", + description = S("Wet Reed Roof Corner 2"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -227,7 +230,7 @@ minetest.register_node("dryplants:wetreed_roof_corner_2", { groups = {snappy=3, flammable=2}, sounds = default.node_sound_leaves_defaults(), }) - + ----------------------------------------------------------------------------------------------- -- Wet Reed becomes (dry) Reed over time ----------------------------------------------------------------------------------------------- @@ -262,7 +265,7 @@ end -- Reed ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:reed", { - description = "Reed", + description = S("Reed"), paramtype = "light", paramtype2 = "facedir", tiles = {"dryplants_reed.png"}, @@ -274,7 +277,7 @@ minetest.register_node("dryplants:reed", { -- Reed Slab ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:reed_slab", { - description = "Reed Slab", + description = S("Reed Slab"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -295,7 +298,7 @@ minetest.register_node("dryplants:reed_slab", { -- Reed Roof ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:reed_roof", { - description = "Reed Roof", + description = S("Reed Roof"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -323,7 +326,7 @@ minetest.register_node("dryplants:reed_roof", { -- Reed Roof Corner ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:reed_roof_corner", { - description = "Reed Roof Corner", + description = S("Reed Roof Corner"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -353,7 +356,7 @@ minetest.register_node("dryplants:reed_roof_corner", { -- Reed Roof Corner 2 ----------------------------------------------------------------------------------------------- minetest.register_node("dryplants:reed_roof_corner_2", { - description = "Reed Roof Corner 2", + description = S("Reed Roof Corner 2"), drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", -- cgit v1.2.3