translate many nalc_* mods
and use function to register toolranks
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
local S = nalc_default.get_translator
|
||||
|
||||
local function die_later(digger)
|
||||
digger:set_hp(0)
|
||||
end
|
||||
@ -5,7 +7,7 @@ end
|
||||
minetest.register_node(
|
||||
":nalc:desert_stone_with_coal",
|
||||
{
|
||||
description = "Coal Ore",
|
||||
description = S("Coal Ore"),
|
||||
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
@ -20,7 +22,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:desert_stone_with_iron",
|
||||
{
|
||||
description = "Iron Ore",
|
||||
description = S("Iron Ore"),
|
||||
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 2},
|
||||
@ -35,7 +37,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:desert_stone_with_copper",
|
||||
{
|
||||
description = "Copper Ore",
|
||||
description = S("Copper Ore"),
|
||||
tiles = {"default_desert_stone.png^default_mineral_copper.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 2},
|
||||
@ -50,7 +52,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:desert_stone_with_tin",
|
||||
{
|
||||
description = "Tin Ore",
|
||||
description = S("Tin Ore"),
|
||||
tiles = {"default_desert_stone.png^default_mineral_tin.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 2},
|
||||
@ -65,7 +67,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:meze",
|
||||
{
|
||||
description = "Meze Block",
|
||||
description = S("Meze Block"),
|
||||
tiles = {"default_meze_block.png"},
|
||||
is_ground_content = true,
|
||||
drop = "",
|
||||
@ -98,7 +100,7 @@ minetest.override_item(
|
||||
minetest.register_node(
|
||||
":nalc:cactus_spiky",
|
||||
{
|
||||
description = "Spiky Cactus",
|
||||
description = S("Spiky Cactus"),
|
||||
tiles = {"default_cactus_top.png", "default_cactus_top.png",
|
||||
"default_cactus_spiky.png"},
|
||||
paramtype2 = "facedir",
|
||||
@ -119,7 +121,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:acid_source",
|
||||
{
|
||||
description = "Acid Source",
|
||||
description = S("Acid Source"),
|
||||
inventory_image = minetest.inventorycube("default_acid.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
@ -154,7 +156,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:acid_flowing",
|
||||
{
|
||||
description = "Flowing Acid",
|
||||
description = S("Flowing Acid"),
|
||||
inventory_image = minetest.inventorycube("default_acid.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_acid.png"},
|
||||
@ -192,7 +194,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:sand_source",
|
||||
{
|
||||
description = "Sand Source",
|
||||
description = S("Sand Source"),
|
||||
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_sand.png"},
|
||||
@ -215,7 +217,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:sand_flowing",
|
||||
{
|
||||
description = "Flowing Sand",
|
||||
description = S("Flowing Sand"),
|
||||
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_sand.png"},
|
||||
@ -254,7 +256,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
":nalc:ladder_obsidian",
|
||||
{
|
||||
description = "Obsidian Ladder",
|
||||
description = S("Obsidian Ladder"),
|
||||
drawtype = "signlike",
|
||||
tiles = {"default_ladder_obsidian.png"},
|
||||
inventory_image = "default_ladder_obsidian.png",
|
||||
|
Reference in New Issue
Block a user