1
0
Fork 0

Change inventory and wield image for repeater

This commit is contained in:
Wuzzy 2017-03-12 00:17:10 +01:00
parent 0ac7f42d1b
commit 110a83734e
2 changed files with 8 additions and 3 deletions

View File

@ -85,15 +85,20 @@ boxes = {
} }
end end
local help = i == 1 local help, longdesc, usagehelp, icon
local longdesc, usagehelp if i == 1 then
if help then help = true
longdesc = "Redstone repeaters are versatile redstone components which delay redstone signals and only allow redstone signals to travel through one direction. The delay of the signal is indicated by the redstone torches and is between 0.1 and 0.4 seconds long." longdesc = "Redstone repeaters are versatile redstone components which delay redstone signals and only allow redstone signals to travel through one direction. The delay of the signal is indicated by the redstone torches and is between 0.1 and 0.4 seconds long."
usagehelp = "To power a redstone repeater, send a signal in “arrow” direction. To change the delay, rightclick the redstone repeater. The delay is changed in steps of 0.1 seconds." usagehelp = "To power a redstone repeater, send a signal in “arrow” direction. To change the delay, rightclick the redstone repeater. The delay is changed in steps of 0.1 seconds."
icon = "mesecons_delayer_item.png"
else
help = false
end end
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
description = "Redstone Repeater", description = "Redstone Repeater",
inventory_image = icon,
wield_image = icon,
_doc_items_create_entry = help, _doc_items_create_entry = help,
_doc_items_longdesc = longdesc, _doc_items_longdesc = longdesc,
_doc_items_usagehelp = usagehelp, _doc_items_usagehelp = usagehelp,

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B