]> git.lizzy.rs Git - Crafter.git/commitdiff
Remove extra data from crafting table
authoroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 04:35:55 +0000 (00:35 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Fri, 26 Jun 2020 04:35:55 +0000 (00:35 -0400)
mods/craftingtable/init.lua

index 3658954a3e26bb4bffd05c51e48f096799fffe6b..7c7890857828159558fa5afb0c5d08bd8d957037 100644 (file)
@@ -1,26 +1,9 @@
---this is where the crafting bench is defined
-crafting_table_formspec = "size[9,8.75]"..
-               "background[-0.19,-0.25;9.41,9.49;crafting_inventory_workbench.png]"..
-               "listcolors[#8b8a89;#c9c3c6;#3e3d3e;#000000;#FFFFFF]"..
-               "list[current_player;main;0,4.5;9,1;]".. --hot bar
-               "list[current_player;main;0,6;9,3;9]".. --big part
-               "list[current_player;craft;1.75,0.5;3,3;]"..
-               "list[current_player;craftpreview;6.1,1.5;1,1;]"..
-               "listring[current_player;main]"..
-               "listring[current_player;craft]"
-
 minetest.register_node("craftingtable:craftingtable", {
     description = "Crafting Table",
     tiles = {"crafting_workbench_top.png", "wood.png", "crafting_workbench_side.png",
                "crafting_workbench_side.png", "crafting_workbench_front.png", "crafting_workbench_front.png"},
     groups = {wood = 1, hard = 1, axe = 1, hand = 3,pathable = 1},
     sounds = main.woodSound(),
-    on_rightclick = function(pos, node, player, itemstack)
-               player:get_inventory():set_width("craft", 3)
-               player:get_inventory():set_size("craft", 9)
-
-               minetest.show_formspec(player:get_player_name(), "main", crafting_table_formspec)
-       end,
 })
 minetest.register_craft({
        output = "craftingtable:craftingtable",