Some 0.4.14-dev compability

master
Wuzzy 2016-10-27 19:12:44 +02:00
parent af2e8ff17a
commit cec5f77e7b
1 changed files with 12 additions and 2 deletions

View File

@ -51,6 +51,8 @@ local dyedesc = "Dyes are primarily used for crafting other items, especially fo
local wooldesc = "Wool is a soft decorative block which comes in different colors. Walking on wool is completely silent."
local lavaheight
--TODO: Change this to the following when 0.4.15 (or higher) is released:
--if minetest.get_mapgen_setting("mg_name") == "v6" then
if minetest.get_mapgen_params().mgname == "v6" then
lavaheight = -32
else
@ -70,6 +72,9 @@ end
local tntdesc = 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 set flammable blocks on fire. It 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 explosions and fire. Initially, TNT is not affected by gravity, but as soon it has been ignited, it is.", tnt_radius)
local nyandesc = "A weird creature with a cat face, cat extremities and a strawberry-flavored pop-tart body. It has been trapped in a block and cannot move and can thus be dug easily by simple tools. Nyan cats are usually followed by nyan cat rainbows. Legends say that in ancient times, long before the creation of our world, there were many of the Nyan Cats which were free and flew through space and sang the \"Nya-nya\" song. Nowadays, nyan cats serve as a fancy collector's item and are traded as souveniers. Apart from that, nyan cats have no intrinsic value."
local rainbowdesc = "A rainbow made by a real nyan cat, ancient creatures which once flew through space. It has gone inert and can be dug by simple tools. Like nyan cats, nyan cat rainbows have no intrinsic value."
local export_longdesc = {
[""] = "You use your bare hand whenever you are not wielding any item. With your hand you can mine the weakest blocks and deal minor damage by punching. Using the hand is often a last resort, as proper mining tools and weapons are usually better than the hand. When you are wielding an item which is not a mining tool or a weapon it will behave as if it were the hand when you start mining or punching. In Creative Mode, the mining capabilities, range and damage of the hand are greatly enhanced.",
["default:apple"] = "Eat it to restore 2 hit points.",
@ -165,8 +170,13 @@ local export_longdesc = {
["default:obsidian"] = "A hard mineral which is created from a lava source when it meets water (any block in the Water group).",
["default:obsidianbrick"] = buildnode,
["default:nyancat"] = "A weird creature with a cat face, cat extremities and a strawberry-flavored pop-tart body. It has been trapped in a block and cannot move and can thus be dug easily by simple tools. Nyan cats are usually followed by nyan cat rainbows. Legends say that in ancient times, long before the creation of our world, there were many of the Nyan Cats which were free and flew through space and sang the \"Nya-nya\" song. Nowadays, nyan cats serve as a fancy collector's item and are traded as souveniers. Apart from that, nyan cats have no intrinsic value.",
["default:nyancat_rainbow"] = "A rainbow made by a real nyan cat, ancient creatures which once flew through space. It has gone inert and can be dug by simple tools. Like nyan cats, nyan cat rainbows have no intrinsic value.",
-- 0.4.14 Nyan Cats (for compability)
["default:nyancat"] = nyandesc,
["default:nyancat_rainbow"] = rainbowdesc,
-- New Nyan cats
["nyancat:nyancat"] = nyandesc,
["nyancat:nyancat_rainbow"] = rainbowdesc,
["default:book"] = "A book is used to store notes and to make bookshelfs.",
["default:book_written"] = "A book is used to store notes and to make bookshelfs. Books with text contain notes and can be copied.",
["default:grass_1"] = "Grass can be found in large quantities in open plains. It comes in 5 different sizes but doesn't grow. There's a small chance it turns neighbor dirt blocks into dirt with grass, when they're in sunlight.",