Add help texts for dispensers and fire charges

This commit is contained in:
Wuzzy 2017-03-11 02:50:12 +01:00
parent ffa1e35f26
commit 697a7b6505
2 changed files with 22 additions and 0 deletions

View file

@ -340,6 +340,26 @@ local dispenserdef = {
local horizontal_def = table.copy(dispenserdef) local horizontal_def = table.copy(dispenserdef)
horizontal_def.description = "Dispenser" horizontal_def.description = "Dispenser"
horizontal_def._doc_items_longdesc = "A dispenser is a block which acts as a redstone component which, when powered with redstone power, dispenses an item. It has a container with 9 inventory slots."
horizontal_def._doc_items_usagehelp = [[Place the dispenser in one of 6 possible directions. The hole is where items will fly out of the dispenser. Rightclick the dispenser to access its inventory. Insert the items you wish to dispense. Supply the dispenser with redstone energy once to dispense a single random item.
The dispenser will do different things, depending on the dispensed item:
Arrows: Are launched
Eggs and snowballs: Are thrown
Fire charges: Are fired in a straight line
Armor: Will be equipped to players and armor stands
Boats: Are placed on water or are dropped
Minecart: Are placed on rails or are dropped
Bone meal: Is applied on the block it is facint
Empty buckets: Are used to collect a liquid source
Filled buckets: Are used to place a liquid source
Heads, pumpkins or shulker boxes: Are placed as a block
TNT: Is placed and ignited
Flint and steel: Is used to ignite a fire in air and to ignite TNT
Spawn eggs: Will summon the mob they contain
Other items: Are simply dropped]]
horizontal_def.after_place_node = function(pos, placer, itemstack, pointed_thing) horizontal_def.after_place_node = function(pos, placer, itemstack, pointed_thing)
setup_dispenser(pos) setup_dispenser(pos)

View file

@ -1,6 +1,8 @@
-- Fire Charge -- Fire Charge
minetest.register_craftitem("mcl_fire:fire_charge", { minetest.register_craftitem("mcl_fire:fire_charge", {
description = "Fire Charge", description = "Fire Charge",
_doc_items_longdesc = "Fire charges are primarily projectiles which can be launched from dispensers, they will fly in a straight line and burst into a fire on impact. Alternatively, they can be used to ignite fires directly.",
_doc_items_usagehelp = "Put the fire charge into a dispenser and supply it with redstone power to launch it. To ignite a fire directly, simply place the fire charge on the ground, which uses it up.",
inventory_image = "mcl_fire_fire_charge.png", inventory_image = "mcl_fire_fire_charge.png",
liquids_pointable = false, liquids_pointable = false,
stack_max = 64, stack_max = 64,