repearkit wearing added, recipe changed
This commit is contained in:
parent
779a31de04
commit
46509bec3c
@ -193,7 +193,7 @@ if techage.max_num_forceload_blocks > 0 then
|
||||
output = "techage:forceload",
|
||||
recipe = {
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"", "basic_materials:energy_crystal_simple", ""},
|
||||
{"default:mese_crystal_fragment", "techage:baborium_lump", "default:mese_crystal_fragment"},
|
||||
{"group:wood", "techage:iron_ingot", "group:wood"},
|
||||
},
|
||||
})
|
||||
|
@ -409,7 +409,7 @@ end
|
||||
-- Put the given stack into the given ItemList.
|
||||
-- Function returns false if ItemList is full.
|
||||
function techage.put_items(inv, listname, stack)
|
||||
if inv:room_for_item(listname, stack) then
|
||||
if inv and inv.room_for_item and inv:room_for_item(listname, stack) then
|
||||
inv:add_item(listname, stack)
|
||||
return true
|
||||
end
|
||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
||||
name = techage
|
||||
depends = default,tubelib2,basic_materials,bucket
|
||||
optional_depends = unified_inventory,wielded_light,signs_bot
|
||||
optional_depends = unified_inventory,wielded_light
|
||||
description = Hello World!
|
@ -31,7 +31,7 @@ local function repair_node(itemstack, user, pointed_thing)
|
||||
if pos then
|
||||
if techage.repair_node(pos) then
|
||||
minetest.chat_send_player(user:get_player_name(), "[TechAge] Node repaired")
|
||||
itemstack:take_item()
|
||||
itemstack:add_wear(13108)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
@ -54,7 +54,7 @@ local function read_state(itemstack, user, pointed_thing)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_craftitem("techage:repairkit", {
|
||||
minetest.register_tool("techage:repairkit", {
|
||||
description = "TechAge Repair Kit",
|
||||
inventory_image = "techage_repairkit.png",
|
||||
wield_image = "techage_repairkit.png^[transformR270",
|
||||
|
Loading…
Reference in New Issue
Block a user