translate many nalc_* mods

and use function to register toolranks
This commit is contained in:
2022-07-24 03:59:18 +02:00
parent 120bcf9bd3
commit c5437a4b3d
33 changed files with 321 additions and 121 deletions

View File

@ -1,3 +1,5 @@
local S = minetest.get_translator("nalc_mediterranean")
-- Load tree's schematics
--local schems_pin_parasol = assert(loadfile(minetest.get_modpath("nalc_mediterranean").."/schematics/pin_parasol.lua"))()
--
@ -10,7 +12,7 @@
-- Mediterranean Dirt definition
local dirt_data = table.copy(minetest.registered_nodes["default:dirt_with_dry_grass"])
dirt_data.description = "Dirt with Mediterranean Grass"
dirt_data.description = S("Dirt with Mediterranean Grass")
dirt_data.tiles =
{"default_dry_grass.png^[multiply:#8ACA00", "default_dirt.png",
{name = "default_dirt.png^(default_dry_grass_side.png^[multiply:#8ACA00)",
@ -22,7 +24,7 @@ minetest.register_node("nalc_mediterranean:dirt_with_mediterranean_grass", dirt_
-- Mediterranean pine needles
-- Pine Needles
local needles_data = table.copy(minetest.registered_nodes["default:pine_needles"])
needles_data.description = "Mediterranean Pine Needles"
needles_data.description = S("Mediterranean Pine Needles")
needles_data.drop = {
max_items = 1,
items = {
@ -48,14 +50,14 @@ minetest.register_node("nalc_mediterranean:needles", needles_data)
-- Olive tree definition
local tree_data = table.copy(minetest.registered_nodes["default:tree"])
tree_data.description = "Olive tree trunk"
tree_data.description = S("Olive tree trunk")
tree_data.tiles = {"default_tree_top.png", "default_tree_top.png", "default_pine_tree.png^[colorize:#8F8F8F6F"}
minetest.register_node("nalc_mediterranean:olive_tree", tree_data)
-- Mediterranean Olive leaves
local leaves_data = table.copy(minetest.registered_nodes["default:leaves"])
leaves_data.description = "Olive Leaves"
leaves_data.description = S("Olive Leaves")
leaves_data.tiles = {"feuilles_olivier.png"}
leaves_data.special_tiles = {"feuilles_olivier.png"}
leaves_data.drop = {
@ -128,25 +130,25 @@ minetest.register_lbm({
local sapling_data = table.copy(minetest.registered_nodes["default:pine_sapling"])
local trees = {
{ description = "Umbrella Pine Sapling",
{ description = S("Umbrella Pine Sapling"),
sapling = "nalc_mediterranean:sapling_umbrella_pine",
minp = {x = -10, y = 1, z = -10},
maxp = {x = 10, y = 16, z = 10},
texture = "default_pine_sapling.png",
},
{ description = "Maritime Pine Sapling",
{ description = S("Maritime Pine Sapling"),
sapling = "nalc_mediterranean:sapling_maritime_pine",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 14, z = 3},
texture = "default_pine_sapling.png",
},
{ description = "Cypress Sapling",
{ description = S("Cypress Sapling"),
sapling = "nalc_mediterranean:sapling_cypress",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 19, z = 3},
texture = "default_pine_sapling.png",
},
{ description = "Olive Sapling",
{ description = S("Olive Sapling"),
sapling = "nalc_mediterranean:sapling_olive",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 9, z = 3},