From 5cf9a7b3d12974b5bbb9ad3e5d7511e065429e15 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Apr 2017 01:23:55 +0200 Subject: [PATCH] Add help to mushrooms --- mods/ITEMS/mcl_mushrooms/small.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mods/ITEMS/mcl_mushrooms/small.lua b/mods/ITEMS/mcl_mushrooms/small.lua index 77381e159..a0b216db2 100644 --- a/mods/ITEMS/mcl_mushrooms/small.lua +++ b/mods/ITEMS/mcl_mushrooms/small.lua @@ -57,8 +57,17 @@ local on_place = function(itemstack, placer, pointed_thing) return itemstack end +local longdesc = [[Mushrooms are fungi which grow and spread in darkness, but are sensitive to light. + +A single mushroom will slowly spread over time towards a random opaque block with a light level of 12 or lower in a 5×5×5 cube around the mushroom. A mushroom stops spreading when there are 5 or more mushrooms of the same color 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 usagehelp = "Mushrooms 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", + _doc_items_longdesc = longdesc, + _doc_items_usagehelp = usagehelp, drawtype = "plantlike", tiles = { "farming_mushroom_brown.png" }, inventory_image = "farming_mushroom_brown.png", @@ -80,6 +89,8 @@ minetest.register_node("mcl_mushrooms:mushroom_brown", { minetest.register_node("mcl_mushrooms:mushroom_red", { description = "Red Mushroom", + _doc_items_longdesc = longdesc, + _doc_items_usagehelp = usagehelp, drawtype = "plantlike", tiles = { "farming_mushroom_red.png" }, inventory_image = "farming_mushroom_red.png",