2017-05-17 17:57:14 +02:00
|
|
|
|
2015-10-04 02:07:04 +02:00
|
|
|
--
|
|
|
|
-- Crafting items
|
|
|
|
--
|
|
|
|
|
2019-08-28 17:31:41 +02:00
|
|
|
local S = minetest.get_translator("default")
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Organic items
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:fiber",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Fiber"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_fiber.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:stick",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stick"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_stick.png",
|
|
|
|
groups = {stick = 1}
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:paper",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Paper"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_paper.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:pearl",
|
2015-10-04 02:07:04 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Pearl"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_pearl.png",
|
|
|
|
})
|
|
|
|
|
2017-05-17 23:48:21 +02:00
|
|
|
-- Mineral misc.
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:sheet_graphite",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Graphite Sheet"),
|
2017-05-17 23:48:21 +02:00
|
|
|
inventory_image = "default_sheet_graphite.png",
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Mineral lumps
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:lump_sulfur",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Sulfur Lump"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_lump_sulfur.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:lump_coal",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Coal Lump"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_lump_coal.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:lump_iron",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Iron Lump"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_lump_iron.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:lump_tin",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Tin Lump"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_lump_tin.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:lump_copper",
|
2015-10-04 02:07:04 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Copper Lump"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_lump_copper.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:lump_bronze",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Bronze Lump"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_lump_bronze.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Ingots
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:ingot_wrought_iron",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Wrought Iron Ingot"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_ingot_wrought_iron.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:ingot_steel",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Steel Ingot"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_ingot_steel.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_carbon_steel",
|
2015-10-04 02:07:04 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Carbon Steel Ingot"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_ingot_carbon_steel.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-18 17:42:31 +02:00
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:ingot_copper",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Copper Ingot"),
|
2017-05-18 17:42:31 +02:00
|
|
|
inventory_image = "default_ingot_copper.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:ingot_tin",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Tin Ingot"),
|
2017-05-18 17:42:31 +02:00
|
|
|
inventory_image = "default_ingot_tin.png",
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_bronze",
|
2015-10-04 02:07:04 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Bronze Ingot"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_ingot_bronze.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Crafted items
|
2015-10-05 21:14:47 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:flint",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Flint Shard"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_flint.png",
|
2017-05-10 19:19:28 +02:00
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
minetest.register_craftitem(
|
|
|
|
"default:book",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Book"),
|
2017-05-17 17:57:14 +02:00
|
|
|
inventory_image = "default_book.png",
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
stack_max = 1,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:bucket_water",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Water Bucket"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_bucket_water.png",
|
|
|
|
stack_max = 1,
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
liquids_pointable = true,
|
|
|
|
on_place = function(itemstack, user, pointed_thing)
|
2017-05-10 19:19:28 +02:00
|
|
|
if pointed_thing.type ~= "node" then return end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local pos_protected = minetest.get_pointed_thing_position(pointed_thing, true)
|
|
|
|
if minetest.is_protected(pos_protected, user) then return end
|
2015-11-13 20:51:45 +01:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local inv=user:get_inventory()
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
if inv:room_for_item("main", {name="default:bucket"}) then
|
|
|
|
inv:add_item("main", "default:bucket")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local pos = pointed_thing.above
|
2017-05-12 17:07:39 +02:00
|
|
|
local above_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.above).name]
|
|
|
|
local under_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
|
|
|
|
|
|
|
|
if under_nodedef.buildable_to then
|
2017-05-10 19:19:28 +02:00
|
|
|
pos=pointed_thing.under
|
|
|
|
end
|
2017-05-12 17:07:39 +02:00
|
|
|
|
|
|
|
if not above_nodedef.walkable then
|
|
|
|
minetest.add_node(pos, {name = "default:water_source"})
|
|
|
|
end
|
2017-05-10 19:19:28 +02:00
|
|
|
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:bucket_river_water",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("River Water Bucket"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_bucket_river_water.png",
|
|
|
|
stack_max = 1,
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
liquids_pointable = true,
|
|
|
|
on_place = function(itemstack, user, pointed_thing)
|
2017-05-10 19:19:28 +02:00
|
|
|
if pointed_thing.type ~= "node" then return end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local pos_protected = minetest.get_pointed_thing_position(pointed_thing, true)
|
|
|
|
if minetest.is_protected(pos_protected, user) then return end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
itemstack:take_item()
|
2015-11-13 20:51:45 +01:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local inv=user:get_inventory()
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
if inv:room_for_item("main", {name="default:bucket"}) then
|
|
|
|
inv:add_item("main", "default:bucket")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local pos = pointed_thing.above
|
2017-05-12 17:07:39 +02:00
|
|
|
local above_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.above).name]
|
|
|
|
local under_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
|
|
|
|
|
|
|
|
if under_nodedef.buildable_to then
|
2017-05-10 19:19:28 +02:00
|
|
|
pos=pointed_thing.under
|
|
|
|
end
|
2017-05-12 17:07:39 +02:00
|
|
|
|
|
|
|
if not above_nodedef.walkable then
|
|
|
|
minetest.add_node(pos, {name = "default:river_water_source"})
|
|
|
|
end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:bucket_swamp_water",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Swamp Water Bucket"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_bucket_swamp_water.png",
|
|
|
|
stack_max = 1,
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
liquids_pointable = true,
|
|
|
|
on_place = function(itemstack, user, pointed_thing)
|
2017-05-10 19:19:28 +02:00
|
|
|
if pointed_thing.type ~= "node" then return end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local pos_protected = minetest.get_pointed_thing_position(pointed_thing, true)
|
|
|
|
if minetest.is_protected(pos_protected, user) then return end
|
2015-11-13 20:51:45 +01:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
itemstack:take_item()
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local inv=user:get_inventory()
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
if inv:room_for_item("main", {name="default:bucket"}) then
|
|
|
|
inv:add_item("main", "default:bucket")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
local pos = pointed_thing.above
|
2017-05-12 17:07:39 +02:00
|
|
|
local above_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.above).name]
|
|
|
|
local under_nodedef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
|
|
|
|
|
|
|
|
if under_nodedef.buildable_to then
|
2017-05-10 19:19:28 +02:00
|
|
|
pos=pointed_thing.under
|
|
|
|
end
|
2017-05-12 17:07:39 +02:00
|
|
|
|
|
|
|
if not above_nodedef.walkable then
|
|
|
|
minetest.add_node(pos, {name = "default:swamp_water_source"})
|
|
|
|
end
|
2017-05-10 19:19:28 +02:00
|
|
|
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-04 02:07:04 +02:00
|
|
|
"default:bucket",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Empty Bucket"),
|
2015-10-04 02:07:04 +02:00
|
|
|
inventory_image = "default_bucket.png",
|
|
|
|
stack_max = 10,
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
liquids_pointable = true,
|
|
|
|
on_use = function(itemstack, user, pointed_thing)
|
2017-05-10 19:19:28 +02:00
|
|
|
if pointed_thing.type ~= "node" then return end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local nodename=minetest.get_node(pointed_thing.under).name
|
2017-05-10 19:19:28 +02:00
|
|
|
|
|
|
|
if nodename == "default:water_source" then
|
|
|
|
itemstack:take_item()
|
|
|
|
|
|
|
|
local inv=user:get_inventory()
|
|
|
|
|
|
|
|
if inv:room_for_item("main", {name="default:bucket_water"}) then
|
|
|
|
inv:add_item("main", "default:bucket_water")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket_water")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.remove_node(pointed_thing.under)
|
2017-05-10 19:19:28 +02:00
|
|
|
elseif nodename == "default:river_water_source" then
|
|
|
|
itemstack:take_item()
|
|
|
|
|
|
|
|
local inv=user:get_inventory()
|
|
|
|
|
|
|
|
if inv:room_for_item("main", {name="default:bucket_river_water"}) then
|
|
|
|
inv:add_item("main", "default:bucket_river_water")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket_river_water")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.remove_node(pointed_thing.under)
|
2017-05-10 19:19:28 +02:00
|
|
|
elseif nodename == "default:swamp_water_source" then
|
|
|
|
itemstack:take_item()
|
|
|
|
|
|
|
|
local inv=user:get_inventory()
|
|
|
|
|
|
|
|
if inv:room_for_item("main", {name="default:bucket_swamp_water"}) then
|
|
|
|
inv:add_item("main", "default:bucket_swamp_water")
|
|
|
|
else
|
2019-03-20 15:04:20 +01:00
|
|
|
local pos = user:get_pos()
|
2017-05-10 19:19:28 +02:00
|
|
|
pos.y = math.floor(pos.y + 0.5)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.add_item(pos, "default:bucket_swamp_water")
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.remove_node(pointed_thing.under)
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
|
|
|
|
})
|
2015-10-04 02:07:04 +02:00
|
|
|
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_craftitem(
|
2015-10-18 02:31:07 +02:00
|
|
|
"default:fertilizer",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Fertilizer"),
|
2015-10-18 02:31:07 +02:00
|
|
|
inventory_image = "default_fertilizer_inventory.png",
|
|
|
|
wield_scale = {x=1,y=1,z=2},
|
|
|
|
on_place = function(itemstack, user, pointed_thing)
|
2017-05-10 19:19:28 +02:00
|
|
|
local pos = pointed_thing.above
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local underdef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
if underdef.groups then
|
|
|
|
if underdef.groups.plantable_soil then
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.remove_node(pos)
|
|
|
|
minetest.set_node(pointed_thing.under, {name = "default:fertilized_dirt"})
|
2017-05-10 19:19:28 +02:00
|
|
|
elseif underdef.groups.plantable_sandy then
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.remove_node(pos)
|
|
|
|
minetest.set_node(pointed_thing.under, {name = "default:fertilized_sand"})
|
2017-05-10 19:19:28 +02:00
|
|
|
end
|
|
|
|
end
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
itemstack:take_item()
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-10 19:19:28 +02:00
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
})
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2015-11-13 20:51:45 +01:00
|
|
|
default.log("craftitems", "loaded")
|