diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-08-12 20:37:50 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-08-12 20:37:50 -0400 |
commit | 4aab7d0dbd782cf6741bdbba94440faf0c5c2e61 (patch) | |
tree | f5a13374fb176c21e381a2ae6ab53ac2ff282057 /ferns/treefern.lua | |
parent | 047a770ad04fc264039fa5b6109c803bd3d2d258 (diff) | |
download | dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.gz dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.bz2 dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.xz dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.zip |
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.
Diffstat (limited to 'ferns/treefern.lua')
-rw-r--r-- | ferns/treefern.lua | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ferns/treefern.lua b/ferns/treefern.lua index 01d7318..db4bc37 100644 --- a/ferns/treefern.lua +++ b/ferns/treefern.lua @@ -4,9 +4,12 @@ -- by Mossmanikin -- License (everything): WTFPL -- Contains code from: biome_lib --- Looked at code from: default , trees +-- Looked at code from: default , trees ----------------------------------------------------------------------------------------------- +-- support for i18n +local S = plantlife_i18n.gettext + assert(abstract_ferns.config.enable_treefern == true) abstract_ferns.grow_tree_fern = function(pos) @@ -17,14 +20,14 @@ abstract_ferns.grow_tree_fern = function(pos) and minetest.get_node(pos_01).name ~= "default:junglegrass" then return end - + local size = math.random(1, 4) + math.random(1, 4) if (size > 5) then size = 10 - size end size = size + 1 local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)] - + local i = 1 local brk = false while (i < size) do @@ -53,7 +56,7 @@ end -- TODO: Both of these nodes look the same? minetest.register_node("ferns:tree_fern_leaves", { - description = "Tree Fern Crown (Dicksonia)", + description = S("Tree Fern Crown (Dicksonia)"), drawtype = "plantlike", visual_scale = math.sqrt(8), paramtype = "light", @@ -122,7 +125,7 @@ minetest.register_node("ferns:tree_fern_leaves_02", { -- FERN TRUNK ----------------------------------------------------------------------------------------------- minetest.register_node("ferns:fern_trunk", { - description = "Fern Trunk (Dicksonia)", + description = S("Fern Trunk (Dicksonia)"), drawtype = "nodebox", paramtype = "light", tiles = { @@ -142,8 +145,8 @@ minetest.register_node("ferns:fern_trunk", { sounds = default.node_sound_wood_defaults(), after_destruct = function(pos,oldnode) local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z}) - if node.name == "ferns:fern_trunk" then - minetest.dig_node({x=pos.x,y=pos.y+1,z=pos.z}) + if node.name == "ferns:fern_trunk" then + minetest.dig_node({x=pos.x,y=pos.y+1,z=pos.z}) minetest.add_item(pos,"ferns:fern_trunk") end end, @@ -153,7 +156,7 @@ minetest.register_node("ferns:fern_trunk", { -- TREE FERN SAPLING ----------------------------------------------------------------------------------------------- minetest.register_node("ferns:sapling_tree_fern", { - description = "Tree Fern Sapling (Dicksonia)", + description = S("Tree Fern Sapling (Dicksonia)"), drawtype = "plantlike", paramtype = "light", paramtype2 = "facedir", |