New translation system, part 8: Items, part 4
This commit is contained in:
parent
a29626881f
commit
47c817d75a
22 changed files with 248 additions and 262 deletions
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_mushrooms")
|
||||
|
||||
local template = {
|
||||
groups = {handy=1,axey=1, building_block = 1, material_wood = 1 },
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
|
@ -42,7 +44,7 @@ local register_mushroom = function(color, species_id, template, d_cap, d_stem, d
|
|||
-- Stem texture on all sides
|
||||
local stem_full = table.copy(template)
|
||||
stem_full.description = d_stem_all
|
||||
stem_full._doc_items_longdesc = "This decorative block is like a huge mushroom stem, but with the stem texture on all sides."
|
||||
stem_full._doc_items_longdesc = S("This decorative block is like a huge mushroom stem, but with the stem texture on all sides.")
|
||||
stem_full.tiles = { "mcl_mushrooms_mushroom_block_skin_stem.png" }
|
||||
stem_full.groups.huge_mushroom = species_id
|
||||
stem_full.groups.huge_mushroom_stem = 2
|
||||
|
@ -155,14 +157,14 @@ local register_mushroom = function(color, species_id, template, d_cap, d_stem, d
|
|||
end
|
||||
|
||||
|
||||
local longdesc_red = "Huge red mushroom blocks are the cap parts of huge red mushrooms. It consists of a red skin and can have pores on each of its sides."
|
||||
local longdesc_red_stem = "The stem part of a huge red mushroom."
|
||||
register_mushroom("red", 1, red, "Huge Red Mushroom Block", "Huge Red Mushroom Stem", "Huge Red Mushroom All-Faces Stem", longdesc_red, longdesc_red_stem)
|
||||
local longdesc_red = S("Huge red mushroom blocks are the cap parts of huge red mushrooms. It consists of a red skin and can have pores on each of its sides.")
|
||||
local longdesc_red_stem = S("The stem part of a huge red mushroom.")
|
||||
register_mushroom("red", 1, red, S("Huge Red Mushroom Block"), S("Huge Red Mushroom Stem"), S("Huge Red Mushroom All-Faces Stem"), longdesc_red, longdesc_red_stem)
|
||||
|
||||
|
||||
local longdesc_brown = "Huge brown mushroom blocks are the cap parts of huge brown mushrooms. It consists of a brown skin and can have pores on each of its sides."
|
||||
local longdesc_brown_stem = "The stem part of a huge brown mushroom."
|
||||
register_mushroom("brown", 2, brown, "Huge Brown Mushroom Block", "Huge Brown Mushroom Stem", "Huge Brown Mushroom All-Faces Stem", longdesc_brown, longdesc_brown_stem)
|
||||
local longdesc_brown = S("Huge brown mushroom blocks are the cap parts of huge brown mushrooms. It consists of a brown skin and can have pores on each of its sides.")
|
||||
local longdesc_brown_stem = S("The stem part of a huge brown mushroom.")
|
||||
register_mushroom("brown", 2, brown, S("Huge Brown Mushroom Block"), S("Huge Brown Mushroom Stem"), S("Huge Brown Mushroom All-Faces Stem"), longdesc_brown, longdesc_brown_stem)
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_mushrooms")
|
||||
|
||||
local on_place = mcl_util.generate_on_place_plant_function(function(place_pos, place_node)
|
||||
local soil_node = minetest.get_node_or_nil({x=place_pos.x, y=place_pos.y-1, z=place_pos.z})
|
||||
if not soil_node then return false end
|
||||
|
@ -15,16 +17,16 @@ local on_place = mcl_util.generate_on_place_plant_function(function(place_pos, p
|
|||
return ((snn == "mcl_core:podzol" or snn == "mcl_core:podzol_snow" or snn == "mcl_core:mycelium" or snn == "mcl_core:mycelium_snow") or (light_ok and minetest.get_item_group(snn, "solid") == 1 and minetest.get_item_group(snn, "opaque") == 1))
|
||||
end)
|
||||
|
||||
local longdesc_intro_brown = [[Brown mushrooms are fungi which grow and spread in darkness, but are sensitive to light. They are inedible as such, but they can be used to craft food items.]]
|
||||
local longdesc_intro_red = [[Red mushrooms are fungi which grow and spread in darkness, but are sensitive to light. They are inedible as such, but they can be used to craft food items.]]
|
||||
local longdesc_intro_brown = S("Brown mushrooms are fungi which grow and spread in darkness, but are sensitive to light. They are inedible as such, but they can be used to craft food items.")
|
||||
local longdesc_intro_red = S("Red mushrooms are fungi which grow and spread in darkness, but are sensitive to light. They are inedible as such, but they can be used to craft food items.")
|
||||
|
||||
local longdesc_append = [[A single mushroom of this species will slowly spread over time towards a random solid opaque block with a light level of 12 or lower in a 3×3×3 cube around the mushroom. It stops spreading when there are 5 or more mushrooms of the same species within an area of 9×3×9 blocks around the mushroom.
|
||||
Mushrooms will eventually uproot at a light level of 12 or higher. On mycelium or podzol, they survive and spread at any light level.]]
|
||||
local longdesc_append = S("A single mushroom of this species will slowly spread over time towards a random solid opaque block with a light level of 12 or lower in a 3×3×3 cube around the mushroom. It stops spreading when there are 5 or more mushrooms of the same species within an area of 9×3×9 blocks around the mushroom.").."\n"..
|
||||
S("Mushrooms will eventually uproot at a light level of 12 or higher. On mycelium or podzol, they survive and spread at any light level.")
|
||||
|
||||
local usagehelp = "This mushroom can be placed on mycelium and podzol at any light level. They can also be placed on blocks which are both solid and opaque, as long as the light level at daytime is not higher than 12."
|
||||
local usagehelp = S("This mushroom can be placed on mycelium and podzol at any light level. They can also be placed on blocks which are both solid and opaque, as long as the light level at daytime is not higher than 12.")
|
||||
|
||||
minetest.register_node("mcl_mushrooms:mushroom_brown", {
|
||||
description = "Brown Mushroom",
|
||||
description = S("Brown Mushroom"),
|
||||
_doc_items_longdesc = longdesc_intro_brown .. "\n\n" .. longdesc_append,
|
||||
_doc_items_usagehelp = usagehelp,
|
||||
drawtype = "plantlike",
|
||||
|
@ -47,7 +49,7 @@ minetest.register_node("mcl_mushrooms:mushroom_brown", {
|
|||
})
|
||||
|
||||
minetest.register_node("mcl_mushrooms:mushroom_red", {
|
||||
description = "Red Mushroom",
|
||||
description = S("Red Mushroom"),
|
||||
_doc_items_longdesc = longdesc_intro_red .. "\n\n" .. longdesc_append,
|
||||
_doc_items_usagehelp = usagehelp,
|
||||
drawtype = "plantlike",
|
||||
|
@ -69,8 +71,8 @@ minetest.register_node("mcl_mushrooms:mushroom_red", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("mcl_mushrooms:mushroom_stew", {
|
||||
description = "Mushroom Stew",
|
||||
_doc_items_longdesc = "Mushroom stew is a healthy soup which can be consumed to restore some hunger points.",
|
||||
description = S("Mushroom Stew"),
|
||||
_doc_items_longdesc = S("Mushroom stew is a healthy soup which can be consumed to restore some hunger points."),
|
||||
inventory_image = "farming_mushroom_stew.png",
|
||||
on_place = minetest.item_eat(6, "mcl_core:bowl"),
|
||||
on_secondary_use = minetest.item_eat(6, "mcl_core:bowl"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue