Add boat help

This commit is contained in:
Wuzzy 2017-06-13 00:18:51 +02:00
parent 4cf9dc6f25
commit 83396f56d1
2 changed files with 6 additions and 0 deletions

@ -1,2 +1,3 @@
mcl_core mcl_core
mcl_player mcl_player
doc_identifier?

@ -229,6 +229,8 @@ for b=1, #boat_ids do
minetest.register_craftitem(itemstring, { minetest.register_craftitem(itemstring, {
description = names[b], 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", inventory_image = "mcl_boats_"..images[b].."_boat.png",
liquids_pointable = true, liquids_pointable = true,
groups = { boat = 1, transport = 1}, groups = { boat = 1, transport = 1},
@ -276,3 +278,6 @@ minetest.register_craft({
burntime = 20, burntime = 20,
}) })
if minetest.get_modpath("doc_identifier") ~= nil then
doc.sub.identifier.register_object("mcl_boats:boat", "craftitems", "mcl_boats:boat")
end