diff options
Diffstat (limited to 'dryplants/juncus.lua')
-rw-r--r-- | dryplants/juncus.lua | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/dryplants/juncus.lua b/dryplants/juncus.lua index 2ea094f..4a16ebc 100644 --- a/dryplants/juncus.lua +++ b/dryplants/juncus.lua @@ -6,9 +6,12 @@ -- License (everything): WTFPL -- Contains code from: biome_lib --- Looked at code from: default +-- Looked at code from: default ----------------------------------------------------------------------------------------------- +-- support for i18n +local S = plantlife_i18n.gettext + abstract_dryplants.grow_juncus = function(pos) local juncus_type = math.random(2,3) local right_here = {x=pos.x, y=pos.y+1, z=pos.z} @@ -23,7 +26,7 @@ abstract_dryplants.grow_juncus = function(pos) end minetest.register_node("dryplants:juncus", { - description = "Juncus", + description = S("Juncus"), drawtype = "plantlike", visual_scale = math.sqrt(8), paramtype = "light", @@ -45,8 +48,8 @@ minetest.register_node("dryplants:juncus", { }, on_place = function(itemstack, placer, pointed_thing) local playername = placer:get_player_name() - if minetest.is_protected(pointed_thing.above, playername) or - minetest.is_protected(pointed_thing.under, playername) then + if minetest.is_protected(pointed_thing.above, playername) or + minetest.is_protected(pointed_thing.under, playername) then minetest.chat_send_player(playername, "Someone else owns that spot.") return end @@ -65,7 +68,7 @@ minetest.register_node("dryplants:juncus", { end, }) minetest.register_node("dryplants:juncus_02", { - description = "Juncus", + description = S("Juncus"), drawtype = "plantlike", visual_scale = math.sqrt(8), paramtype = "light", @@ -92,7 +95,7 @@ minetest.register_node("dryplants:juncus_02", { -- near water or swamp biome_lib:register_generate_plant({ surface = { - "default:dirt_with_grass", + "default:dirt_with_grass", --"default:desert_sand", --"default:sand", "stoneage:grass_with_silex", @@ -113,7 +116,7 @@ biome_lib:register_generate_plant({ -- at dunes/beach biome_lib:register_generate_plant({ surface = { - --"default:dirt_with_grass", + --"default:dirt_with_grass", --"default:desert_sand", "default:sand", --"stoneage:grass_with_silex", |