New translation system, part 9: Items, part 5

This commit is contained in:
Wuzzy 2019-03-08 00:46:35 +01:00
parent 47c817d75a
commit f9b557c2ba
13 changed files with 199 additions and 174 deletions

View file

@ -1,3 +1,5 @@
local S = minetest.get_translator("mcl_tnt")
local mod_death_messages = minetest.get_modpath("mcl_death_messages")
local function spawn_tnt(pos, entname)
@ -58,11 +60,11 @@ minetest.register_node("mcl_tnt:tnt", {
"default_tnt_side.png", "default_tnt_side.png"},
is_ground_content = false,
stack_max = 64,
description = "TNT",
description = S("TNT"),
paramtype = "light",
sunlight_propagates = true,
_doc_items_longdesc = string.format("An explosive device. When it explodes, it will hurt living beings, destroy blocks around it, throw blocks affected by gravity all over the place and light fires. A single TNT has an explosion radius of %d. With a small chance, blocks may drop as an item (as if being mined) rather than being destroyed. TNT can be ignited by tools, explosions, fire, lava and redstone signals.", TNT_RANGE),
_doc_items_usagehelp = "Place the TNT on the ground and ignite it with one of the methods above. Quickly get in safe distance quickly. The TNT will start to be affected by gravity and explodes in 4 seconds.",
_doc_items_longdesc = S("An explosive device. When it explodes, it will hurt living beings, destroy blocks around it, throw blocks affected by gravity all over the place and light fires. A single TNT has an explosion radius of @1. With a small chance, blocks may drop as an item (as if being mined) rather than being destroyed. TNT can be ignited by tools, explosions, fire, lava and redstone signals.", TNT_RANGE),
_doc_items_usagehelp = S("Place the TNT on the ground and ignite it with one of the methods above. Quickly get in safe distance quickly. The TNT will start to be affected by gravity and explodes in 4 seconds."),
groups = { dig_immediate = 3, tnt = 1, enderman_takable=1 },
mesecons = {effector = {
action_on = tnt.ignite,