summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Kasatkin <mk@realbadangel.pl>2012-10-30 00:39:35 +0100
committerMaciej Kasatkin <mk@realbadangel.pl>2012-10-30 00:39:35 +0100
commit0bd7a8726248a1e99d3c0ee35783985b6e8e8e33 (patch)
tree33ab10df387b271ef6fb50d8555c337095a08d9a
parent54d6c27a063d59d4a21061760201a2815f8f0573 (diff)
Bugfix and new item
-rw-r--r--flashlight.lua1
-rw-r--r--items.lua15
-rw-r--r--textures/technic_mv_transformer.pngbin0 -> 1748 bytes
3 files changed, 16 insertions, 0 deletions
diff --git a/flashlight.lua b/flashlight.lua
index 1125246..674b5ac 100644
--- a/flashlight.lua
+++ b/flashlight.lua
@@ -144,6 +144,7 @@ minetest.register_node("technic:light_off", {
})
function check_for_flashlight (player)
+if player==nil then return false
local inv = player:get_inventory()
local hotbar=inv:get_list("main")
for i=1,8,1 do
diff --git a/items.lua b/items.lua
index 5f460f5..527fc6f 100644
--- a/items.lua
+++ b/items.lua
@@ -140,3 +140,18 @@ minetest.register_craft({
}
})
+minetest.register_craftitem( "technic:mv_transformer", {
+ description = "Medium Voltage Transformer",
+ inventory_image = "technic_mv_transformer.png",
+ on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+ output = 'technic:mv_transformer',
+ recipe = {
+ {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ {'technic:copper_coil', 'default:steel_ingot', 'technic:copper_coil'},
+ {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
+ }
+})
+
diff --git a/textures/technic_mv_transformer.png b/textures/technic_mv_transformer.png
new file mode 100644
index 0000000..7c4688e
--- /dev/null
+++ b/textures/technic_mv_transformer.png
Binary files differ