Bugfix and new item

This commit is contained in:
Maciej Kasatkin 2012-10-30 00:39:35 +01:00
parent 54d6c27a06
commit 0bd7a87262
3 changed files with 16 additions and 0 deletions

View File

@ -144,6 +144,7 @@ minetest.register_node("technic:light_off", {
}) })
function check_for_flashlight (player) function check_for_flashlight (player)
if player==nil then return false
local inv = player:get_inventory() local inv = player:get_inventory()
local hotbar=inv:get_list("main") local hotbar=inv:get_list("main")
for i=1,8,1 do for i=1,8,1 do

View File

@ -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'},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB