mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 09:10:38 +02:00
Refill behaviour for power tools and cans
Supply the on_refill hook for power tools and cans, to perform appropriate charging. This is to be used by unified_inventory's creative-mode refill slot.
This commit is contained in:
@ -8,6 +8,7 @@ minetest.register_tool("technic:sonic_screwdriver", {
|
||||
description = S("Sonic Screwdriver"),
|
||||
inventory_image = "technic_sonic_screwdriver.png",
|
||||
wear_represents = "technic_RE_charge",
|
||||
on_refill = technic.refill_RE_charge,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
-- Must be pointing to facedir applicable node
|
||||
if pointed_thing.type ~= "node" then
|
||||
|
Reference in New Issue
Block a user