diff --git a/mods/ITEMS/mcl_boats/depends.txt b/mods/ITEMS/mcl_boats/depends.txt index 61f1a11db2..d619ac59d7 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 1085443da0..35bcefea4e 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