From 83396f56d1814d7cf4a97e8b0f1b8d044079eef5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 13 Jun 2017 00:18:51 +0200 Subject: [PATCH] Add boat help --- mods/ITEMS/mcl_boats/depends.txt | 1 + mods/ITEMS/mcl_boats/init.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_boats/depends.txt b/mods/ITEMS/mcl_boats/depends.txt index 61f1a11d..d619ac59 100644 --- a/mods/ITEMS/mcl_boats/depends.txt +++ b/mods/ITEMS/mcl_boats/depends.txt @@ -1,2 +1,3 @@ mcl_core mcl_player +doc_identifier? diff --git a/mods/ITEMS/mcl_boats/init.lua b/mods/ITEMS/mcl_boats/init.lua index 1085443d..35bcefea 100644 --- a/mods/ITEMS/mcl_boats/init.lua +++ b/mods/ITEMS/mcl_boats/init.lua @@ -229,6 +229,8 @@ for b=1, #boat_ids do minetest.register_craftitem(itemstring, { description = names[b], + _doc_items_longdesc = "Boats are used to travel on the surface of water.", + _doc_items_usagehelp = "Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Rightclick the boat again to leave it, punch the boat to make it drop as an item.", inventory_image = "mcl_boats_"..images[b].."_boat.png", liquids_pointable = true, groups = { boat = 1, transport = 1}, @@ -276,3 +278,6 @@ minetest.register_craft({ burntime = 20, }) +if minetest.get_modpath("doc_identifier") ~= nil then + doc.sub.identifier.register_object("mcl_boats:boat", "craftitems", "mcl_boats:boat") +end