New translation system, part 8: Items, part 4
This commit is contained in:
parent
a29626881f
commit
47c817d75a
22 changed files with 248 additions and 262 deletions
|
@ -1,5 +1,6 @@
|
|||
local chest = minetest.get_content_id("mcl_chests:chest")
|
||||
local S = minetest.get_translator("mcl_hoppers")
|
||||
|
||||
local chest = minetest.get_content_id("mcl_chests:chest")
|
||||
|
||||
--[[ BEGIN OF NODE DEFINITIONS ]]
|
||||
|
||||
|
@ -121,16 +122,16 @@ local def_hopper = {
|
|||
|
||||
-- Enabled downwards hopper
|
||||
local def_hopper_enabled = table.copy(def_hopper)
|
||||
def_hopper_enabled.description = "Hopper"
|
||||
def_hopper_enabled._doc_items_longdesc = [[Hoppers are containers with 5 inventory slots. They collect dropped items from above, take items from a container above and attempts to put its items it into an adjacent container. Hoppers can go either downwards or sideways. Hoppers interact with chests, droppers, dispensers, shulker boxes, furnaces and hoppers.
|
||||
def_hopper_enabled.description = S("Hopper")
|
||||
def_hopper_enabled._doc_items_longdesc = S("Hoppers are containers with 5 inventory slots. They collect dropped items from above, take items from a container above and attempts to put its items it into an adjacent container. Hoppers can go either downwards or sideways. Hoppers interact with chests, droppers, dispensers, shulker boxes, furnaces and hoppers.").."\n\n"..
|
||||
|
||||
Hoppers interact with containers the following way:
|
||||
S([[Hoppers interact with containers the following way:
|
||||
• Furnaces: Hoppers from above will put items into the source slot. Hoppers from below take items from the output slot. They also take items from the fuel slot when they can't be used as a fuel. Sideway hoppers put items into the fuel slot
|
||||
• Ender chests: Hoppers don't interact with ender chests
|
||||
• Other containers: Hoppers interact with them normally
|
||||
• Other containers: Hoppers interact with them normally]]).."\n\n"..
|
||||
|
||||
Hoppers can be disabled by supplying them with redstone power. Disabled hoppers don't move items.]]
|
||||
def_hopper_enabled._doc_items_usagehelp = "To place a hopper vertically, place it on the floor or a ceiling. To place it sideways, place it at the side of a block. Remember you can place at usable blocks (such as chests) with sneak + right-click. The hopper will keep its orientation when the blocks around it are changed. To access the hopper's inventory, rightclick it."
|
||||
S("Hoppers can be disabled by supplying them with redstone power. Disabled hoppers don't move items.")
|
||||
def_hopper_enabled._doc_items_usagehelp = S("To place a hopper vertically, place it on the floor or a ceiling. To place it sideways, place it at the side of a block. Remember you can place at usable blocks (such as chests) with sneak + right-click. The hopper will keep its orientation when the blocks around it are changed. To access the hopper's inventory, rightclick it.")
|
||||
def_hopper_enabled.on_place = function(itemstack, placer, pointed_thing)
|
||||
local upos = pointed_thing.under
|
||||
local apos = pointed_thing.above
|
||||
|
@ -179,7 +180,7 @@ minetest.register_node("mcl_hoppers:hopper", def_hopper_enabled)
|
|||
|
||||
-- Disabled downwards hopper
|
||||
local def_hopper_disabled = table.copy(def_hopper)
|
||||
def_hopper_disabled.description = "Disabled Hopper"
|
||||
def_hopper_disabled.description = S("Disabled Hopper")
|
||||
def_hopper_disabled._doc_items_create_entry = false
|
||||
def_hopper_disabled.groups.not_in_creative_inventory = 1
|
||||
def_hopper_disabled.drop = "mcl_hoppers:hopper"
|
||||
|
@ -304,7 +305,7 @@ local def_hopper_side = {
|
|||
}
|
||||
|
||||
local def_hopper_side_enabled = table.copy(def_hopper_side)
|
||||
def_hopper_side_enabled.description = "Side Hopper"
|
||||
def_hopper_side_enabled.description = S("Side Hopper")
|
||||
def_hopper_side_enabled.mesecons = {
|
||||
effector = {
|
||||
action_on = function(pos, node)
|
||||
|
@ -315,7 +316,7 @@ def_hopper_side_enabled.mesecons = {
|
|||
minetest.register_node("mcl_hoppers:hopper_side", def_hopper_side_enabled)
|
||||
|
||||
local def_hopper_side_disabled = table.copy(def_hopper_side)
|
||||
def_hopper_side_disabled.description = "Disabled Side Hopper"
|
||||
def_hopper_side_disabled.description = S("Disabled Side Hopper")
|
||||
def_hopper_side_disabled.mesecons = {
|
||||
effector = {
|
||||
action_off = function(pos, node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue