mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
This commit is contained in:
parent
d99a176b69
commit
bb9279ccb8
43 changed files with 632 additions and 433 deletions
|
@ -1,5 +1,11 @@
|
|||
-- tnt/init.lua
|
||||
|
||||
tnt = {}
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("tnt")
|
||||
|
||||
|
||||
-- Default to enabled when in singleplayer
|
||||
local enable_tnt = minetest.settings:get_bool("enable_tnt")
|
||||
if enable_tnt == nil then
|
||||
|
@ -422,7 +428,7 @@ minetest.register_node("tnt:boom", {
|
|||
})
|
||||
|
||||
minetest.register_node("tnt:gunpowder", {
|
||||
description = "Gun Powder",
|
||||
description = S("Gun Powder"),
|
||||
drawtype = "raillike",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
|
@ -547,7 +553,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
minetest.register_craftitem("tnt:tnt_stick", {
|
||||
description = "TNT Stick",
|
||||
description = S("TNT Stick"),
|
||||
inventory_image = "tnt_tnt_stick.png",
|
||||
groups = {flammable = 5},
|
||||
})
|
||||
|
@ -675,6 +681,6 @@ end
|
|||
|
||||
tnt.register_tnt({
|
||||
name = "tnt:tnt",
|
||||
description = "TNT",
|
||||
description = S("TNT"),
|
||||
radius = tnt_radius,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue