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. --- vines/crafts.lua | 5 ++++- vines/depends.txt | 1 + vines/functions.lua | 5 ++++- vines/init.lua | 5 ++++- vines/nodes.lua | 9 ++++++--- vines/shear.lua | 5 ++++- vines/vines.lua | 13 ++++++++----- 7 files changed, 31 insertions(+), 12 deletions(-) (limited to 'vines') diff --git a/vines/crafts.lua b/vines/crafts.lua index 19e658b..80a6a65 100644 --- a/vines/crafts.lua +++ b/vines/crafts.lua @@ -1,3 +1,6 @@ +-- support for i18n +local S = plantlife_i18n.gettext + minetest.register_craft({ output = 'vines:rope_block', recipe = vines.recipes['rope_block'] @@ -9,6 +12,6 @@ minetest.register_craft({ }) minetest.register_craftitem("vines:vines", { - description = "Vines", + description = S("Vines"), inventory_image = "vines_item.png", }) diff --git a/vines/depends.txt b/vines/depends.txt index 573e6e1..eef2e6c 100644 --- a/vines/depends.txt +++ b/vines/depends.txt @@ -1,3 +1,4 @@ default biome_lib +plantlife_i18n moretrees? diff --git a/vines/functions.lua b/vines/functions.lua index a2f1566..2d2f529 100644 --- a/vines/functions.lua +++ b/vines/functions.lua @@ -1,3 +1,6 @@ +-- support for i18n +local S = plantlife_i18n.gettext + vines.register_vine = function( name, defs, biome ) local groups = { vines=1, snappy=3, flammable=2 } @@ -61,7 +64,7 @@ vines.register_vine = function( name, defs, biome ) }) minetest.register_node( vine_name_middle, { - description = "Matured "..defs.description, + description = S("Matured").." "..defs.description, walkable = false, climbable = true, drop = "", diff --git a/vines/init.lua b/vines/init.lua index 72eda93..2abbda0 100644 --- a/vines/init.lua +++ b/vines/init.lua @@ -3,6 +3,9 @@ vines = { recipes = {} } +-- support for i18n +local S = plantlife_i18n.gettext + dofile( minetest.get_modpath( vines.name ) .. "/functions.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/aliases.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/recipes.lua" ) @@ -11,4 +14,4 @@ dofile( minetest.get_modpath( vines.name ) .. "/nodes.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" ) -print("[Vines] Loaded!") +print(S("[Vines] Loaded!")) diff --git a/vines/nodes.lua b/vines/nodes.lua index 6a1ee22..4e4d707 100644 --- a/vines/nodes.lua +++ b/vines/nodes.lua @@ -1,5 +1,8 @@ +-- support for i18n +local S = plantlife_i18n.gettext + minetest.register_node("vines:rope_block", { - description = "Rope", + description = S("Rope"), sunlight_propagates = true, paramtype = "light", tiles = { @@ -30,7 +33,7 @@ minetest.register_node("vines:rope_block", { }) minetest.register_node("vines:rope", { - description = "Rope", + description = S("Rope"), walkable = false, climbable = true, sunlight_propagates = true, @@ -47,7 +50,7 @@ minetest.register_node("vines:rope", { }) minetest.register_node("vines:rope_end", { - description = "Rope", + description = S("Rope"), walkable = false, climbable = true, sunlight_propagates = true, diff --git a/vines/shear.lua b/vines/shear.lua index b42a3e7..6ce498e 100644 --- a/vines/shear.lua +++ b/vines/shear.lua @@ -1,5 +1,8 @@ +-- support for i18n +local S = plantlife_i18n.gettext + minetest.register_tool("vines:shears", { - description = "Shears", + description = S("Shears"), inventory_image = "vines_shears.png", wield_image = "vines_shears.png", stack_max = 1, diff --git a/vines/vines.lua b/vines/vines.lua index 42c20d8..1643972 100644 --- a/vines/vines.lua +++ b/vines/vines.lua @@ -1,5 +1,8 @@ +-- support for i18n +local S = plantlife_i18n.gettext + vines.register_vine( 'root', { - description = "Roots", + description = S("Roots"), average_length = 9, },{ choose_random_wall = true, @@ -17,7 +20,7 @@ vines.register_vine( 'root', { }) vines.register_vine( 'vine', { - description = "Vines", + description = S("Vines"), average_length = 5, },{ choose_random_wall = true, @@ -38,7 +41,7 @@ vines.register_vine( 'vine', { }) vines.register_vine( 'side', { - description = "Vines", + description = S("Vines"), average_length = 6, },{ choose_random_wall = true, @@ -59,7 +62,7 @@ vines.register_vine( 'side', { }) vines.register_vine( "jungle", { - description = "Jungle Vines", + description = S("Jungle Vines"), average_length = 7, },{ choose_random_wall = true, @@ -86,7 +89,7 @@ vines.register_vine( "jungle", { }) vines.register_vine( 'willow', { - description = "Willow Vines", + description = S("Willow Vines"), average_length = 9, },{ choose_random_wall = true, -- cgit v1.2.3