Changed description

This commit is contained in:
ThePython 2023-03-26 15:50:36 -07:00
parent af2404358d
commit 21a929d341
4 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ local function on_timer(pos, elapsed)
end
-- give orb new charge value
fuel_stack:get_meta():set_int("stored_charge", orb_charge)
fuel_stack:get_meta():set_string("description", "Current charge: "..tostring(orb_charge))
fuel_stack:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(orb_charge))
inv:set_stack("fuel", 1, fuel_stack)
-- "convert" charge into a node at dst
if dst_stack:is_empty() then

View File

@ -62,7 +62,7 @@ local function on_timer(pos, elapsed)
local stored = dest_orb:get_meta():get_int("stored_charge") or 0
stored = stored + energy_value
dest_orb:get_meta():set_int("stored_charge", stored)
dest_orb:get_meta():set_string("description", "Current charge: "..tostring(stored))
dest_orb:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(stored))
inv:set_stack("dst", 1, dest_orb)
update = true

View File

@ -51,7 +51,7 @@ local function on_timer(pos, elapsed)
local stored = dest_orb:get_meta():get_int("stored_charge") or 0
stored = stored + 1
dest_orb:get_meta():set_int("stored_charge", stored)
dest_orb:get_meta():set_string("description", "Current charge: "..tostring(stored))
dest_orb:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(stored))
inv:set_stack("main", 1, dest_orb)
end
return true

View File

@ -5,7 +5,7 @@ function read_orb_charge(itemstack, user, pointed_thing)
end
minetest.register_tool("exchangeclone:exchange_orb", {
description = "Exchange Orb",
description = "Exchange Orb\nCurrent Charge: 0",
inventory_image = "ee_exchange_orb.png",
on_use = read_orb_charge,
})