From 70c0ff05eace1ec6fd4edbced25072884d1aa4e9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 12 Mar 2017 02:20:33 +0100 Subject: [PATCH] Add help for bow and arrow --- mods/ITEMS/mcl_throwing/arrow.lua | 1 + mods/ITEMS/mcl_throwing/init.lua | 3 +++ 2 files changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_throwing/arrow.lua b/mods/ITEMS/mcl_throwing/arrow.lua index a2924b7a4..9ca951258 100644 --- a/mods/ITEMS/mcl_throwing/arrow.lua +++ b/mods/ITEMS/mcl_throwing/arrow.lua @@ -1,5 +1,6 @@ minetest.register_craftitem("mcl_throwing:arrow", { description = "Arrow", + _doc_items_longdescs = "Arrows are ammunition for bows and dispensers.", inventory_image = "mcl_throwing_arrow_inv.png", groups = { ammo=1, ammo_bow=1 }, }) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index 9f7fe64db..1aaf5a2f3 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -94,6 +94,9 @@ end minetest.register_tool("mcl_throwing:bow", { description = "Bow", + _doc_items_longdesc = "Bows are ranged weapons to shoot arrows at your foes.", + _doc_items_usagehelp = [[To use the bow, you first need to have at least one arrow anywhere in your inventory. Rightclick one to three times to charge the bow. Leftclick to shoot. +The higher the charge, the faster the arrow will go and the higher the damage. A successful hit deals 1-5 HP of damage."]], inventory_image = "mcl_throwing_bow.png", stack_max = 1, on_place = powerup_function("mcl_throwing:bow_0"),