2017-01-05 16:02:07 +01:00
|
|
|
minetest.register_node("mcl_inventory:crafting_table", {
|
2015-06-29 19:55:56 +02:00
|
|
|
description = "Crafting Table",
|
2017-01-05 16:02:07 +01:00
|
|
|
tiles = {"mcl_inventory_crafting_table_top.png", "default_wood.png", "mcl_inventory_crafting_table_side.png",
|
|
|
|
"mcl_inventory_crafting_table_side.png", "mcl_inventory_crafting_table_front.png", "mcl_inventory_crafting_table_front.png"},
|
2015-06-29 19:55:56 +02:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
paramtype = "light",
|
2017-01-04 22:36:51 +01:00
|
|
|
is_ground_content = false,
|
2015-06-29 19:55:56 +02:00
|
|
|
groups = {choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_rightclick = function(pos, node, clicker, itemstack)
|
|
|
|
clicker:get_inventory():set_width("craft", 3)
|
|
|
|
clicker:get_inventory():set_size("craft", 9)
|
|
|
|
clicker:get_inventory():set_width("main", 9)
|
|
|
|
clicker:get_inventory():set_size("main", 36)
|
2017-01-05 16:02:07 +01:00
|
|
|
minetest.show_formspec(clicker:get_player_name(), "mcl_inventory:crafting_table", CRAFTING_FORMSPEC)
|
2015-06-29 19:55:56 +02:00
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-01-05 16:02:07 +01:00
|
|
|
output = "mcl_inventory:crafting_table",
|
2015-06-29 19:55:56 +02:00
|
|
|
recipe = {
|
|
|
|
{"group:wood", "group:wood"},
|
|
|
|
{"group:wood", "group:wood"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|