From c11aea406bb4c68e3221a79f3be381e0dd12689d Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Sun, 14 Oct 2012 23:40:03 +0200 Subject: [PATCH] Added missing texture --- textures/technic_light.png | Bin 0 -> 246 bytes water_can1.lua | 68 ------------------------------------- 2 files changed, 68 deletions(-) create mode 100644 textures/technic_light.png delete mode 100644 water_can1.lua diff --git a/textures/technic_light.png b/textures/technic_light.png new file mode 100644 index 0000000000000000000000000000000000000000..334cb078a9a03b0d90342ac9418482494231ae71 GIT binary patch literal 246 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=G^tAk28_ZrvZCAbW|YuPgf<7GV}`=5HlBUO*wK64!{5;QX|b^2DN4hJeJ(yb?V> z*ARs=V?9$nLj!{^MGJwd;yqm)LoEE0f7H89W@P^V|NMvf9z552_&Tog1i5eV-N7Sk z+Hl0-NQZ6!&m@u547G;I44P~Qt{ghEa1vvNrrzopr0Oz_*WB>pF literal 0 HcmV?d00001 diff --git a/water_can1.lua b/water_can1.lua deleted file mode 100644 index c61ccac..0000000 --- a/water_can1.lua +++ /dev/null @@ -1,68 +0,0 @@ -water_can_max_load = 16 - -minetest.register_craft({ - output = 'technic:water_can 1', - recipe = { - {'technic:zinc_ingot', 'technic:rubber_fiber','technic:zinc_ingot'}, - {'default:steel_ingot', '', 'default:steel_ingot'}, - {'technic:zinc_ingot', 'default:steel_ingot', 'technic:zinc_ingot'}, - } -}) - -minetest.register_tool("technic:water_can", { - description = "Water Can", - inventory_image = "technic_water_can.png", - stack_max = 1, - liquids_pointable = true, - on_use = function(itemstack, user, pointed_thing) - - if pointed_thing.type ~= "node" then - return end - - n = minetest.env:get_node(pointed_thing.under) - if n.name == "default:water_source" then - item=itemstack:to_table() - local load=tonumber((item["wear"])) - if load==0 then load =65535 end - load=get_RE_item_load(load,water_can_max_load) - print ("Water can load"..load) - if load+1<17 then - minetest.env:add_node(pointed_thing.under, {name="air"}) - load=load+1; - load=set_RE_item_load(load,water_can_max_load) - item["wear"]=tostring(load) - itemstack:replace(item) - end - return itemstack - end - item=itemstack:to_table() - load=tonumber((item["wear"])) - if load==0 then load =65535 end - load=get_RE_item_load(load,water_can_max_load) - if load==0 then return end - n = minetest.env:get_node(pointed_thing.under) - if minetest.registered_nodes[n.name].buildable_to then - -- buildable - minetest.env:add_node(pointed_thing.under, {name="default:water_source"}) - load=load-1; - load=set_RE_item_load(load,water_can_max_load) - item["wear"]=tostring(load) - itemstack:replace(item) - return itemstack - else - n = minetest.env:get_node(pointed_thing.above) - -- not buildable - -- check if its allowed to replace the node - if not minetest.registered_nodes[n.name].buildable_to then - return - end - minetest.env:add_node(pointed_thing.above, {name="default:water_source"}) - load=load-1; - load=set_RE_item_load(load,water_can_max_load) - item["wear"]=tostring(load) - itemstack:replace(item) - return itemstack - end - - end, -}) -- 2.30.2