Add MT 5.0.0 translation support
This commit is contained in:
parent
2505b12bd3
commit
7e11402d42
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("achievements")
|
||||
|
||||
achievements = {}
|
||||
|
||||
achievements.achievements = {}
|
||||
@ -209,14 +211,14 @@ function achievements.get_formspec(name, row)
|
||||
local progress = ""
|
||||
if achievements.achievements[name][aname] then
|
||||
if achievements.achievements[name][aname] == -1 then
|
||||
progress = "Gotten"
|
||||
progress = S("Gotten")
|
||||
amt_gotten = amt_gotten + 1
|
||||
else
|
||||
progress = achievements.achievements[name][aname] .. "/" .. def.times
|
||||
amt_progress = amt_progress + 1
|
||||
end
|
||||
else
|
||||
progress = "Missing"
|
||||
progress = S("Missing")
|
||||
end
|
||||
|
||||
if achievement_list ~= "" then
|
||||
@ -226,7 +228,7 @@ function achievements.get_formspec(name, row)
|
||||
achievement_list = achievement_list .. minetest.formspec_escape(def.title) .. ","
|
||||
achievement_list = achievement_list .. minetest.formspec_escape(def.description)
|
||||
.. ","
|
||||
achievement_list = achievement_list .. progress
|
||||
achievement_list = achievement_list .. minetest.formspec_escape(progress)
|
||||
end
|
||||
|
||||
local form = default.ui.get_page("achievements:achievements")
|
||||
@ -249,10 +251,11 @@ function achievements.get_formspec(name, row)
|
||||
end
|
||||
|
||||
form = form .. "label[0.25,8.15;"
|
||||
.. minetest.formspec_escape(amt_gotten.. " of "
|
||||
.. #achievements.registered_achievements_list
|
||||
.. " achievements gotten, " .. amt_progress
|
||||
.. " in progress") .. "]"
|
||||
.. minetest.formspec_escape(
|
||||
S("@1 of @2 achievements gotten, @3 in progress",
|
||||
amt_gotten,
|
||||
#achievements.registered_achievements_list,
|
||||
amt_progress)) .. "]"
|
||||
|
||||
form = form .. "label[0.25,0.25;" .. minetest.formspec_escape(def.title) .. "]"
|
||||
form = form .. "label[7.25,0.25;" .. minetest.formspec_escape(progress) .. "]"
|
||||
@ -297,8 +300,8 @@ minetest.register_on_player_receive_fields(receive_fields)
|
||||
achievements.register_achievement(
|
||||
"off_to_battle",
|
||||
{
|
||||
title = "Off to Battle",
|
||||
description = "Craft a Broadsword",
|
||||
title = S("Off to Battle"),
|
||||
description = S("Craft a Broadsword"),
|
||||
times = 1,
|
||||
craftitem = "default:broadsword",
|
||||
})
|
||||
@ -306,8 +309,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"hardened_miner",
|
||||
{
|
||||
title = "Hardened Miner",
|
||||
description = "Craft 3 Carbon Steel pickaxes.",
|
||||
title = S("Hardened Miner"),
|
||||
description = S("Craft 3 Carbon Steel pickaxes."),
|
||||
times = 3,
|
||||
craftitem = "default:pick_carbon_steel",
|
||||
})
|
||||
@ -317,8 +320,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"drain_the_swamp",
|
||||
{
|
||||
title = "Drain the Swamp",
|
||||
description = "Dig 30 swamp dirt.",
|
||||
title = S("Drain the Swamp"),
|
||||
description = S("Dig 30 swamp dirt."),
|
||||
times = 30,
|
||||
dignode = "default:swamp_dirt",
|
||||
})
|
||||
@ -328,8 +331,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"plunks",
|
||||
{
|
||||
title = "Plunks",
|
||||
description = "Place 10 planks",
|
||||
title = S("Plunks"),
|
||||
description = S("Place 10 planks"),
|
||||
times = 10,
|
||||
placenode = "group:planks",
|
||||
})
|
||||
@ -337,8 +340,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"carpenter",
|
||||
{
|
||||
title = "Carpenter",
|
||||
description = "Place 100 planks",
|
||||
title = S("Carpenter"),
|
||||
description = S("Place 100 planks"),
|
||||
times = 100,
|
||||
placenode = "group:planks",
|
||||
})
|
||||
@ -346,8 +349,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_carpenter",
|
||||
{
|
||||
title = "Master Carpenter",
|
||||
description = "Place 500 planks",
|
||||
title = S("Master Carpenter"),
|
||||
description = S("Place 500 planks"),
|
||||
times = 500,
|
||||
placenode = "group:planks",
|
||||
})
|
||||
@ -357,8 +360,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"mineority",
|
||||
{
|
||||
title = "Mineority",
|
||||
description = "Mine 20 stone",
|
||||
title = S("Mineority"),
|
||||
description = S("Mine 20 stone"),
|
||||
times = 20,
|
||||
dignode = "group:stone",
|
||||
})
|
||||
@ -366,8 +369,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"rockin",
|
||||
{
|
||||
title = "Rockin'",
|
||||
description = "Mine 200 stone",
|
||||
title = S("Rockin'"),
|
||||
description = S("Mine 200 stone"),
|
||||
times = 200,
|
||||
dignode = "group:stone",
|
||||
})
|
||||
@ -375,8 +378,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"rocksolid",
|
||||
{
|
||||
title = "Rock Solid",
|
||||
description = "Mine 1000 stone",
|
||||
title = S("Rock Solid"),
|
||||
description = S("Mine 1000 stone"),
|
||||
times = 1000,
|
||||
dignode = "group:stone",
|
||||
})
|
||||
@ -384,8 +387,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"cave_builder",
|
||||
{
|
||||
title = "Cave Builder",
|
||||
description = "Place 60 stone.",
|
||||
title = S("Cave Builder"),
|
||||
description = S("Place 60 stone."),
|
||||
times = 60,
|
||||
placenode = "default:stone",
|
||||
})
|
||||
@ -395,8 +398,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"timber",
|
||||
{
|
||||
title = "Timber",
|
||||
description = "Dig 10 tree trunks.",
|
||||
title = S("Timber"),
|
||||
description = S("Dig 10 tree trunks."),
|
||||
times = 10,
|
||||
dignode = "group:tree",
|
||||
})
|
||||
@ -404,8 +407,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"timberer",
|
||||
{
|
||||
title = "Timberer",
|
||||
description = "Dig 100 tree trunks.",
|
||||
title = S("Timberer"),
|
||||
description = S("Dig 100 tree trunks."),
|
||||
times = 100,
|
||||
dignode = "group:tree",
|
||||
})
|
||||
@ -413,8 +416,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"timbererest",
|
||||
{
|
||||
title = "Timbererest",
|
||||
description = "Dig 500 tree trunks.",
|
||||
title = S("Timbererest"),
|
||||
description = S("Dig 500 tree trunks."),
|
||||
times = 500,
|
||||
dignode = "group:tree",
|
||||
})
|
||||
@ -424,8 +427,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"builder",
|
||||
{
|
||||
title = "Builder",
|
||||
description = "Craft 180 bricks.",
|
||||
title = S("Builder"),
|
||||
description = S("Craft 180 bricks."),
|
||||
times = 180,
|
||||
craftitem = "default:brick",
|
||||
})
|
||||
@ -436,8 +439,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"gardener",
|
||||
{
|
||||
title = "Gardener",
|
||||
description = "Plant 10 flowers.",
|
||||
title = S("Gardener"),
|
||||
description = S("Plant 10 flowers."),
|
||||
times = 10,
|
||||
placenode = "default:flower",
|
||||
})
|
||||
@ -445,8 +448,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_gardener",
|
||||
{
|
||||
title = "Master Gardener",
|
||||
description = "Plant 100 flowers.",
|
||||
title = S("Master Gardener"),
|
||||
description = S("Plant 100 flowers."),
|
||||
times = 100,
|
||||
placenode = "default:flower",
|
||||
})
|
||||
@ -454,8 +457,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"welcome_to_the_mountains",
|
||||
{
|
||||
title = "Welcome to the Mountains",
|
||||
description = "Collect dry grass.",
|
||||
title = S("Welcome to the Mountains"),
|
||||
description = S("Collect dry grass."),
|
||||
times = 1,
|
||||
dignode = "default:dry_grass",
|
||||
})
|
||||
@ -463,8 +466,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"fertile",
|
||||
{
|
||||
title = "Fertile",
|
||||
description = "Craft 100 bags of fertilizer.",
|
||||
title = S("Fertile"),
|
||||
description = S("Craft 100 bags of fertilizer."),
|
||||
times = 100,
|
||||
craftitem = "default:fertilizer",
|
||||
})
|
||||
@ -474,8 +477,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_carpenter",
|
||||
{
|
||||
title = "Master Carpenter",
|
||||
description = "Craft 200 reinforced frames.",
|
||||
title = S("Master Carpenter"),
|
||||
description = S("Craft 200 reinforced frames."),
|
||||
times = 200,
|
||||
craftitem = "default:reinforced_frame",
|
||||
})
|
||||
@ -483,8 +486,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_stonemason",
|
||||
{
|
||||
title = "Master Stonemason",
|
||||
description = "Craft 200 reinforced cobble.",
|
||||
title = S("Master Stonemason"),
|
||||
description = S("Craft 200 reinforced cobble."),
|
||||
times = 200,
|
||||
craftitem = "default:reinforced_cobble",
|
||||
})
|
||||
@ -494,8 +497,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"sandman",
|
||||
{
|
||||
title = "Sandman",
|
||||
description = "Craft 60 compressed sandstone.",
|
||||
title = S("Sandman"),
|
||||
description = S("Craft 60 compressed sandstone."),
|
||||
times = 60,
|
||||
craftitem = "default:compressed_sandstone",
|
||||
})
|
||||
@ -505,8 +508,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"librarian",
|
||||
{
|
||||
title = "Librarian",
|
||||
description = "Craft 10 bookshelves.",
|
||||
title = S("Librarian"),
|
||||
description = S("Craft 10 bookshelves."),
|
||||
times = 10,
|
||||
craftitem = "default:bookshelf",
|
||||
})
|
||||
@ -516,8 +519,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"smelting_room",
|
||||
{
|
||||
title = "Smelting Room",
|
||||
description = "Craft 20 furnaces.",
|
||||
title = S("Smelting Room"),
|
||||
description = S("Craft 20 furnaces."),
|
||||
times = 20,
|
||||
craftitem = "default:furnace",
|
||||
})
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("armor")
|
||||
|
||||
armor = {}
|
||||
|
||||
-- Wear is wear per HP of damage taken
|
||||
@ -34,9 +36,9 @@ form_armor = form_armor .. default.ui.get_hotbar_itemslot_bg(0.25, 4.75, 8, 1)
|
||||
form_armor = form_armor .. default.ui.get_itemslot_bg(0.25, 5.75, 8, 3)
|
||||
form_armor = form_armor .. "listring[current_player;main]"
|
||||
|
||||
form_armor = form_armor .. "label[3.25,1;Helmet]"
|
||||
form_armor = form_armor .. "label[3.25,2;Chestplate]"
|
||||
form_armor = form_armor .. "label[3.25,3;Boots]"
|
||||
form_armor = form_armor .. "label[3.25,1;"..minetest.formspec_escape(S("Helmet")).."]"
|
||||
form_armor = form_armor .. "label[3.25,2;"..minetest.formspec_escape(S("Chestplate")).."]"
|
||||
form_armor = form_armor .. "label[3.25,3;"..minetest.formspec_escape(S("Boots")).."]"
|
||||
|
||||
form_armor = form_armor .. "list[current_player;armor;2.25,0.75;1,3;]"
|
||||
form_armor = form_armor .. "listring[current_player;armor]"
|
||||
@ -193,7 +195,7 @@ minetest.register_globalstep(on_globalstep)
|
||||
minetest.register_craftitem(
|
||||
"armor:chainmail_sheet",
|
||||
{
|
||||
description = "Chainmail Sheet",
|
||||
description = S("Chainmail Sheet"),
|
||||
|
||||
inventory_image = "armor_chainmail.png",
|
||||
wield_image = "armor_chainmail.png",
|
||||
@ -273,8 +275,8 @@ end
|
||||
achievements.register_achievement(
|
||||
"armored",
|
||||
{
|
||||
title = "Armored",
|
||||
description = "Craft a piece of armor",
|
||||
title = S("Armored"),
|
||||
description = S("Craft a piece of armor"),
|
||||
times = 1,
|
||||
craftitem = "group:is_armor",
|
||||
})
|
||||
@ -282,8 +284,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"warrior",
|
||||
{
|
||||
title = "Warrior",
|
||||
description = "Craft 10 pieces of armor",
|
||||
title = S("Warrior"),
|
||||
description = S("Craft 10 pieces of armor"),
|
||||
times = 10,
|
||||
craftitem = "group:is_armor",
|
||||
})
|
||||
|
@ -5,6 +5,8 @@
|
||||
-- Tweaked by Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("bed")
|
||||
|
||||
bed = {}
|
||||
|
||||
-- Per-user data table
|
||||
@ -254,7 +256,7 @@ minetest.register_globalstep(on_globalstep)
|
||||
minetest.register_node(
|
||||
"bed:bed_foot",
|
||||
{
|
||||
description = "Bed",
|
||||
description = S("Bed"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
@ -393,8 +395,8 @@ player_effects.register_effect(
|
||||
achievements.register_achievement(
|
||||
"bedtime",
|
||||
{
|
||||
title = "Bed Time",
|
||||
description = "Craft a bed",
|
||||
title = S("Bed Time"),
|
||||
description = S("Craft a bed"),
|
||||
times = 1,
|
||||
craftitem = "bed:bed_foot",
|
||||
})
|
||||
|
@ -4,10 +4,13 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("book")
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
minetest.register_craftitem(
|
||||
":default:book",
|
||||
{
|
||||
description = "Unnamed Book",
|
||||
description = S("Unnamed Book"),
|
||||
inventory_image = "default_book.png",
|
||||
stack_max = 1,
|
||||
|
||||
@ -24,9 +27,9 @@ minetest.register_craftitem(
|
||||
end
|
||||
|
||||
local form = default.ui.get_page("default:notabs")
|
||||
form = form .. "field[0.5,1.25;8,0;title;Title:;"..minetest.formspec_escape(title).."]"
|
||||
form = form .. "textarea[0.5,1.75;8,6.75;text;Contents:;"..minetest.formspec_escape(text).."]"
|
||||
form = form .. default.ui.button_exit(2.75, 7.75, 3, 1, "write", "Write")
|
||||
form = form .. "field[0.5,1.25;8,0;title;"..F(S("Title:"))..";"..F(title).."]"
|
||||
form = form .. "textarea[0.5,1.75;8,6.75;text;"..F(S("Contents:"))..";"..F(text).."]"
|
||||
form = form .. default.ui.button_exit(2.75, 7.75, 3, 1, "write", S("Write"))
|
||||
|
||||
minetest.show_formspec(name, "book:book", form)
|
||||
end,
|
||||
@ -53,8 +56,8 @@ end)
|
||||
achievements.register_achievement(
|
||||
"scribe",
|
||||
{
|
||||
title = "Scribe",
|
||||
description = "Craft a book",
|
||||
title = S("Scribe"),
|
||||
description = S("Craft a book"),
|
||||
times = 1,
|
||||
craftitem = "default:book",
|
||||
})
|
||||
|
@ -1,3 +1,6 @@
|
||||
local S = minetest.get_translator("creative")
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
local creative_inventory = {}
|
||||
creative_inventory.creative_inventory_size = 0
|
||||
|
||||
@ -75,7 +78,7 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
|
||||
"label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]"..
|
||||
"button[0.3,6.5;1.6,1;creative_prev;<<]"..
|
||||
"button[2.7,6.5;1.6,1;creative_next;>>]"..
|
||||
"label[5,1.5;Trash:]"..
|
||||
"label[5,1.5;"..F(S("Trash:")).."]"..
|
||||
"list[detached:creative_trash;main;5,2;1,1;]"..
|
||||
"listring[current_player;main]"..
|
||||
"listring[detached:creative_trash;main]"
|
||||
|
@ -3,19 +3,21 @@
|
||||
-- Crafting items
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("default")
|
||||
|
||||
-- Organic items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:fiber",
|
||||
{
|
||||
description = "Fiber",
|
||||
description = S("Fiber"),
|
||||
inventory_image = "default_fiber.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:stick",
|
||||
{
|
||||
description = "Stick",
|
||||
description = S("Stick"),
|
||||
inventory_image = "default_stick.png",
|
||||
groups = {stick = 1}
|
||||
})
|
||||
@ -23,14 +25,14 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:paper",
|
||||
{
|
||||
description = "Paper",
|
||||
description = S("Paper"),
|
||||
inventory_image = "default_paper.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:pearl",
|
||||
{
|
||||
description = "Pearl",
|
||||
description = S("Pearl"),
|
||||
inventory_image = "default_pearl.png",
|
||||
})
|
||||
|
||||
@ -39,7 +41,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:sheet_graphite",
|
||||
{
|
||||
description = "Graphite Sheet",
|
||||
description = S("Graphite Sheet"),
|
||||
inventory_image = "default_sheet_graphite.png",
|
||||
})
|
||||
|
||||
@ -48,42 +50,42 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:lump_sulfur",
|
||||
{
|
||||
description = "Sulfur Lump",
|
||||
description = S("Sulfur Lump"),
|
||||
inventory_image = "default_lump_sulfur.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_coal",
|
||||
{
|
||||
description = "Coal Lump",
|
||||
description = S("Coal Lump"),
|
||||
inventory_image = "default_lump_coal.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_iron",
|
||||
{
|
||||
description = "Iron Lump",
|
||||
description = S("Iron Lump"),
|
||||
inventory_image = "default_lump_iron.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_tin",
|
||||
{
|
||||
description = "Tin Lump",
|
||||
description = S("Tin Lump"),
|
||||
inventory_image = "default_lump_tin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_copper",
|
||||
{
|
||||
description = "Copper Lump",
|
||||
description = S("Copper Lump"),
|
||||
inventory_image = "default_lump_copper.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_bronze",
|
||||
{
|
||||
description = "Bronze Lump",
|
||||
description = S("Bronze Lump"),
|
||||
inventory_image = "default_lump_bronze.png",
|
||||
})
|
||||
|
||||
@ -92,42 +94,42 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Ingot",
|
||||
description = S("Wrought Iron Ingot"),
|
||||
inventory_image = "default_ingot_wrought_iron.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_steel",
|
||||
{
|
||||
description = "Steel Ingot",
|
||||
description = S("Steel Ingot"),
|
||||
inventory_image = "default_ingot_steel.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Ingot",
|
||||
description = S("Carbon Steel Ingot"),
|
||||
inventory_image = "default_ingot_carbon_steel.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_copper",
|
||||
{
|
||||
description = "Copper Ingot",
|
||||
description = S("Copper Ingot"),
|
||||
inventory_image = "default_ingot_copper.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_tin",
|
||||
{
|
||||
description = "Tin Ingot",
|
||||
description = S("Tin Ingot"),
|
||||
inventory_image = "default_ingot_tin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_bronze",
|
||||
{
|
||||
description = "Bronze Ingot",
|
||||
description = S("Bronze Ingot"),
|
||||
inventory_image = "default_ingot_bronze.png",
|
||||
})
|
||||
|
||||
@ -136,14 +138,14 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:flint",
|
||||
{
|
||||
description = "Flint Shard",
|
||||
description = S("Flint Shard"),
|
||||
inventory_image = "default_flint.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:book",
|
||||
{
|
||||
description = "Book",
|
||||
description = S("Book"),
|
||||
inventory_image = "default_book.png",
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
stack_max = 1,
|
||||
@ -152,7 +154,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:bucket_water",
|
||||
{
|
||||
description = "Water Bucket",
|
||||
description = S("Water Bucket"),
|
||||
inventory_image = "default_bucket_water.png",
|
||||
stack_max = 1,
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
@ -192,7 +194,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:bucket_river_water",
|
||||
{
|
||||
description = "River Water Bucket",
|
||||
description = S("River Water Bucket"),
|
||||
inventory_image = "default_bucket_river_water.png",
|
||||
stack_max = 1,
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
@ -234,7 +236,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:bucket_swamp_water",
|
||||
{
|
||||
description = "Swamp Water Bucket",
|
||||
description = S("Swamp Water Bucket"),
|
||||
inventory_image = "default_bucket_swamp_water.png",
|
||||
stack_max = 1,
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
@ -276,7 +278,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:bucket",
|
||||
{
|
||||
description = "Empty Bucket",
|
||||
description = S("Empty Bucket"),
|
||||
inventory_image = "default_bucket.png",
|
||||
stack_max = 10,
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
@ -339,7 +341,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"default:fertilizer",
|
||||
{
|
||||
description = "Fertilizer",
|
||||
description = S("Fertilizer"),
|
||||
inventory_image = "default_fertilizer_inventory.png",
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
default.ui = {}
|
||||
|
||||
local S = minetest.get_translator("default")
|
||||
|
||||
-- Registered UI pages
|
||||
|
||||
default.ui.registered_pages = {
|
||||
@ -66,15 +68,15 @@ function default.ui.button(x, y, w, h, name, label, noclip)
|
||||
|
||||
if w == 1 then
|
||||
return "image_button["..x..","..y..";"..w..","..h
|
||||
..";ui_button_1w_inactive.png;"..name..";"..label..";"
|
||||
..";ui_button_1w_inactive.png;"..name..";"..minetest.formspec_escape(label)..";"
|
||||
..nc..";false;ui_button_1w_active.png]"
|
||||
elseif w == 2 then
|
||||
return "image_button["..x..","..y..";"..w..","..h
|
||||
..";ui_button_2w_inactive.png;"..name..";"..label..";"
|
||||
..";ui_button_2w_inactive.png;"..name..";"..minetest.formspec_escape(label)..";"
|
||||
..nc..";false;ui_button_2w_active.png]"
|
||||
else
|
||||
return "image_button["..x..","..y..";"..w..","..h
|
||||
..";ui_button_3w_inactive.png;"..name..";"..label..";"
|
||||
..";ui_button_3w_inactive.png;"..name..";"..minetest.formspec_escape(label)..";"
|
||||
..nc..";false;ui_button_3w_active.png]"
|
||||
end
|
||||
end
|
||||
@ -88,11 +90,11 @@ function default.ui.button_exit(x, y, w, h, name, label, noclip)
|
||||
|
||||
if w == 2 then
|
||||
return "image_button_exit["..x..","..y..";"..w..","..h
|
||||
..";ui_button_2w_inactive.png;"..name..";"..label..";"
|
||||
..";ui_button_2w_inactive.png;"..name..";"..minetest.formspec_escape(label)..";"
|
||||
..nc..";false;ui_button_2w_active.png]"
|
||||
else
|
||||
return "image_button_exit["..x..","..y..";"..w..","..h
|
||||
..";ui_button_3w_inactive.png;"..name..";"..label..";"
|
||||
..";ui_button_3w_inactive.png;"..name..";"..minetest.formspec_escape(label)..";"
|
||||
..nc..";false;ui_button_3w_active.png]"
|
||||
end
|
||||
end
|
||||
@ -109,7 +111,7 @@ function default.ui.tab(x, y, name, icon, tooltip)
|
||||
..icon..";"..name..";;true;false;"
|
||||
..minetest.formspec_escape(shifted_icon).."]"
|
||||
|
||||
form = form .. "tooltip["..name..";"..tooltip.."]"
|
||||
form = form .. "tooltip["..name..";"..minetest.formspec_escape(tooltip).."]"
|
||||
|
||||
return form
|
||||
end
|
||||
@ -197,8 +199,8 @@ function default.ui.item_group(x, y, group, count, name)
|
||||
result = result .. "item_image["..x..","..y..";1,1;"
|
||||
..minetest.formspec_escape(itemname .. " " .. count).."]"
|
||||
|
||||
result = result .. "tooltip["..name..";Group: "
|
||||
..minetest.formspec_escape(group).."]"
|
||||
result = result .. "tooltip["..name..";"..
|
||||
minetest.formspec_escape(S("Group: @1", group)).."]"
|
||||
end
|
||||
|
||||
return result
|
||||
@ -237,15 +239,15 @@ local form_default_default = ""
|
||||
form_default_default = form_default_default .. "size[8.5,9]"
|
||||
form_default_default = form_default_default .. default.ui.default.colors
|
||||
form_default_default = form_default_default .. default.ui.default.bg
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 0.5, "tab_crafting", "ui_icon_crafting.png", "Crafting")
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 0.5, "tab_crafting", "ui_icon_crafting.png", S("Crafting"))
|
||||
if minetest.get_modpath("armor") ~= nil then
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 1.28, "tab_armor", "ui_icon_armor.png", "Armor")
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 1.28, "tab_armor", "ui_icon_armor.png", S("Armor"))
|
||||
end
|
||||
if minetest.get_modpath("achievements") ~= nil then
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 2.06, "tab_achievements", "ui_icon_achievements.png", "Achievements")
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 2.06, "tab_achievements", "ui_icon_achievements.png", S("Achievements"))
|
||||
end
|
||||
if minetest.get_modpath("player_skins") ~= nil then
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 2.84, "tab_player_skins", "ui_icon_player_skins.png", "Player Skins")
|
||||
form_default_default = form_default_default .. default.ui.tab(-0.9, 2.84, "tab_player_skins", "ui_icon_player_skins.png", S("Player Skins"))
|
||||
end
|
||||
form_default_default = form_default_default .. "background[0,0;8.5,9;ui_formspec_bg_tall.png]"
|
||||
default.ui.register_page("default:default", form_default_default)
|
||||
@ -264,7 +266,7 @@ form_default_field = form_default_field .. "size[8.5,5]"
|
||||
form_default_field = form_default_field .. default.ui.default.colors
|
||||
form_default_field = form_default_field .. default.ui.default.bg
|
||||
form_default_field = form_default_field .. "background[0,0;8.5,4.5;ui_formspec_bg_short.png]"
|
||||
form_default_field = form_default_field .. default.ui.button_exit(2.75, 3, 3, 1, "", "Write", false)
|
||||
form_default_field = form_default_field .. default.ui.button_exit(2.75, 3, 3, 1, "", S("Write"), false)
|
||||
form_default_field = form_default_field .. "field[1,1.75;7,0;text;;${text}]"
|
||||
default.ui.register_page("default:field", form_default_field)
|
||||
|
||||
|
@ -2,6 +2,9 @@
|
||||
-- Furnace
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("default")
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
function default.furnace_active_formspec(percent, item_percent)
|
||||
local form = default.ui.get_page("default:2part")
|
||||
form = form .. "list[current_player;main;0.25,4.75;8,4;]"
|
||||
@ -53,7 +56,7 @@ default.ui.register_page("default_furnace_inactive", form_furnace)
|
||||
minetest.register_node(
|
||||
"default:furnace",
|
||||
{
|
||||
description = "Furnace",
|
||||
description = S("Furnace"),
|
||||
tiles ={"default_furnace_top.png", "default_furnace_top.png", "default_furnace_sides.png",
|
||||
"default_furnace_sides.png", "default_furnace_sides.png", "default_furnace_front.png"},
|
||||
paramtype2 = "facedir",
|
||||
@ -63,7 +66,7 @@ minetest.register_node(
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", default.ui.get_page("default_furnace_inactive"))
|
||||
meta:set_string("infotext", "Furnace")
|
||||
meta:set_string("infotext", S("Furnace"))
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("fuel", 1)
|
||||
@ -87,7 +90,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:furnace_active",
|
||||
{
|
||||
description = "Furnace (active)",
|
||||
description = S("Furnace (active)"),
|
||||
tiles ={"default_furnace_top.png", "default_furnace_top.png", "default_furnace_sides.png",
|
||||
"default_furnace_sides.png", "default_furnace_sides.png", "default_furnace_front.png^default_furnace_flame.png"},
|
||||
paramtype2 = "facedir",
|
||||
@ -99,7 +102,7 @@ minetest.register_node(
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", default.ui.get_page("default_furnace_inactive"))
|
||||
meta:set_string("infotext", "Furnace");
|
||||
meta:set_string("infotext", S("Furnace"));
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("fuel", 1)
|
||||
@ -226,31 +229,36 @@ minetest.register_abm(
|
||||
local item_percent = 0
|
||||
if cookable then
|
||||
item_percent = math.floor(src_time / cooked.time * 100)
|
||||
item_state = item_percent .. "%"
|
||||
item_state = S("@1%", item_percent)
|
||||
else
|
||||
if srclist[1]:is_empty() then
|
||||
item_state = "Empty"
|
||||
item_state = S("Empty")
|
||||
else
|
||||
item_state = "Not cookable"
|
||||
item_state = S("Not cookable")
|
||||
end
|
||||
end
|
||||
|
||||
local fuel_state = "Empty"
|
||||
local active = "inactive "
|
||||
local fuel_state = S("Empty")
|
||||
local active = false
|
||||
if fuel_time <= fuel_totaltime and fuel_totaltime ~= 0 then
|
||||
active = "active "
|
||||
active = true
|
||||
local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
|
||||
fuel_state = fuel_percent .. "%"
|
||||
fuel_state = S("@1%", fuel_percent)
|
||||
formspec = default.furnace_active_formspec(fuel_percent, item_percent)
|
||||
swap_node(pos, "default:furnace_active")
|
||||
else
|
||||
if not fuellist[1]:is_empty() then
|
||||
fuel_state = "0%"
|
||||
fuel_state = S("@1%", "0")
|
||||
end
|
||||
swap_node(pos, "default:furnace")
|
||||
end
|
||||
|
||||
local infotext = "Furnace " .. active .. "(Item: " .. item_state .. "; Fuel: " .. fuel_state .. ")"
|
||||
local infotext
|
||||
if active then
|
||||
infotext = S("Furnace active (Item: @1; Fuel: @2)", item_state, fuel_state)
|
||||
else
|
||||
infotext = S("Furnace inactive (Item: @1; Fuel: @2)", item_state, fuel_state)
|
||||
end
|
||||
|
||||
--
|
||||
-- Set meta values
|
||||
|
@ -3,12 +3,14 @@
|
||||
-- Node definitions
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("default")
|
||||
|
||||
-- Ores
|
||||
|
||||
minetest.register_node(
|
||||
"default:stone_with_sulfur",
|
||||
{
|
||||
description = "Stone with Sulfur",
|
||||
description = S("Stone with Sulfur"),
|
||||
tiles = {"default_stone.png^default_mineral_sulfur.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:lump_sulfur",
|
||||
@ -18,7 +20,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone_with_graphite",
|
||||
{
|
||||
description = "Stone with Graphite",
|
||||
description = S("Stone with Graphite"),
|
||||
tiles = {"default_stone.png^default_mineral_graphite.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:sheet_graphite",
|
||||
@ -28,7 +30,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone_with_coal",
|
||||
{
|
||||
description = "Stone with Coal",
|
||||
description = S("Stone with Coal"),
|
||||
tiles = {"default_stone.png^default_mineral_coal.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:lump_coal",
|
||||
@ -38,7 +40,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone_with_iron",
|
||||
{
|
||||
description = "Stone with Iron",
|
||||
description = S("Stone with Iron"),
|
||||
tiles = {"default_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:lump_iron",
|
||||
@ -48,7 +50,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone_with_tin",
|
||||
{
|
||||
description = "Stone with Tin",
|
||||
description = S("Stone with Tin"),
|
||||
tiles = {"default_stone.png^default_mineral_tin.png"},
|
||||
groups = {cracky = 1, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:lump_tin",
|
||||
@ -58,7 +60,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone_with_copper",
|
||||
{
|
||||
description = "Stone with Copper",
|
||||
description = S("Stone with Copper"),
|
||||
tiles = {"default_stone.png^default_mineral_copper.png"},
|
||||
groups = {cracky = 1, stone = 1, not_in_craft_guide = 1},
|
||||
drop = "default:lump_copper",
|
||||
@ -70,7 +72,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:stone",
|
||||
{
|
||||
description = "Stone",
|
||||
description = S("Stone"),
|
||||
tiles = {"default_stone.png"},
|
||||
groups = {cracky = 2, stone = 1},
|
||||
drop = "default:cobble",
|
||||
@ -80,7 +82,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:cobble",
|
||||
{
|
||||
description = "Cobble",
|
||||
description = S("Cobble"),
|
||||
tiles = {"default_cobbles.png"},
|
||||
stack_max = 240,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
@ -90,7 +92,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:reinforced_cobble",
|
||||
{
|
||||
description = "Reinforced Cobble",
|
||||
description = S("Reinforced Cobble"),
|
||||
tiles = {"default_reinforced_cobbles.png"},
|
||||
groups = {cracky = 1, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -99,7 +101,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:gravel",
|
||||
{
|
||||
description = "Gravel",
|
||||
description = S("Gravel"),
|
||||
tiles = {"default_gravel.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
@ -113,7 +115,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:block_coal",
|
||||
{
|
||||
description = "Coal Block",
|
||||
description = S("Coal Block"),
|
||||
tiles = {"default_block_coal.png"},
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -122,7 +124,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:block_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Block",
|
||||
description = S("Wrought Iron Block"),
|
||||
tiles = {"default_block_wrought_iron.png"},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -131,7 +133,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:block_steel",
|
||||
{
|
||||
description = "Steel Block",
|
||||
description = S("Steel Block"),
|
||||
tiles = {"default_block_steel.png"},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -140,7 +142,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:block_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Block",
|
||||
description = S("Carbon Steel Block"),
|
||||
tiles = {"default_block_carbon_steel.png"},
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -149,7 +151,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:block_bronze",
|
||||
{
|
||||
description = "Bronze Block",
|
||||
description = S("Bronze Block"),
|
||||
tiles = {"default_block_bronze.png"},
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -160,7 +162,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt",
|
||||
{
|
||||
description = "Dirt",
|
||||
description = S("Dirt"),
|
||||
tiles = {"default_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -5},
|
||||
@ -170,7 +172,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dry_dirt",
|
||||
{
|
||||
description = "Dry Dirt",
|
||||
description = S("Dry Dirt"),
|
||||
tiles = {"default_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly = 3, soil = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
||||
@ -180,7 +182,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:swamp_dirt",
|
||||
{
|
||||
description = "Swamp Dirt",
|
||||
description = S("Swamp Dirt"),
|
||||
tiles = {"default_swamp_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -10},
|
||||
@ -190,7 +192,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fertilized_dirt",
|
||||
{
|
||||
description = "Fertilized Dirt",
|
||||
description = S("Fertilized Dirt"),
|
||||
tiles = {
|
||||
"default_dirt.png^default_fertilizer.png",
|
||||
"default_dirt.png",
|
||||
@ -211,7 +213,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt_with_dry_grass",
|
||||
{
|
||||
description = "Dirt with Dry Grass",
|
||||
description = S("Dirt with Dry Grass"),
|
||||
tiles = {
|
||||
"default_dry_grass.png",
|
||||
"default_dirt.png",
|
||||
@ -237,7 +239,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt_with_swamp_grass",
|
||||
{
|
||||
description = "Dirt with Swamp Grass",
|
||||
description = S("Dirt with Swamp Grass"),
|
||||
tiles = {
|
||||
"default_swamp_grass.png",
|
||||
"default_swamp_dirt.png",
|
||||
@ -263,7 +265,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt_with_grass",
|
||||
{
|
||||
description = "Dirt with Grass",
|
||||
description = S("Dirt with Grass"),
|
||||
tiles = {
|
||||
"default_grass.png",
|
||||
"default_dirt.png",
|
||||
@ -290,7 +292,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt_with_grass_footsteps",
|
||||
{
|
||||
description = "Dirt with Grass Footsteps",
|
||||
description = S("Dirt with Grass and Footsteps"),
|
||||
tiles = {"default_grass_footstep.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -5, not_in_craft_guide = 1},
|
||||
drop = {
|
||||
@ -314,7 +316,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dirt_path",
|
||||
{
|
||||
description = "Dirt Path",
|
||||
description = S("Dirt Path"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
@ -330,7 +332,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:path_slab",
|
||||
{
|
||||
description = "Dirt Path Slab",
|
||||
description = S("Dirt Path Slab"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
@ -346,7 +348,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:heated_dirt_path",
|
||||
{
|
||||
description = "Heated Dirt Path",
|
||||
description = S("Heated Dirt Path"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
light_source = 6,
|
||||
@ -365,7 +367,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:brick",
|
||||
{
|
||||
description = "Brick",
|
||||
description = S("Brick Block"),
|
||||
tiles = {"default_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
@ -377,7 +379,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sand",
|
||||
{
|
||||
description = "Sand",
|
||||
description = S("Sand"),
|
||||
tiles = {"default_sand.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
@ -386,7 +388,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fertilized_sand",
|
||||
{
|
||||
description = "Fertilized Sand",
|
||||
description = S("Fertilized Sand"),
|
||||
tiles = {"default_sand.png^default_fertilizer.png", "default_sand.png", "default_sand.png"},
|
||||
groups = {
|
||||
crumbly = 3,
|
||||
@ -405,7 +407,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sandstone",
|
||||
{
|
||||
description = "Sandstone",
|
||||
description = S("Sandstone"),
|
||||
tiles = {"default_sandstone.png"},
|
||||
groups = {crumbly = 2, cracky = 3},
|
||||
drop = "default:sand 2",
|
||||
@ -415,7 +417,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:compressed_sandstone",
|
||||
{
|
||||
description = "Compressed Sandstone",
|
||||
description = S("Compressed Sandstone"),
|
||||
tiles = {"default_compressed_sandstone_top.png", "default_compressed_sandstone_top.png", "default_compressed_sandstone.png"},
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
@ -427,7 +429,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sapling",
|
||||
{
|
||||
description = "Sapling",
|
||||
description = S("Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_sapling.png"},
|
||||
@ -457,7 +459,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sapling_oak",
|
||||
{
|
||||
description = "Oak Sapling",
|
||||
description = S("Oak Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_sapling_oak.png"},
|
||||
@ -486,7 +488,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sapling_birch",
|
||||
{
|
||||
description = "Birch Sapling",
|
||||
description = S("Birch Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_sapling_birch.png"},
|
||||
@ -518,7 +520,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:tree",
|
||||
{
|
||||
description = "Tree",
|
||||
description = S("Tree"),
|
||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||
groups = {choppy = 2,tree = 1,oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -527,7 +529,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:tree_oak",
|
||||
{
|
||||
description = "Oak Tree",
|
||||
description = S("Oak Tree"),
|
||||
tiles = {"default_tree_oak_top.png", "default_tree_oak_top.png", "default_tree_oak.png"},
|
||||
groups = {choppy = 1, tree = 1, oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -536,7 +538,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:tree_birch",
|
||||
{
|
||||
description = "Birch Tree",
|
||||
description = S("Birch Tree"),
|
||||
tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png"},
|
||||
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -547,7 +549,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:leaves",
|
||||
{
|
||||
description = "Leaves",
|
||||
description = S("Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves.png"},
|
||||
@ -572,7 +574,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:leaves_oak",
|
||||
{
|
||||
description = "Oak Leaves",
|
||||
description = S("Oak Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves_oak.png"},
|
||||
@ -597,7 +599,7 @@ minetest.register_node(
|
||||
minetest.register_node( -- looks just like default oak leaves, except they decay much farther
|
||||
"default:leaves_oak_huge",
|
||||
{
|
||||
description = "Oak Leaves (Huge)",
|
||||
description = S("Oak Leaves (Huge)"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves_oak.png"},
|
||||
@ -623,7 +625,7 @@ minetest.register_node( -- looks just like default oak leaves, except they decay
|
||||
minetest.register_node(
|
||||
"default:leaves_birch",
|
||||
{
|
||||
description = "Birch Leaves",
|
||||
description = S("Birch Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_leaves_birch.png"},
|
||||
@ -648,7 +650,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dry_leaves",
|
||||
{
|
||||
description = "Dry Leaves",
|
||||
description = S("Dry Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles = {"default_dry_leaves.png"},
|
||||
@ -675,7 +677,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:cactus",
|
||||
{
|
||||
description = "Cactus",
|
||||
description = S("Cactus"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
@ -707,7 +709,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:rope",
|
||||
{
|
||||
description = "Rope",
|
||||
description = S("Rope"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_rope.png"},
|
||||
inventory_image = "default_rope_inventory.png",
|
||||
@ -733,7 +735,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:papyrus",
|
||||
{
|
||||
description = "Papyrus",
|
||||
description = S("Papyrus"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_papyrus.png"},
|
||||
inventory_image = "default_papyrus_inventory.png",
|
||||
@ -767,7 +769,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:glass",
|
||||
{
|
||||
description = "Glass",
|
||||
description = S("Glass"),
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = {"default_glass_frame.png", "default_glass.png"},
|
||||
paramtype = "light",
|
||||
@ -782,7 +784,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fence",
|
||||
{
|
||||
description = "Wooden Fence",
|
||||
description = S("Wooden Fence"),
|
||||
drawtype = "fencelike",
|
||||
tiles = {"default_wood.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence.png",
|
||||
@ -803,7 +805,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fence_oak",
|
||||
{
|
||||
description = "Oak Fence",
|
||||
description = S("Oak Fence"),
|
||||
drawtype = "fencelike",
|
||||
tiles = {"default_wood_oak.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence_oak.png",
|
||||
@ -824,7 +826,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fence_birch",
|
||||
{
|
||||
description = "Birch Fence",
|
||||
description = S("Birch Fence"),
|
||||
drawtype = "fencelike",
|
||||
tiles = {"default_wood_birch.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence_birch.png",
|
||||
@ -847,7 +849,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:ladder",
|
||||
{
|
||||
description = "Ladder",
|
||||
description = S("Ladder"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"default_ladder_sides.png",
|
||||
@ -888,7 +890,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:planks",
|
||||
{
|
||||
description = "Planks",
|
||||
description = S("Wooden Planks"),
|
||||
tiles = {"default_wood.png"},
|
||||
groups = {planks = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 3},
|
||||
is_ground_content = false,
|
||||
@ -898,7 +900,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:planks_oak",
|
||||
{
|
||||
description = "Oak Planks",
|
||||
description = S("Oak Planks"),
|
||||
tiles = {"default_wood_oak.png"},
|
||||
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
||||
is_ground_content = false,
|
||||
@ -908,7 +910,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:planks_birch",
|
||||
{
|
||||
description = "Birch Planks",
|
||||
description = S("Birch Planks"),
|
||||
tiles = {"default_wood_birch.png"},
|
||||
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
||||
is_ground_content = false,
|
||||
@ -920,7 +922,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:frame",
|
||||
{
|
||||
description = "Frame",
|
||||
description = S("Frame"),
|
||||
tiles = {"default_frame.png"},
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
|
||||
is_ground_content = false,
|
||||
@ -930,7 +932,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:reinforced_frame",
|
||||
{
|
||||
description = "Reinforced Frame",
|
||||
description = S("Reinforced Frame"),
|
||||
tiles = {"default_reinforced_frame.png"},
|
||||
groups = {wood = 1, choppy = 1},
|
||||
is_ground_content = false,
|
||||
@ -942,7 +944,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:water_flowing",
|
||||
{
|
||||
description = "Flowing Water",
|
||||
description = S("Flowing Water"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
@ -978,7 +980,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:water_source",
|
||||
{
|
||||
description = "Water Source",
|
||||
description = S("Water Source"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
@ -1008,7 +1010,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:river_water_flowing",
|
||||
{
|
||||
description = "Flowing River Water",
|
||||
description = S("Flowing River Water"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
@ -1046,7 +1048,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:river_water_source",
|
||||
{
|
||||
description = "River Water Source",
|
||||
description = S("River Water Source"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
@ -1078,7 +1080,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:swamp_water_flowing",
|
||||
{
|
||||
description = "Flowing Swamp Water",
|
||||
description = S("Flowing Swamp Water"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_swamp_water.png"},
|
||||
special_tiles = {
|
||||
@ -1116,7 +1118,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:swamp_water_source",
|
||||
{
|
||||
description = "Swamp Water Source",
|
||||
description = S("Swamp Water Source"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_swamp_water.png"},
|
||||
special_tiles = {
|
||||
@ -1150,7 +1152,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:torch_dead",
|
||||
{
|
||||
description = "Dead Torch",
|
||||
description = S("Dead Torch"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
{
|
||||
@ -1184,7 +1186,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:torch_weak",
|
||||
{
|
||||
description = "Weak Torch",
|
||||
description = S("Weak Torch"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
{
|
||||
@ -1248,7 +1250,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:torch",
|
||||
{
|
||||
description = "Torch",
|
||||
description = S("Torch"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
{
|
||||
@ -1314,7 +1316,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:fern",
|
||||
{
|
||||
description = "Fern",
|
||||
description = S("Fern"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1338,7 +1340,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:flower",
|
||||
{
|
||||
description = "Flower",
|
||||
description = S("Flower"),
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -1361,7 +1363,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:swamp_grass",
|
||||
{
|
||||
description = "Swamp Grass Clump",
|
||||
description = S("Swamp Grass Clump"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1383,7 +1385,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:dry_grass",
|
||||
{
|
||||
description = "Dry Grass Clump",
|
||||
description = S("Dry Grass Clump"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1404,7 +1406,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:grass",
|
||||
{
|
||||
description = "Grass Clump",
|
||||
description = S("Grass Clump"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1426,7 +1428,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:tall_grass",
|
||||
{
|
||||
description = "Tall Grass Clump",
|
||||
description = S("Tall Grass Clump"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1451,7 +1453,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:thistle",
|
||||
{
|
||||
description = "Thistle",
|
||||
description = S("Thistle"),
|
||||
drawtype = "plantlike",
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
@ -1476,7 +1478,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:apple",
|
||||
{
|
||||
description = "Apple",
|
||||
description = S("Apple"),
|
||||
drawtype = "nodebox",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"},
|
||||
@ -1501,7 +1503,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:clam",
|
||||
{
|
||||
description = "Clam",
|
||||
description = S("Clam"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_clam.png"},
|
||||
inventory_image = "default_clam_inventory.png",
|
||||
@ -1533,7 +1535,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:sign",
|
||||
{
|
||||
description = "Sign",
|
||||
description = S("Sign"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_sign.png"},
|
||||
inventory_image = "default_sign_inventory.png",
|
||||
@ -1555,7 +1557,8 @@ minetest.register_node(
|
||||
--local n = minetest.get_node(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", default.ui.get_page("default:field"))
|
||||
meta:set_string("infotext", '""')
|
||||
-- Show empty sign text in quotation marks
|
||||
meta:set_string("infotext", S('""'))
|
||||
meta:set_string("text", "")
|
||||
end,
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
@ -1566,7 +1569,8 @@ minetest.register_node(
|
||||
" wrote \""..fields.text.."\" to sign at "..
|
||||
minetest.pos_to_string(pos))
|
||||
meta:set_string("text", fields.text)
|
||||
meta:set_string("infotext", '"'..fields.text..'"')
|
||||
-- Show sign text in quotation marks
|
||||
meta:set_string("infotext", S('"@1"', fields.text))
|
||||
|
||||
default.write_name(pos, meta:get_string("text"))
|
||||
end,
|
||||
@ -1579,7 +1583,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:bookshelf",
|
||||
{
|
||||
description = "Bookshelf",
|
||||
description = S("Bookshelf"),
|
||||
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 2,choppy = 3,oddly_breakable_by_hand = 2},
|
||||
@ -1611,7 +1615,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"default:chest",
|
||||
{
|
||||
description = "Chest",
|
||||
description = S("Chest"),
|
||||
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png",
|
||||
"default_chest_sides.png", "default_chest_sides.png", "default_chest_front.png"},
|
||||
paramtype2 = "facedir",
|
||||
@ -1622,7 +1626,7 @@ minetest.register_node(
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
meta:set_string("formspec", default.ui.get_page("default:chest"))
|
||||
meta:set_string("infotext", "Chest")
|
||||
meta:set_string("infotext", S("Chest"))
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
|
||||
@ -1639,7 +1643,7 @@ minetest.register_node(
|
||||
if text ~= "" then
|
||||
meta:set_string("infotext", text)
|
||||
else
|
||||
meta:set_string("infotext", "Chest")
|
||||
meta:set_string("infotext", S("Chest"))
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("default")
|
||||
|
||||
local player_soundspec = {}
|
||||
local player_lastsound = {}
|
||||
local player_health = {}
|
||||
@ -20,7 +22,7 @@ local function step(dtime)
|
||||
name,
|
||||
minetest.colorize(
|
||||
"#f00",
|
||||
"Don't go past 30000m in any direction!"
|
||||
S("Don't go past 30000m in any direction!")
|
||||
))
|
||||
|
||||
player:set_pos(player_lastpos[name])
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- Tool definitions
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("default")
|
||||
|
||||
local creative_digtime = 0.15
|
||||
|
||||
local tool_levels = nil
|
||||
@ -339,7 +341,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_wood",
|
||||
{
|
||||
description = "Wooden Pickaxe",
|
||||
description = S("Wooden Pickaxe"),
|
||||
inventory_image = "default_pick_wood.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
@ -353,7 +355,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_stone",
|
||||
{
|
||||
description = "Stone Pickaxe",
|
||||
description = S("Stone Pickaxe"),
|
||||
inventory_image = "default_pick_stone.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level = 0,
|
||||
@ -367,7 +369,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Pickaxe",
|
||||
description = S("Wrought Iron Pickaxe"),
|
||||
inventory_image = "default_pick_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -381,7 +383,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_steel",
|
||||
{
|
||||
description = "Steel Pickaxe",
|
||||
description = S("Steel Pickaxe"),
|
||||
inventory_image = "default_pick_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -395,7 +397,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Pickaxe",
|
||||
description = S("Carbon Steel Pickaxe"),
|
||||
inventory_image = "default_pick_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -409,7 +411,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:pick_bronze",
|
||||
{
|
||||
description = "Bronze Pickaxe",
|
||||
description = S("Bronze Pickaxe"),
|
||||
inventory_image = "default_pick_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -425,7 +427,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_wood",
|
||||
{
|
||||
description = "Wooden Shovel",
|
||||
description = S("Wooden Shovel"),
|
||||
inventory_image = "default_shovel_wood.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
@ -439,7 +441,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_stone",
|
||||
{
|
||||
description = "Stone Shovel",
|
||||
description = S("Stone Shovel"),
|
||||
inventory_image = "default_shovel_stone.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
@ -453,7 +455,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Shovel",
|
||||
description = S("Wrought Iron Shovel"),
|
||||
inventory_image = "default_shovel_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -467,7 +469,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_steel",
|
||||
{
|
||||
description = "Steel Shovel",
|
||||
description = S("Steel Shovel"),
|
||||
inventory_image = "default_shovel_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -481,7 +483,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Shovel",
|
||||
description = S("Carbon Steel Shovel"),
|
||||
inventory_image = "default_shovel_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -495,7 +497,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shovel_bronze",
|
||||
{
|
||||
description = "Bronze Shovel",
|
||||
description = S("Bronze Shovel"),
|
||||
inventory_image = "default_shovel_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -511,7 +513,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_wood",
|
||||
{
|
||||
description = "Wooden Axe",
|
||||
description = S("Wooden Axe"),
|
||||
inventory_image = "default_axe_wood.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
@ -526,7 +528,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_stone",
|
||||
{
|
||||
description = "Stone Axe",
|
||||
description = S("Stone Axe"),
|
||||
inventory_image = "default_axe_stone.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
@ -541,7 +543,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Axe",
|
||||
description = S("Wrought Iron Axe"),
|
||||
inventory_image = "default_axe_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -556,7 +558,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_steel",
|
||||
{
|
||||
description = "Steel Axe",
|
||||
description = S("Steel Axe"),
|
||||
inventory_image = "default_axe_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -571,7 +573,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Axe",
|
||||
description = S("Carbon Steel Axe"),
|
||||
inventory_image = "default_axe_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -586,7 +588,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:axe_bronze",
|
||||
{
|
||||
description = "Bronze Axe",
|
||||
description = S("Bronze Axe"),
|
||||
inventory_image = "default_axe_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
@ -603,7 +605,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_wood",
|
||||
{
|
||||
description = "Wooden Spear",
|
||||
description = S("Wooden Spear"),
|
||||
inventory_image = "default_spear_wood.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -619,7 +621,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_stone",
|
||||
{
|
||||
description = "Stone Spear",
|
||||
description = S("Stone Spear"),
|
||||
inventory_image = "default_spear_stone.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -635,7 +637,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Spear",
|
||||
description = S("Wrought Iron Spear"),
|
||||
inventory_image = "default_spear_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -651,7 +653,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_steel",
|
||||
{
|
||||
description = "Steel Spear",
|
||||
description = S("Steel Spear"),
|
||||
inventory_image = "default_spear_steel.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -667,7 +669,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Spear",
|
||||
description = S("Carbon Steel Spear"),
|
||||
inventory_image = "default_spear_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -683,7 +685,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:spear_bronze",
|
||||
{
|
||||
description = "Bronze Spear",
|
||||
description = S("Bronze Spear"),
|
||||
inventory_image = "default_spear_bronze.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
@ -701,7 +703,7 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:broadsword",
|
||||
{
|
||||
description = "Broadsword",
|
||||
description = S("Broadsword"),
|
||||
inventory_image = "default_broadsword.png",
|
||||
wield_image = "default_broadsword.png",
|
||||
wield_scale = {x = 2.0, y = 2.0, z = 1.0},
|
||||
@ -716,14 +718,14 @@ minetest.register_tool(
|
||||
minetest.register_tool(
|
||||
"default:shears",
|
||||
{
|
||||
description = "Wrought Iron Shears",
|
||||
description = S("Wrought Iron Shears"),
|
||||
inventory_image = "default_shears.png",
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:flint_and_steel",
|
||||
{
|
||||
description = "Flint and Steel",
|
||||
description = S("Flint and Steel"),
|
||||
inventory_image = "default_flint_and_steel.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing == nil then return end
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("door")
|
||||
|
||||
door = {}
|
||||
|
||||
-- Registers a door
|
||||
@ -289,7 +291,7 @@ end
|
||||
door.register_door(
|
||||
"door:door_wood",
|
||||
{
|
||||
description = "Wooden Door",
|
||||
description = S("Wooden Door"),
|
||||
inventory_image = "door_wood.png",
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
|
||||
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
||||
@ -311,7 +313,7 @@ crafting.register_craft(
|
||||
door.register_door(
|
||||
"door:door_stone",
|
||||
{
|
||||
description = "Stone Door",
|
||||
description = S("Stone Door"),
|
||||
inventory_image = "door_stone.png",
|
||||
groups = {cracky=3,oddly_breakable_by_hand=1,door=1},
|
||||
tiles_top = {"door_stone_a.png", "door_brown.png"},
|
||||
@ -335,8 +337,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"adoorable",
|
||||
{
|
||||
title = "Adoorable",
|
||||
description = "Craft a door",
|
||||
title = S("Adoorable"),
|
||||
description = S("Craft a door"),
|
||||
times = 1,
|
||||
craftitem = "group:door",
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
local S = minetest.get_translator("farming")
|
||||
--
|
||||
-- Achievements
|
||||
--
|
||||
@ -6,8 +6,8 @@
|
||||
achievements.register_achievement(
|
||||
"farmer",
|
||||
{
|
||||
title = "Farmer",
|
||||
description = "Plant 20 wheat seeds",
|
||||
title = S("Farmer"),
|
||||
description = S("Plant 20 wheat seeds"),
|
||||
times = 20,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
@ -15,8 +15,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_farmer",
|
||||
{
|
||||
title = "Master Farmer",
|
||||
description = "Plant 200 wheat seeds",
|
||||
title = S("Master Farmer"),
|
||||
description = S("Plant 200 wheat seeds"),
|
||||
times = 200,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
@ -24,8 +24,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"cotton_farmer",
|
||||
{
|
||||
title = "Cotton Farmer",
|
||||
description = "Plant 10 cotton seeds",
|
||||
title = S("Cotton Farmer"),
|
||||
description = S("Plant 10 cotton seeds"),
|
||||
times = 10,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
@ -33,8 +33,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"master_cotton_farmer",
|
||||
{
|
||||
title = "Master Cotton Farmer",
|
||||
description = "Plant 100 cotton seeds",
|
||||
title = S("Master Cotton Farmer"),
|
||||
description = S("Plant 100 cotton seeds"),
|
||||
times = 100,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
|
@ -1,35 +1,35 @@
|
||||
|
||||
--
|
||||
-- Crafts and items
|
||||
--
|
||||
local S = minetest.get_translator("farming")
|
||||
|
||||
-- Items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"farming:cotton",
|
||||
{
|
||||
description = "Cotton",
|
||||
description = S("Cotton"),
|
||||
inventory_image = "farming_cotton.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"farming:wheat",
|
||||
{
|
||||
description = "Wheat",
|
||||
description = S("Wheat"),
|
||||
inventory_image = "farming_wheat.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"farming:flour",
|
||||
{
|
||||
description = "Flour",
|
||||
description = S("Flour"),
|
||||
inventory_image = "farming_flour.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"farming:bread",
|
||||
{
|
||||
description = "Bread",
|
||||
description = S("Bread"),
|
||||
inventory_image = "farming_bread.png",
|
||||
on_use = minetest.item_eat({hp = 4, sat = 40})
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
local S = minetest.get_translator("farming")
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
@ -6,7 +6,7 @@
|
||||
minetest.register_node(
|
||||
"farming:wheat_1",
|
||||
{
|
||||
description = "Wheat Seed",
|
||||
description = S("Wheat Seed"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_1.png"},
|
||||
inventory_image = "farming_wheat_seed.png",
|
||||
@ -33,7 +33,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:wheat_2",
|
||||
{
|
||||
description = "Wheat Plant (stage 1)",
|
||||
description = S("Wheat Plant (stage 1)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_2.png"},
|
||||
paramtype = "light",
|
||||
@ -58,7 +58,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:wheat_3",
|
||||
{
|
||||
description = "Wheat Plant (stage 2)",
|
||||
description = S("Wheat Plant (stage 2)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_3.png"},
|
||||
paramtype = "light",
|
||||
@ -83,7 +83,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:wheat_4",
|
||||
{
|
||||
description = "Wheat Plant (stage 3)",
|
||||
description = S("Wheat Plant (stage 3)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat_4.png"},
|
||||
paramtype = "light",
|
||||
@ -111,7 +111,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:cotton_1",
|
||||
{
|
||||
description = "Cotton Seed",
|
||||
description = S("Cotton Seed"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_1.png"},
|
||||
inventory_image = "farming_cotton_seed.png",
|
||||
@ -138,7 +138,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:cotton_2",
|
||||
{
|
||||
description = "Cotton Plant (stage 1)",
|
||||
description = S("Cotton Plant (stage 1)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_2.png"},
|
||||
paramtype = "light",
|
||||
@ -163,7 +163,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:cotton_3",
|
||||
{
|
||||
description = "Cotton Plant (stage 2)",
|
||||
description = S("Cotton Plant (stage 2)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_3.png"},
|
||||
paramtype = "light",
|
||||
@ -188,7 +188,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:cotton_4",
|
||||
{
|
||||
description = "Cotton Plant (stage 3)",
|
||||
description = S("Cotton Plant (stage 3)"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_cotton_4.png"},
|
||||
paramtype = "light",
|
||||
@ -243,7 +243,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"farming:cotton_bale",
|
||||
{
|
||||
description = "Cotton Bale",
|
||||
description = S("Cotton Bale"),
|
||||
tiles ={"farming_cotton_bale.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 2, oddly_breakable_by_hand = 3,
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- Gold and NPC Trading
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("gold")
|
||||
|
||||
gold = {}
|
||||
|
||||
@ -124,10 +125,10 @@ if minetest.get_modpath("mobs") ~= nil then
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 4", "", "gold:ingot_gold 2"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 5", "", "gold:ingot_gold 4"})
|
||||
|
||||
gold.trade_names["farmer"] = "Farmer"
|
||||
gold.trade_names["tavernkeeper"] = "Tavern Keeper"
|
||||
gold.trade_names["blacksmith"] = "Blacksmith"
|
||||
gold.trade_names["butcher"] = "Butcher"
|
||||
gold.trade_names["farmer"] = S("Farmer")
|
||||
gold.trade_names["tavernkeeper"] = S("Tavern Keeper")
|
||||
gold.trade_names["blacksmith"] = S("Blacksmith")
|
||||
gold.trade_names["butcher"] = S("Butcher")
|
||||
end
|
||||
|
||||
local form_trading = ""
|
||||
@ -150,8 +151,8 @@ form_trading = form_trading .. default.ui.get_itemslot_bg(6.25, 1.25, 1, 2)
|
||||
form_trading = form_trading .. "image[2.5,1.25;1,1;ui_arrow_bg.png^[transformR270]"
|
||||
form_trading = form_trading .. "image[5,2.25;1,1;ui_arrow.png^[transformR90]"
|
||||
|
||||
form_trading = form_trading .. default.ui.button_exit(1.25, 3.25, 2, 1, "cancel", "Cancel")
|
||||
form_trading = form_trading .. default.ui.button(5.25, 3.25, 2, 1, "trade", "Trade")
|
||||
form_trading = form_trading .. default.ui.button_exit(1.25, 3.25, 2, 1, "cancel", S("Cancel"))
|
||||
form_trading = form_trading .. default.ui.button(5.25, 3.25, 2, 1, "trade", S("Trade"))
|
||||
|
||||
default.ui.register_page("gold_trading_book", form_trading)
|
||||
|
||||
@ -247,7 +248,7 @@ end)
|
||||
minetest.register_craftitem(
|
||||
"gold:trading_book",
|
||||
{
|
||||
description = "Trading Book",
|
||||
description = S("Trading Book"),
|
||||
inventory_image = "default_book.png^gold_bookribbon.png",
|
||||
stack_max = 1,
|
||||
})
|
||||
@ -255,14 +256,14 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"gold:lump_gold",
|
||||
{
|
||||
description = "Gold Lump",
|
||||
description = S("Gold Lump"),
|
||||
inventory_image = "gold_lump_gold.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"gold:ingot_gold",
|
||||
{
|
||||
description = "Gold Ingot",
|
||||
description = S("Gold Ingot"),
|
||||
inventory_image = "gold_ingot_gold.png",
|
||||
})
|
||||
|
||||
@ -271,7 +272,7 @@ minetest.register_craftitem(
|
||||
minetest.register_node(
|
||||
"gold:stone_with_gold",
|
||||
{
|
||||
description = "Stone with Gold",
|
||||
description = S("Stone with Gold"),
|
||||
tiles ={"default_stone.png^gold_mineral_gold.png"},
|
||||
groups = {cracky=1, stone=1},
|
||||
drop = "gold:lump_gold",
|
||||
@ -317,8 +318,8 @@ minetest.register_craft(
|
||||
achievements.register_achievement(
|
||||
"trader",
|
||||
{
|
||||
title = "Trader",
|
||||
description = "Craft a trading book.",
|
||||
title = S("Trader"),
|
||||
description = S("Craft a trading book."),
|
||||
times = 1,
|
||||
craftitem = "gold:trading_book",
|
||||
})
|
||||
@ -326,8 +327,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"gold_rush",
|
||||
{
|
||||
title = "Gold Rush",
|
||||
description = "Dig 60 gold ore.",
|
||||
title = S("Gold Rush"),
|
||||
description = S("Dig 60 gold ore."),
|
||||
times = 60,
|
||||
dignode = "gold:stone_with_gold",
|
||||
})
|
||||
|
@ -4,6 +4,8 @@
|
||||
-- Tweaked by Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("hunger")
|
||||
|
||||
hunger = {}
|
||||
|
||||
-- Per-player userdata
|
||||
@ -299,7 +301,7 @@ local function on_globalstep(dtime)
|
||||
|
||||
local pos_sound = player:get_pos()
|
||||
minetest.chat_send_player(
|
||||
name, minetest.colorize("#f00", "You are hungry."))
|
||||
name, minetest.colorize("#f00", S("You are hungry.")))
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -361,8 +363,8 @@ end
|
||||
player_effects.register_effect(
|
||||
"hunger_eating",
|
||||
{
|
||||
title = "Eating",
|
||||
description = "If you are eating food",
|
||||
title = S("Eating"),
|
||||
description = S("You're eating food, which slows you down"),
|
||||
duration = 2,
|
||||
physics = {
|
||||
speed = 0.6,
|
||||
|
@ -4,6 +4,9 @@
|
||||
-- By Kaadmy
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("jewels")
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
jewels = {}
|
||||
|
||||
-- Array of registered jeweled tools
|
||||
@ -18,8 +21,8 @@ form_bench = form_bench .. "list[current_name;main;2.25,1.75;1,1;]"
|
||||
form_bench = form_bench .. "listring[current_name;main]"
|
||||
form_bench = form_bench .. default.ui.get_itemslot_bg(2.25, 1.75, 1, 1)
|
||||
|
||||
form_bench = form_bench .. "label[3.25,1.75;1. Place unjeweled tool here]"
|
||||
form_bench = form_bench .. "label[3.25,2.25;2. Hold a jewel and punch the bench]"
|
||||
form_bench = form_bench .. "label[3.25,1.75;"..F(S("1. Place unjeweled tool here")).."]"
|
||||
form_bench = form_bench .. "label[3.25,2.25;"..F(S("2. Hold a jewel and punch the bench")).."]"
|
||||
|
||||
form_bench = form_bench .. "list[current_player;main;0.25,4.75;8,4;]"
|
||||
form_bench = form_bench .. "listring[current_player;main]"
|
||||
@ -83,7 +86,8 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
local new_tooldef = tooldef
|
||||
local desc = new_tooldef.description or ""
|
||||
|
||||
desc = "Jeweled " .. desc
|
||||
-- TODO: Add custom description for each tool for better translatability
|
||||
desc = S("Jeweled @1", desc)
|
||||
|
||||
if data.description ~= nil then
|
||||
desc = data.description
|
||||
@ -94,14 +98,14 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
|
||||
if data.stats.range and new_tooldef.range then
|
||||
new_tooldef.range = new_tooldef.range + data.stats.range
|
||||
desc = desc .. "\nRange: " .. plus_power(data.stats.range)
|
||||
desc = desc .. "\n"..S("Range: @1", plus_power(data.stats.range))
|
||||
end
|
||||
|
||||
if new_tooldef.tool_capabilities then
|
||||
if data.stats.maxdrop and new_tooldef.tool_capabilities.max_drop_level then
|
||||
new_tooldef.tool_capabilities.max_drop_level =
|
||||
new_tooldef.tool_capabilities.max_drop_level + data.stats.maxdrop
|
||||
desc = desc .. "\nDrop level: " .. plus_power(data.stats.maxdrop)
|
||||
desc = desc .. "\n"..S("Drop level: @1", plus_power(data.stats.maxdrop))
|
||||
end
|
||||
|
||||
if data.stats.digspeed then
|
||||
@ -119,21 +123,21 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
end
|
||||
end
|
||||
|
||||
desc = desc .. "\nDig time: " .. plus_power(data.stats.digspeed) .. " seconds"
|
||||
desc = desc .. "\n"..S("Dig time: @1 s", plus_power(data.stats.digspeed))
|
||||
end
|
||||
|
||||
if data.stats.uses then
|
||||
desc = desc .. "\nUses: " .. plus_power(data.stats.uses)
|
||||
desc = desc .. "\n"..S("Uses: @1", plus_power(data.stats.uses))
|
||||
end
|
||||
if data.stats.maxlevel then
|
||||
desc = desc .. "\nDig level: " .. plus_power(data.stats.maxlevel)
|
||||
desc = desc .. "\n"..S("Dig level: @1", plus_power(data.stats.maxlevel))
|
||||
end
|
||||
|
||||
if data.stats.fleshy and new_tooldef.tool_capabilities.damage_groups
|
||||
and new_tooldef.tool_capabilities.damage_groups.fleshy then
|
||||
new_tooldef.tool_capabilities.damage_groups.fleshy =
|
||||
new_tooldef.tool_capabilities.damage_groups.fleshy + data.stats.fleshy
|
||||
desc = desc .. "\nDamage: " .. plus_power(data.stats.fleshy)
|
||||
desc = desc .. "\n"..S("Damage: @1", plus_power(data.stats.fleshy))
|
||||
end
|
||||
end
|
||||
|
||||
@ -170,7 +174,7 @@ end
|
||||
minetest.register_craftitem(
|
||||
"jewels:jewel",
|
||||
{
|
||||
description = "Jewel",
|
||||
description = S("Jewel"),
|
||||
inventory_image = "jewels_jewel.png",
|
||||
stack_max = 10
|
||||
})
|
||||
@ -180,7 +184,7 @@ minetest.register_craftitem(
|
||||
minetest.register_node(
|
||||
"jewels:bench",
|
||||
{
|
||||
description = "Jeweler's Workbench",
|
||||
description = S("Jeweler's Workbench"),
|
||||
tiles ={"jewels_bench_top.png", "jewels_bench_bottom.png", "jewels_bench_sides.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
@ -191,7 +195,7 @@ minetest.register_node(
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", default.ui.get_page("jewels_bench"))
|
||||
meta:set_string("infotext", "Jeweler's Workbench")
|
||||
meta:set_string("infotext", S("Jeweler's Workbench"))
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 1)
|
||||
@ -228,7 +232,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"jewels:jewel_ore",
|
||||
{
|
||||
description = "Jewel Ore",
|
||||
description = S("Jewel Ore"),
|
||||
tiles = {
|
||||
"default_tree_birch_top.png",
|
||||
"default_tree_birch_top.png",
|
||||
@ -268,16 +272,16 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"jeweler",
|
||||
{
|
||||
title = "Jeweler",
|
||||
description = "Jewel a tool",
|
||||
title = S("Jeweler"),
|
||||
description = S("Jewel a tool"),
|
||||
times = 1,
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"master_jeweler",
|
||||
{
|
||||
title = "Master Jeweler",
|
||||
description = "Jewel 10 tools",
|
||||
title = S("Master Jeweler"),
|
||||
description = S("Jewel 10 tools"),
|
||||
times = 10,
|
||||
})
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
-- Jeweled tool defs
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("jewels")
|
||||
|
||||
-- Automatic jeweling on specific tools
|
||||
|
||||
local tool_types = {
|
||||
@ -166,7 +168,7 @@ jewels.register_jewel(
|
||||
"default:broadsword",
|
||||
"jewels:broadsword_jeweled_pommel",
|
||||
{
|
||||
description = "Jeweled Pommel Broadsword",
|
||||
description = S("Jeweled Pommel Broadsword"),
|
||||
overlay = "jewels_jeweled_pommel.png",
|
||||
stats = {
|
||||
fleshy = 2,
|
||||
@ -177,7 +179,7 @@ jewels.register_jewel(
|
||||
"jewels:broadsword_jeweled_pommel",
|
||||
"jewels:broadsword_jeweled_pommel_and_guard",
|
||||
{
|
||||
description = "Jeweled Pommel&Guard Broadsword",
|
||||
description = S("Jeweled Pommel&Guard Broadsword"),
|
||||
overlay = "jewels_jeweled_guard.png",
|
||||
stats = {
|
||||
range = 1,
|
||||
@ -188,7 +190,7 @@ jewels.register_jewel(
|
||||
"jewels:broadsword_jeweled_pommel_and_guard",
|
||||
"jewels:serrated_broadsword",
|
||||
{
|
||||
description = "Serrated Broadsword",
|
||||
description = S("Serrated Broadsword"),
|
||||
overlay = "jewels_jeweled_blade.png",
|
||||
stats = {
|
||||
fleshy = 2,
|
||||
|
@ -4,6 +4,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("locks")
|
||||
|
||||
locks = {}
|
||||
|
||||
-- Settings
|
||||
@ -51,7 +53,7 @@ end
|
||||
minetest.register_tool(
|
||||
"locks:pick",
|
||||
{
|
||||
description = "Lock Pick",
|
||||
description = S("Lock Pick"),
|
||||
|
||||
inventory_image = "locks_pick.png",
|
||||
wield_image = "locks_pick.png",
|
||||
@ -69,8 +71,8 @@ minetest.register_tool(
|
||||
if own then
|
||||
minetest.chat_send_player(
|
||||
own,
|
||||
minetest.colorize("#f00", player:get_player_name()
|
||||
.. " has broken into your locked chest!"))
|
||||
minetest.colorize("#f00",
|
||||
S("@1 has broken into your locked chest!", player:get_player_name())))
|
||||
end
|
||||
end
|
||||
|
||||
@ -82,7 +84,7 @@ minetest.register_tool(
|
||||
minetest.register_craftitem(
|
||||
"locks:lock",
|
||||
{
|
||||
description = "Lock",
|
||||
description = S("Lock"),
|
||||
|
||||
inventory_image = "locks_lock.png",
|
||||
wield_image = "locks_lock.png",
|
||||
@ -91,7 +93,7 @@ minetest.register_craftitem(
|
||||
minetest.register_node(
|
||||
"locks:chest",
|
||||
{
|
||||
description = "Locked Chest",
|
||||
description = S("Locked Chest"),
|
||||
tiles ={
|
||||
"default_chest_top.png",
|
||||
"default_chest_top.png",
|
||||
@ -115,7 +117,7 @@ minetest.register_node(
|
||||
local name = player:get_player_name()
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", "Locked Chest (Owned by " .. name .. ")")
|
||||
meta:set_string("infotext", S("Locked Chest (Owned by @1)", name))
|
||||
meta:set_string("lock_owner", name)
|
||||
end,
|
||||
on_rightclick = function(pos, node, player)
|
||||
@ -175,11 +177,11 @@ minetest.register_node(
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
if text == "" then
|
||||
meta:set_string("infotext", "Locked Chest (Owned by "
|
||||
.. meta:get_string("lock_owner") .. ")")
|
||||
meta:set_string("infotext", S("Locked Chest (Owned by @1)",
|
||||
meta:get_string("lock_owner")))
|
||||
else
|
||||
meta:set_string("infotext", text .. " (Owned by "
|
||||
.. meta:get_string("lock_owner") .. ")")
|
||||
meta:set_string("infotext", S("@1 (Owned by @2)",
|
||||
text, meta:get_string("lock_owner")))
|
||||
end
|
||||
end,
|
||||
on_blast = function() end,
|
||||
@ -219,8 +221,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"locksmith",
|
||||
{
|
||||
title = "Locksmith",
|
||||
description = "Craft a lock",
|
||||
title = S("Locksmith"),
|
||||
description = S("Craft a lock"),
|
||||
times = 1,
|
||||
craftitem = "locks:lock",
|
||||
})
|
||||
@ -228,8 +230,8 @@ achievements.register_achievement(
|
||||
achievements.register_achievement(
|
||||
"burglar",
|
||||
{
|
||||
title = "Burglar",
|
||||
description = "Craft a lock pick",
|
||||
title = S("Burglar"),
|
||||
description = S("Craft a lock pick"),
|
||||
times = 1,
|
||||
craftitem = "locks:pick",
|
||||
})
|
||||
|
@ -4,6 +4,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("lumien")
|
||||
|
||||
local lumien_on_radius = 2
|
||||
local lumien_off_radius = 4
|
||||
|
||||
@ -59,7 +61,7 @@ minetest.register_globalstep(on_globalstep)
|
||||
minetest.register_node(
|
||||
"lumien:crystal_on",
|
||||
{
|
||||
description = "Glowing Lumien Crystal",
|
||||
description = S("Glowing Lumien Crystal"),
|
||||
inventory_image = "lumien_crystal.png",
|
||||
tiles = {"lumien_block.png"},
|
||||
paramtype = "light",
|
||||
@ -81,7 +83,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"lumien:crystal_off",
|
||||
{
|
||||
description = "Lumien Crystal",
|
||||
description = S("Lumien Crystal"),
|
||||
inventory_image = "lumien_crystal.png",
|
||||
tiles = {"lumien_block.png"},
|
||||
paramtype = "light",
|
||||
@ -102,7 +104,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"lumien:block",
|
||||
{
|
||||
description = "Lumien Block",
|
||||
description = S("Lumien Block"),
|
||||
tiles = {"lumien_block.png"},
|
||||
groups = {cracky = 1},
|
||||
light_source = 14,
|
||||
@ -114,7 +116,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"lumien:stone_with_lumien",
|
||||
{
|
||||
description = "Stone with Lumien",
|
||||
description = S("Stone with Lumien"),
|
||||
tiles = {"default_stone.png^lumien_mineral_lumien.png"},
|
||||
groups = {cracky = 1, stone = 1},
|
||||
drop = "lumien:block",
|
||||
@ -195,8 +197,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"enlightened",
|
||||
{
|
||||
title = "Enlightened",
|
||||
description = "Place 9 lumien crystals.",
|
||||
title = S("Enlightened"),
|
||||
description = S("Place 9 lumien crystals."),
|
||||
times = 9,
|
||||
placenode = "lumien:lumien_crystal_off",
|
||||
})
|
||||
|
@ -2,35 +2,36 @@
|
||||
--
|
||||
-- Achievements
|
||||
--
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
achievements.register_achievement(
|
||||
"hunter",
|
||||
{
|
||||
title = "Hunter",
|
||||
description = "Kill 5 animals for food",
|
||||
title = S("Hunter"),
|
||||
description = S("Kill 5 animals for food"),
|
||||
times = 5,
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"bomb_has_been_defused",
|
||||
{
|
||||
title = "Bomb has Been Defused!",
|
||||
description = "Kill a Mineturtle",
|
||||
title = S("Bomb has Been Defused!"),
|
||||
description = S("Kill a mineturtle"),
|
||||
times = 1,
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"ranger",
|
||||
{
|
||||
title = "Ranger",
|
||||
description = "Capture a tame animal",
|
||||
title = S("Ranger"),
|
||||
description = S("Capture a tame animal"),
|
||||
times = 1,
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"best_friends_forever",
|
||||
{
|
||||
title = "Best Friends Forever",
|
||||
description = "Tame an animal",
|
||||
title = S("Best Friends Forever"),
|
||||
description = S("Tame an animal"),
|
||||
times = 1,
|
||||
})
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
-- Mobs Api (9th August 2015)
|
||||
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
mobs = {}
|
||||
mobs.mod = "redo"
|
||||
|
||||
@ -1344,7 +1346,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("display_mob_spawn") then
|
||||
minetest.chat_send_all("[mobs] Add "..name.." at "..minetest.pos_to_string(pos))
|
||||
minetest.chat_send_all("[mobs] "..S("Spawned @1 at @2", name, minetest.pos_to_string(pos)))
|
||||
end
|
||||
|
||||
-- spawn mob half block higher
|
||||
@ -1562,7 +1564,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
-- Is mob tamed?
|
||||
|
||||
if self.tamed == false and force_take == false then
|
||||
minetest.chat_send_player(name, "Not tamed!")
|
||||
minetest.chat_send_player(name, S("Not tamed!"))
|
||||
|
||||
return
|
||||
end
|
||||
@ -1570,7 +1572,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
-- Cannot pick up if not owner
|
||||
|
||||
if self.owner ~= name and force_take == false then
|
||||
minetest.chat_send_player(name, self.owner .. " is owner!")
|
||||
minetest.chat_send_player(name, S("@1 is owner!", self.owner))
|
||||
|
||||
return
|
||||
end
|
||||
@ -1607,7 +1609,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
|
||||
achievements.trigger_achievement(clicker, "ranger")
|
||||
else
|
||||
minetest.chat_send_player(name, "Missed!")
|
||||
minetest.chat_send_player(name, S("Missed!"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,13 +2,14 @@
|
||||
--
|
||||
-- Crafts and items
|
||||
--
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
-- Wool
|
||||
|
||||
minetest.register_node(
|
||||
"mobs:wool",
|
||||
{
|
||||
description = "Wool Bundle",
|
||||
description = S("Wool Bundle"),
|
||||
tiles ={"mobs_wool.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 2, oddly_breakable_by_hand = 3, fall_damage_add_percent = -25, fuzzy = 1},
|
||||
@ -20,7 +21,7 @@ minetest.register_node(
|
||||
minetest.register_craftitem(
|
||||
"mobs:meat_raw",
|
||||
{
|
||||
description = "Raw Meat",
|
||||
description = S("Raw Meat"),
|
||||
inventory_image = "mobs_meat_raw.png",
|
||||
on_use = minetest.item_eat({hp = 3, sat = 30}),
|
||||
})
|
||||
@ -30,7 +31,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"mobs:meat",
|
||||
{
|
||||
description = "Cooked Meat",
|
||||
description = S("Cooked Meat"),
|
||||
inventory_image = "mobs_meat_cooked.png",
|
||||
on_use = minetest.item_eat({hp = 7, sat = 70}),
|
||||
})
|
||||
@ -48,7 +49,7 @@ minetest.register_craft(
|
||||
minetest.register_tool(
|
||||
"mobs:net",
|
||||
{
|
||||
description = "Net\n(Right-click to capture)",
|
||||
description = S("Net").."\n"..S("(Right-click to capture)"),
|
||||
inventory_image = "mobs_net.png",
|
||||
})
|
||||
|
||||
@ -66,7 +67,7 @@ crafting.register_craft(
|
||||
minetest.register_tool(
|
||||
"mobs:lasso",
|
||||
{
|
||||
description = "Lasso\n(Right-click to capture)",
|
||||
description = S("Lasso").."\n"..S("(Right-click to capture)"),
|
||||
inventory_image = "mobs_lasso.png",
|
||||
})
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
-- Warthog(Boar) by KrupnoPavel
|
||||
-- Changed to Boar and tweaked by KaadmY
|
||||
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
mobs:register_mob(
|
||||
"mobs:boar",
|
||||
{
|
||||
@ -72,14 +74,14 @@ mobs:register_spawn(
|
||||
31000
|
||||
)
|
||||
|
||||
mobs:register_egg("mobs:boar", "Boar", "mobs_boar_inventory.png")
|
||||
mobs:register_egg("mobs:boar", S("Boar"), "mobs_boar_inventory.png")
|
||||
|
||||
-- Raw porkchop
|
||||
|
||||
minetest.register_craftitem(
|
||||
"mobs:pork_raw",
|
||||
{
|
||||
description = "Raw Porkchop",
|
||||
description = S("Raw Porkchop"),
|
||||
inventory_image = "mobs_pork_raw.png",
|
||||
on_use = minetest.item_eat({hp = 4, sat = 30}),
|
||||
})
|
||||
@ -89,7 +91,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"mobs:pork",
|
||||
{
|
||||
description = "Cooked Porkchop",
|
||||
description = S("Cooked Porkchop"),
|
||||
inventory_image = "mobs_pork_cooked.png",
|
||||
on_use = minetest.item_eat({hp = 8, sat = 50}),
|
||||
})
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
-- Mineturtle by KaadmY
|
||||
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
mobs:register_mob(
|
||||
"mobs:mineturtle",
|
||||
{
|
||||
@ -71,4 +73,4 @@ mobs:register_spawn(
|
||||
31000
|
||||
)
|
||||
|
||||
mobs:register_egg("mobs:mineturtle", "Mine Turtle", "mobs_mineturtle_inventory.png")
|
||||
mobs:register_egg("mobs:mineturtle", S("Mine Turtle"), "mobs_mineturtle_inventory.png")
|
||||
|
@ -1,12 +1,13 @@
|
||||
|
||||
-- Npc by TenPlus1
|
||||
-- Modded by KaadmY
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
local npc_types = {
|
||||
{ "farmer", "Farmer" },
|
||||
{ "tavernkeeper", "Tavern Keeper" },
|
||||
{ "blacksmith", "Blacksmith" },
|
||||
{ "butcher", "Butcher" },
|
||||
{ "farmer", S("Farmer") },
|
||||
{ "tavernkeeper", S("Tavern Keeper") },
|
||||
{ "blacksmith", S("Blacksmith") },
|
||||
{ "butcher", S("Butcher") },
|
||||
}
|
||||
|
||||
for _, npc_type_table in pairs(npc_types) do
|
||||
@ -80,7 +81,7 @@ for _, npc_type_table in pairs(npc_types) do
|
||||
local hp = self.object:get_hp()
|
||||
-- return if full health
|
||||
if hp >= self.hp_max then
|
||||
minetest.chat_send_player(name, "Villager is no longer hungry.")
|
||||
minetest.chat_send_player(name, S("Villager is no longer hungry."))
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
-- Sheep by PilzAdam; tweaked for Pixture by KaadmY
|
||||
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
mobs:register_mob(
|
||||
"mobs:sheep",
|
||||
{
|
||||
@ -143,4 +145,4 @@ mobs:register_spawn(
|
||||
31000
|
||||
)
|
||||
|
||||
mobs:register_egg("mobs:sheep", "Sheep", "mobs_sheep_inventory.png")
|
||||
mobs:register_egg("mobs:sheep", S("Sheep"), "mobs_sheep_inventory.png")
|
||||
|
@ -1,5 +1,6 @@
|
||||
-- Boar by KrupnoPavel
|
||||
-- Changed to Skunk and tweaked by KaadmY
|
||||
local S = minetest.get_translator("mobs")
|
||||
|
||||
mobs:register_mob(
|
||||
"mobs:skunk",
|
||||
@ -69,4 +70,4 @@ mobs:register_spawn(
|
||||
50
|
||||
)
|
||||
|
||||
mobs:register_egg("mobs:skunk", "Skunk", "mobs_skunk_inventory.png")
|
||||
mobs:register_egg("mobs:skunk", S("Skunk"), "mobs_skunk_inventory.png")
|
||||
|
@ -3,6 +3,7 @@
|
||||
-- Music player mod
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("music")
|
||||
|
||||
music = {}
|
||||
|
||||
@ -19,7 +20,7 @@ if minetest.settings:get_bool("music_enable") then
|
||||
local dp = minetest.hash_node_position(pos)
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", "Music Player (off)")
|
||||
meta:set_string("infotext", S("Music Player (off)"))
|
||||
meta:set_int("music_player_enabled", 0)
|
||||
|
||||
if music.players[dp] ~= nil then
|
||||
@ -32,7 +33,7 @@ if minetest.settings:get_bool("music_enable") then
|
||||
local dp = minetest.hash_node_position(pos)
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("infotext", "Music Player (on)")
|
||||
meta:set_string("infotext", S("Music Player (on)"))
|
||||
meta:set_int("music_player_enabled", 1)
|
||||
|
||||
if music.players[dp] == nil then
|
||||
@ -89,7 +90,7 @@ if minetest.settings:get_bool("music_enable") then
|
||||
minetest.register_node(
|
||||
"music:player",
|
||||
{
|
||||
description = "Music Player",
|
||||
description = S("Music Player"),
|
||||
|
||||
tiles = {"music_top.png", "music_bottom.png", "music_side.png"},
|
||||
|
||||
@ -148,7 +149,7 @@ else
|
||||
minetest.register_node(
|
||||
"music:player",
|
||||
{
|
||||
description = "Music Player",
|
||||
description = S("Music Player"),
|
||||
|
||||
tiles = {"music_top.png", "music_bottom.png", "music_side.png"},
|
||||
|
||||
@ -166,7 +167,7 @@ else
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
meta:set_string("infotext", "Music Player (disabled by server)")
|
||||
meta:set_string("infotext", S("Music Player (disabled by server)"))
|
||||
end,
|
||||
|
||||
groups = {oddly_breakable_by_hand = 3}
|
||||
@ -187,8 +188,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"musician",
|
||||
{
|
||||
title = "Musician",
|
||||
description = "Craft a music player.",
|
||||
title = S("Musician"),
|
||||
description = S("Craft a music player."),
|
||||
times = 1,
|
||||
craftitem = "music:player",
|
||||
})
|
||||
|
@ -2,6 +2,7 @@
|
||||
--
|
||||
-- Compass handling
|
||||
--
|
||||
local S = minetest.get_translator("nav")
|
||||
|
||||
local wield_image_0 = "nav_compass_inventory_0.png"
|
||||
local wield_image_1 = "nav_compass_inventory_1.png"
|
||||
@ -41,7 +42,7 @@ minetest.register_globalstep(on_globalstep)
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_0",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_0.png",
|
||||
wield_image = wield_image_0,
|
||||
@ -53,7 +54,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_1",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_1.png",
|
||||
wield_image = wield_image_1,
|
||||
@ -65,7 +66,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_2",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_0.png^[transformR270",
|
||||
wield_image = wield_image_0 .. "^[transformR270",
|
||||
@ -77,7 +78,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_3",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_1.png^[transformR270",
|
||||
wield_image = wield_image_1 .. "^[transformR270",
|
||||
@ -90,7 +91,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_4",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_0.png^[transformR180",
|
||||
wield_image = wield_image_0 .. "^[transformR180",
|
||||
@ -102,7 +103,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_5",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_1.png^[transformR180",
|
||||
wield_image = wield_image_1 .. "^[transformR180",
|
||||
@ -114,7 +115,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_6",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_0.png^[transformR90",
|
||||
wield_image = wield_image_0 .. "^[transformR90",
|
||||
@ -126,7 +127,7 @@ minetest.register_craftitem(
|
||||
minetest.register_craftitem(
|
||||
"nav:compass_7",
|
||||
{
|
||||
description = "Compass",
|
||||
description = S("Compass"),
|
||||
|
||||
inventory_image = "nav_compass_inventory_1.png^[transformR90",
|
||||
wield_image = wield_image_1 .. "^[transformR90",
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- Map handling
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("nav")
|
||||
|
||||
-- Based on Minetest Game's map mod, licensed under MIT License.
|
||||
|
||||
local map = {}
|
||||
@ -55,7 +57,7 @@ minetest.after(5.3, cyclic_update)
|
||||
minetest.register_craftitem(
|
||||
"nav:map",
|
||||
{
|
||||
description = "Map",
|
||||
description = S("Map"),
|
||||
inventory_image = "nav_inventory.png",
|
||||
wield_image = "nav_inventory.png",
|
||||
stack_max = 1,
|
||||
@ -81,8 +83,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"navigator",
|
||||
{
|
||||
title = "Navigator",
|
||||
description = "Craft a map",
|
||||
title = S("Navigator"),
|
||||
description = S("Craft a map"),
|
||||
times = 1,
|
||||
craftitem = "nav:map",
|
||||
})
|
||||
|
@ -5,6 +5,8 @@
|
||||
-- Tweaked by Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("parachute")
|
||||
|
||||
function air_physics(v)
|
||||
local m = 80 -- Weight of player, kg
|
||||
local g = -9.81 -- Earth Acceleration, m/s^2
|
||||
@ -17,7 +19,7 @@ end
|
||||
|
||||
minetest.register_craftitem(
|
||||
"parachute:parachute", {
|
||||
description = "Parachute",
|
||||
description = S("Parachute"),
|
||||
inventory_image = "parachute_inventory.png",
|
||||
wield_image = "parachute_inventory.png",
|
||||
stack_max = 1,
|
||||
@ -160,8 +162,8 @@ crafting.register_craft(
|
||||
achievements.register_achievement(
|
||||
"sky_diver",
|
||||
{
|
||||
title = "Sky Diver",
|
||||
description = "Craft 5 parachutes.",
|
||||
title = S("Sky Diver"),
|
||||
description = S("Craft 5 parachutes."),
|
||||
times = 5,
|
||||
craftitem = "parachute:parachute",
|
||||
})
|
||||
|
@ -3,10 +3,11 @@
|
||||
-- Partial blocks mod
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("partialblocks")
|
||||
|
||||
partialblocks = {}
|
||||
|
||||
function partialblocks.register_material(name, desc, node, is_fuel)
|
||||
function partialblocks.register_material(name, desc_slab, desc_stair, node, is_fuel)
|
||||
local nodedef = minetest.registered_nodes[node]
|
||||
|
||||
if nodedef == nil then
|
||||
@ -24,7 +25,7 @@ function partialblocks.register_material(name, desc, node, is_fuel)
|
||||
groups = nodedef.groups,
|
||||
sounds = nodedef.sounds,
|
||||
|
||||
description = desc .. " Slab",
|
||||
description = desc_slab,
|
||||
drawtype = "nodebox",
|
||||
|
||||
node_box = {
|
||||
@ -72,7 +73,7 @@ function partialblocks.register_material(name, desc, node, is_fuel)
|
||||
groups = nodedef.groups,
|
||||
sounds = nodedef.sounds,
|
||||
|
||||
description = desc .. " Stair",
|
||||
description = desc_stair,
|
||||
drawtype = "nodebox",
|
||||
|
||||
node_box = {
|
||||
@ -108,45 +109,45 @@ end
|
||||
-- Stonelike materials
|
||||
|
||||
partialblocks.register_material(
|
||||
"cobble", "Cobble", "default:cobble", false)
|
||||
"cobble", S("Cobble Slab"), S("Cobble Stair"), "default:cobble", false)
|
||||
|
||||
partialblocks.register_material(
|
||||
"stone", "Stone", "default:stone", false)
|
||||
"stone", S("Stone Slab"), S("Stone Stair"), "default:stone", false)
|
||||
|
||||
partialblocks.register_material(
|
||||
"brick", "Brick", "default:brick", false)
|
||||
"brick", S("Brick Slab"), S("Brick Stair"), "default:brick", false)
|
||||
|
||||
-- Woodlike
|
||||
|
||||
partialblocks.register_material(
|
||||
"wood", "Wood", "default:planks", true)
|
||||
"wood", S("Wooden Slab"), S("Wooden Stair"), "default:planks", true)
|
||||
|
||||
partialblocks.register_material(
|
||||
"oak", "Oak", "default:planks_oak", true)
|
||||
"oak", S("Oak Slab"), S("Oak Stair"), "default:planks_oak", true)
|
||||
|
||||
partialblocks.register_material(
|
||||
"birch", "Birch", "default:planks_birch", true)
|
||||
"birch", S("Birch Slab"), S("Birch Stair"), "default:planks_birch", true)
|
||||
|
||||
-- Frames
|
||||
|
||||
partialblocks.register_material(
|
||||
"frame", "Frame", "default:frame", true)
|
||||
"frame", S("Frame Slab"), S("Frame Stair"), "default:frame", true)
|
||||
|
||||
partialblocks.register_material(
|
||||
"reinforced_frame", "Reinforced Frame", "default:reinforced_frame", true)
|
||||
"reinforced_frame", S("Reinforced Frame Slab"), S("Reinforced Frame Stair"), "default:reinforced_frame", true)
|
||||
|
||||
partialblocks.register_material(
|
||||
"reinforced_cobble", "Reinforced Cobble", "default:reinforced_cobble", false)
|
||||
"reinforced_cobble", S("Reinforced Cobble Slab"), S("Reinforced Cobble Stair"), "default:reinforced_cobble", false)
|
||||
|
||||
-- Misc. blocks
|
||||
|
||||
partialblocks.register_material(
|
||||
"coal", "Coal", "default:block_coal", false)
|
||||
"coal", S("Coal Slab"), S("Coal Stair"), "default:block_coal", false)
|
||||
|
||||
partialblocks.register_material(
|
||||
"steel", "Steel", "default:block_steel", false)
|
||||
"steel", S("Steel Slab"), S("Steel Stair"), "default:block_steel", false)
|
||||
|
||||
partialblocks.register_material(
|
||||
"compressed_sandstone", "Compressed Sandstone", "default:compressed_sandstone", false)
|
||||
"compressed_sandstone", S("Compressed Sandstone Slab"), S("Compressed Sandstone Stair"), "default:compressed_sandstone", false)
|
||||
|
||||
default.log("mod:partialblocks", "loaded")
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("player_effects")
|
||||
|
||||
player_effects = {}
|
||||
|
||||
player_effects.effects = {}
|
||||
@ -35,7 +37,7 @@ end
|
||||
function player_effects.register_effect(name, def)
|
||||
local rd = {
|
||||
title = def.title or name, -- good-looking name of the effect
|
||||
description = def.description or "The " .. name .. " effect", -- description of what the effect does
|
||||
description = def.description or S("The @1 effect", name), -- description of what the effect does
|
||||
duration = def.duration or 1, -- how long the effect lasts, <0 is infinite and has to be disabled manually
|
||||
physics = def.physics or {} -- physics overrides for the player
|
||||
}
|
||||
@ -205,16 +207,16 @@ minetest.register_on_dieplayer(on_dieplayer)
|
||||
minetest.register_chatcommand(
|
||||
"player_effects",
|
||||
{
|
||||
description = "Show your current player effects",
|
||||
description = S("Show your current player effects"),
|
||||
func = function(name, param)
|
||||
local s = "Current player effects:\n"
|
||||
local s = S("Current player effects:").."\n"
|
||||
local ea = 0
|
||||
|
||||
for ename, endtime in pairs(player_effects.effects[name]) do
|
||||
if endtime < 0 then
|
||||
s = s .. " " .. player_effects.registered_effects[ename].title .. ": unlimited\n"
|
||||
s = s .. " " .. S("@1: unlimited", player_effects.registered_effects[ename].title) .. "\n"
|
||||
else
|
||||
s = s .. " " .. player_effects.registered_effects[ename].title .. ": " .. (endtime - minetest.get_gametime()) .. " seconds remaining\n"
|
||||
s = s .. " " .. S("@1: @2 s remaining", player_effects.registered_effects[ename].title, (endtime - minetest.get_gametime())) .. "\n"
|
||||
end
|
||||
|
||||
ea = ea + 1
|
||||
@ -223,7 +225,7 @@ minetest.register_chatcommand(
|
||||
if ea > 0 then
|
||||
return true, s
|
||||
else
|
||||
return true, "You currently have no effects."
|
||||
return true, S("You currently have no effects.")
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- Player listing mod
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("player_list")
|
||||
|
||||
player_list = {}
|
||||
|
||||
@ -53,19 +54,19 @@ minetest.register_on_leaveplayer(on_leaveplayer)
|
||||
minetest.register_chatcommand(
|
||||
"plist",
|
||||
{
|
||||
params = "[all|recent]",
|
||||
description = "List current, recent, or all players since the last server restart",
|
||||
params = S("[all|recent]"),
|
||||
description = S("List current, recent, or all players since the last server restart"),
|
||||
func = function(player_name, param)
|
||||
local time = minetest.get_gametime()
|
||||
|
||||
local str = ""
|
||||
|
||||
if param == "all" then
|
||||
minetest.chat_send_player(player_name, "Players:")
|
||||
minetest.chat_send_player(player_name, S("Players:"))
|
||||
elseif param == "recent" then
|
||||
str = str .. "Recent players: "
|
||||
str = str .. S("Recent players: ")
|
||||
else
|
||||
str = str .. "Connected players: "
|
||||
str = str .. S("Connected players: ")
|
||||
end
|
||||
|
||||
local player_count = 0
|
||||
@ -75,9 +76,9 @@ minetest.register_chatcommand(
|
||||
if param == "all" then
|
||||
if plyr ~= nil then
|
||||
player_count = player_count + 1
|
||||
minetest.chat_send_player(player_name, " " .. name .. ": connected for " .. prettytime(time - jointime))
|
||||
minetest.chat_send_player(S("@1: connected for @2", player_name, name, prettytime(time - jointime)))
|
||||
else
|
||||
minetest.chat_send_player(player_name, " " .. name .. ": last seen " .. prettytime(time - jointime) .. " ago")
|
||||
minetest.chat_send_player(S("@1, @2: last seen @3 ago", player_name, name, prettytime(time - jointime)))
|
||||
end
|
||||
elseif param == "recent" then
|
||||
if plyr == nil then -- Only show players that were connected but are currently disconnected
|
||||
@ -86,6 +87,7 @@ minetest.register_chatcommand(
|
||||
if player_count == 1 then
|
||||
str = str .. name
|
||||
else
|
||||
-- TODO: Translate comma
|
||||
str = str .. ", " .. name
|
||||
end
|
||||
end
|
||||
@ -95,6 +97,7 @@ minetest.register_chatcommand(
|
||||
if player_count == 1 then
|
||||
str = str .. name
|
||||
else
|
||||
-- TODO: Translate comma
|
||||
str = str .. ", " .. name
|
||||
end
|
||||
end
|
||||
@ -103,9 +106,9 @@ minetest.register_chatcommand(
|
||||
minetest.chat_send_player(player_name, str)
|
||||
|
||||
if param == "recent" then
|
||||
minetest.chat_send_player(player_name, player_count .. " recent players")
|
||||
minetest.chat_send_player(player_name, S("Count: @1", player_count))
|
||||
else
|
||||
minetest.chat_send_player(player_name, player_count .. " connected players")
|
||||
minetest.chat_send_player(player_name, S("Count: @1", player_count))
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("player_skins")
|
||||
|
||||
player_skins = {}
|
||||
|
||||
-- Array of usable player skins
|
||||
@ -78,7 +80,7 @@ function player_skins.set_skin(name, tex)
|
||||
player_skins.skins[name] = tex
|
||||
save_player_skins()
|
||||
else
|
||||
minetest.chat_send_player(name, "Invalid skin!")
|
||||
minetest.chat_send_player(name, S("Invalid skin!"))
|
||||
end
|
||||
end
|
||||
|
||||
@ -192,16 +194,16 @@ minetest.register_chatcommand(
|
||||
"player_skin",
|
||||
{
|
||||
params = get_chatparams(),
|
||||
description = "Set your player skin",
|
||||
description = S("Set your player skin"),
|
||||
privs = {},
|
||||
func = function(name, param)
|
||||
if is_valid_skin(param) then
|
||||
player_skins.set_skin(name, param)
|
||||
return true, string.format("Skin set to “%s”.", param)
|
||||
return true, S("Skin set to “@1”.", param)
|
||||
elseif param == "" then
|
||||
return true, "Current player skin: " .. player_skins.skins[name]
|
||||
return true, S("Current player skin: @1", player_skins.skins[name])
|
||||
else
|
||||
return false, "Unknown player skin. Enter “/help player_skin” for help."
|
||||
return false, S("Unknown player skin. Enter “/help player_skin” for help.")
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- Private messages mod
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("pm")
|
||||
|
||||
local enable_saving = minetest.settings:get_bool("pm_enable_saving")
|
||||
if enable_saving == nil then enable_saving = true end
|
||||
@ -14,44 +15,41 @@ local messages = {}
|
||||
minetest.register_chatcommand(
|
||||
"pm",
|
||||
{
|
||||
params = "<player> <message>",
|
||||
description = "Send somebody a private message",
|
||||
params = S("<player> <message>"),
|
||||
description = S("Send somebody a private message"),
|
||||
privs = {shout=true},
|
||||
func = function(name, param)
|
||||
local sendto, message = param:match("^(%S+)%s(.+)$")
|
||||
|
||||
if not sendto then return false, "Invalid usage, see /help pm." end
|
||||
if not sendto then return false, S("Invalid usage, see /help pm.") end
|
||||
|
||||
if not minetest.get_player_by_name(sendto) then
|
||||
if enable_saving then
|
||||
if messages[sendto] == nil then messages[sendto] = {} end
|
||||
table.insert(messages[sendto], name .. ": " .. message)
|
||||
|
||||
return false, "The player " .. sendto
|
||||
.. " is not online, saving message instead."
|
||||
return false, S("The player @1 is not online, saving message instead.", sendto)
|
||||
else
|
||||
return false, "The player " .. sendto
|
||||
.. " is not online, and PM saving is disabled."
|
||||
return false, S("The player @1 is not online, and PM saving is disabled.", sendto)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.log("action", "PM from " .. name .. " to " .. sendto
|
||||
.. ": " .. message)
|
||||
minetest.chat_send_player(sendto, "PM from " .. name .. ": "
|
||||
.. message)
|
||||
return true, "PM sent."
|
||||
minetest.chat_send_player(sendto, S("PM from @1: @2", name, message))
|
||||
return true, S("PM sent.")
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_chatcommand(
|
||||
"pms",
|
||||
{
|
||||
description = "Show saved private messages",
|
||||
description = S("Show saved private messages"),
|
||||
func = function(name, param)
|
||||
if not enable_saving then return false, "PM saving is disabled." end
|
||||
if messages[name] == nil then return false, "No saved PMs." end
|
||||
if not enable_saving then return false, S("PM saving is disabled.") end
|
||||
if messages[name] == nil then return false, S("No saved PMs.") end
|
||||
|
||||
minetest.chat_send_player(name, "Saved PMs:")
|
||||
minetest.chat_send_player(name, S("Saved PMs:"))
|
||||
|
||||
local str = ""
|
||||
local amt_pms = 0
|
||||
@ -64,7 +62,7 @@ minetest.register_chatcommand(
|
||||
|
||||
messages[name] = nil
|
||||
|
||||
return true, amt_pms .. " saved PMs"
|
||||
return true, S("@1 saved PMs", amt_pms)
|
||||
end
|
||||
})
|
||||
|
||||
@ -74,10 +72,10 @@ if enable_saving then
|
||||
local name = player:get_player_name()
|
||||
|
||||
if messages[name] ~= nil and #messages[name] >= 1 then
|
||||
minetest.chat_send_player(name, minetest.colorize("#0ff", "You have " .. #messages[name] .. " saved PMs. Type /pms to view."))
|
||||
minetest.chat_send_player(name, minetest.colorize("#0ff", S("Number of saved PMs: @1. Enter /pms command to view.", #messages[name])))
|
||||
return false
|
||||
else
|
||||
minetest.chat_send_player(name, minetest.colorize("#0ff", "You have no saved PMs. Send PMs with the /pm command."))
|
||||
minetest.chat_send_player(name, minetest.colorize("#0ff", S("You have no saved PMs. Send PMs with the /pm command.")))
|
||||
return true
|
||||
end
|
||||
end)
|
||||
|
@ -4,6 +4,7 @@
|
||||
-- By PilzAdam and ShadowNinja
|
||||
-- Tweaked by Kaadmy, for Pixture
|
||||
--
|
||||
local S = minetest.get_translator("tnt")
|
||||
|
||||
tnt = {}
|
||||
|
||||
@ -237,7 +238,7 @@ minetest.after(0, on_load)
|
||||
minetest.register_node(
|
||||
"tnt:tnt",
|
||||
{
|
||||
description = "TNT",
|
||||
description = S("TNT"),
|
||||
tiles = {"tnt_top.png", "tnt_bottom.png", "tnt_sides.png"},
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate = 2},
|
||||
@ -303,8 +304,8 @@ minetest.register_craft(
|
||||
achievements.register_achievement(
|
||||
"boom",
|
||||
{
|
||||
title = "Boom!",
|
||||
description = "Craft TNT",
|
||||
title = S("Boom!"),
|
||||
description = S("Craft TNT"),
|
||||
times = 1,
|
||||
craftitem = "tnt:tnt",
|
||||
})
|
||||
|
@ -2,6 +2,7 @@
|
||||
--
|
||||
-- Mapgen
|
||||
--
|
||||
local S = minetest.get_translator("village")
|
||||
|
||||
local spawn_pos = minetest.setting_get_pos("static_spawnpoint") or {x = 0, y = 0, z = 0}
|
||||
local spawn_radius = minetest.settings:get("static_spawn_radius") or 256
|
||||
@ -12,7 +13,7 @@ local mapseed = minetest.get_mapgen_setting("seed")
|
||||
minetest.register_node(
|
||||
"village:entity_spawner",
|
||||
{
|
||||
description = "Village Entity Spawner",
|
||||
description = S("Village Entity Spawner"),
|
||||
tiles = {"default_brick.png^default_book.png"},
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate = 2},
|
||||
@ -22,7 +23,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"village:grassland_village",
|
||||
{
|
||||
description = "Village Spawner",
|
||||
description = S("Village Spawner"),
|
||||
tiles = {"default_grass.png^default_book.png"},
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate = 2},
|
||||
@ -41,7 +42,7 @@ minetest.register_node(
|
||||
minetest.register_node(
|
||||
"village:grassland_village_mg",
|
||||
{
|
||||
description = "Mapgen Village Spawner\n(Has chance of not spawning village)",
|
||||
description = S("Mapgen Village Spawner").."\n"..S("(Has chance of not spawning village)"),
|
||||
inventory_image = "default_wood.png^default_book.png",
|
||||
wield_image = "default_wood.png^default_book.png",
|
||||
drawtype = "airlike",
|
||||
|
@ -3,6 +3,8 @@
|
||||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local S = minetest.get_translator("weather")
|
||||
|
||||
weather = {}
|
||||
weather.weather = "clear"
|
||||
weather.types = {"storm", "snowstorm", "clear"}
|
||||
@ -204,22 +206,22 @@ minetest.register_globalstep(
|
||||
minetest.register_privilege(
|
||||
"weather",
|
||||
{
|
||||
description = "Can change the weather using the /weather command",
|
||||
description = S("Can change the weather using the /weather command"),
|
||||
give_to_singleplayer = false
|
||||
})
|
||||
|
||||
minetest.register_chatcommand(
|
||||
"weather",
|
||||
{
|
||||
params = "storm | snowstorm | clear",
|
||||
description = "Change the weather",
|
||||
params = S("storm | snowstorm | clear"),
|
||||
description = S("Change the weather"),
|
||||
privs = {weather = true},
|
||||
func = function(name, param)
|
||||
local weather_set = setweather_type(param)
|
||||
if not weather_set then
|
||||
return false, "Incorrect weather. Valid weathers are “storm”, “snowstorm” and “clear”."
|
||||
return false, S("Incorrect weather. Valid weathers are “storm”, “snowstorm” and “clear”.")
|
||||
else
|
||||
return true, "Weather changed."
|
||||
return true, S("Weather changed.")
|
||||
end
|
||||
end
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user