forked from Mirrorlandia_minetest/tnt
Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
This commit is contained in:
parent
8b3307cc70
commit
e151d018b9
12
init.lua
12
init.lua
@ -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…
Reference in New Issue
Block a user