mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-30 18:46:28 -04:00
default
This commit is contained in:
parent
bb9279ccb8
commit
3df9173abf
3 changed files with 18 additions and 13 deletions
|
@ -165,7 +165,7 @@ minetest.register_craftitem("default:book", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("default:book_written", {
|
||||
description = S("Book With Text"),
|
||||
description = S("Book with Text"),
|
||||
inventory_image = "default_book_written.png",
|
||||
groups = {book = 1, not_in_creative_inventory = 1, flammable = 3},
|
||||
stack_max = 1,
|
||||
|
|
|
@ -226,20 +226,20 @@ local function furnace_node_timer(pos, elapsed)
|
|||
end
|
||||
|
||||
local fuel_state = S("Empty")
|
||||
local active = "inactive"
|
||||
local active = false
|
||||
local result = false
|
||||
|
||||
if 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.get_furnace_active_formspec(fuel_percent, item_percent)
|
||||
swap_node(pos, "default:furnace_active")
|
||||
-- make sure timer restarts automatically
|
||||
result = true
|
||||
else
|
||||
if not fuellist[1]:is_empty() then
|
||||
fuel_state = "0%"
|
||||
fuel_state = S("@1%", 0)
|
||||
end
|
||||
formspec = default.get_furnace_inactive_formspec()
|
||||
swap_node(pos, "default:furnace")
|
||||
|
@ -247,9 +247,14 @@ local function furnace_node_timer(pos, elapsed)
|
|||
minetest.get_node_timer(pos):stop()
|
||||
end
|
||||
|
||||
-- local infotext = "Furnace " .. active .. "\n(Item: " .. item_state ..
|
||||
-- "; Fuel: " .. fuel_state .. ")"
|
||||
local infotext = S("Furnace @1 \n(Item: @2; Fuel: @3)", active, item_state, fuel_state)
|
||||
|
||||
local infotext
|
||||
if active then
|
||||
infotext = S("Furnace active")
|
||||
else
|
||||
infotext = S("Furnace inactive")
|
||||
end
|
||||
infotext = infotext .. "\n" .. S("(Item: @1; Fuel: @2)", item_state, fuel_state)
|
||||
|
||||
--
|
||||
-- Set meta values
|
||||
|
|
|
@ -513,14 +513,14 @@ minetest.register_node("default:dirt_with_coniferous_litter", {
|
|||
})
|
||||
|
||||
minetest.register_node("default:dry_dirt", {
|
||||
description = "Dry Dirt",
|
||||
description = S("Dry Dirt"),
|
||||
tiles = {"default_dry_dirt.png"},
|
||||
groups = {crumbly = 3, soil = 1},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("default:dry_dirt_with_dry_grass", {
|
||||
description = "Dry Dirt with Dry Grass",
|
||||
description = S("Dry Dirt with Dry Grass"),
|
||||
tiles = {"default_dry_grass.png", "default_dry_dirt.png",
|
||||
{name = "default_dry_dirt.png^default_dry_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
|
@ -2556,7 +2556,7 @@ minetest.register_node("default:bookshelf", {
|
|||
|
||||
local function register_sign(material, desc, def)
|
||||
minetest.register_node("default:sign_wall_" .. material, {
|
||||
description = S("@1 Sign", desc),
|
||||
description = desc,
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_sign_wall_" .. material .. ".png"},
|
||||
inventory_image = "default_sign_" .. material .. ".png",
|
||||
|
@ -2605,12 +2605,12 @@ local function register_sign(material, desc, def)
|
|||
})
|
||||
end
|
||||
|
||||
register_sign("wood", S("Wooden"), {
|
||||
register_sign("wood", S("Wooden Sign"), {
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3}
|
||||
})
|
||||
|
||||
register_sign("steel", S("Steel"), {
|
||||
register_sign("steel", S("Steel Sign"), {
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
groups = {cracky = 2, attached_node = 1}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue