forked from minetest-mods/technic
Bugfix and new item
This commit is contained in:
parent
54d6c27a06
commit
0bd7a87262
@ -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
|
||||||
|
15
items.lua
15
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'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
BIN
textures/technic_mv_transformer.png
Normal file
BIN
textures/technic_mv_transformer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user