added workbench

This commit is contained in:
cale 2016-01-02 12:29:46 +01:00
parent c6704a7c44
commit c0a5049985
12 changed files with 388 additions and 204 deletions

View File

@ -1,3 +1,45 @@
-- workbench
minetest.register_node("default:workbench", {
description = "Workbench v1",
tiles = {"default_workbench_top.png", "default_wooden_planks.png"},
groups = {choppy = 3},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", default.craft_form)
meta:set_string("infotext", "Workbench")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
})
default.craft_form_v2 = "size[8,7.5;]"
default.craft_form_v2 = default.craft_form_v2..default.gui_colors
default.craft_form_v2 = default.craft_form_v2..default.gui_bg
default.craft_form_v2 = default.craft_form_v2.."list[current_player;main;0,3.5;8,4;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(0,3.5,8,4)
default.craft_form_v2 = default.craft_form_v2.."list[current_name;craftadd;0,0;1,3;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(0,0,1,3)
default.craft_form_v2 = default.craft_form_v2.."list[current_player;craft;1.5,0;3,3;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(1.5,0,3,3)
default.craft_form_v2 = default.craft_form_v2.."list[current_player;craftpreview;5,1;1,1;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(5,1,1,1)
minetest.register_node("default:workbench_v2", {
description = "Workbench V2",
tiles = {"default_workbench_v2_top.png", "default_small_stone_tile.png"},
groups = {choppy = 3},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", default.craft_form_v2)
meta:set_string("infotext", "Workbench V2")
local inv = meta:get_inventory()
inv:set_size("craftadd", 3)
end,
})
-- crafts
minetest.register_craft({ minetest.register_craft({
output = "default:string_strong", output = "default:string_strong",
recipe = { recipe = {

View File

@ -1,3 +1,45 @@
-- workbench
minetest.register_node("default:workbench", {
description = "Workbench v1",
tiles = {"default_workbench_top.png", "default_wooden_planks.png"},
groups = {choppy = 3},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", default.craft_form)
meta:set_string("infotext", "Workbench")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
})
default.craft_form_v2 = "size[8,7.5;]"
default.craft_form_v2 = default.craft_form_v2..default.gui_colors
default.craft_form_v2 = default.craft_form_v2..default.gui_bg
default.craft_form_v2 = default.craft_form_v2.."list[current_player;main;0,3.5;8,4;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(0,3.5,8,4)
default.craft_form_v2 = default.craft_form_v2.."list[current_name;craftadd;0,0;1,3;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(0,0,1,3)
default.craft_form_v2 = default.craft_form_v2.."list[current_player;craft;1.5,0;3,3;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(1.5,0,3,3)
default.craft_form_v2 = default.craft_form_v2.."list[current_player;craftpreview;5,1;1,1;]"
default.craft_form_v2 = default.craft_form_v2..default.itemslot_bg(5,1,1,1)
minetest.register_node("default:workbench_v2", {
description = "Workbench V2",
tiles = {"default_workbench_v2_top.png", "default_small_stone_tile.png"},
groups = {choppy = 3},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", default.craft_form_v2)
meta:set_string("infotext", "Workbench V2")
local inv = meta:get_inventory()
inv:set_size("craftadd", 3)
end,
})
-- crafts
minetest.register_craft({ minetest.register_craft({
output = "default:string_strong", output = "default:string_strong",
recipe = { recipe = {

View File

@ -4,12 +4,6 @@ minetest.register_node("default:dirt", {
groups = {crumbly = 3}, groups = {crumbly = 3},
}) })
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node=1},
})
minetest.register_node("default:sand", { minetest.register_node("default:sand", {
description = "Sand", description = "Sand",
tiles = {"default_sand.png"}, tiles = {"default_sand.png"},
@ -22,45 +16,6 @@ minetest.register_node("default:grass", {
groups = {crumbly = 3}, groups = {crumbly = 3},
}) })
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
groups = {cracky = 3},
drop = "default:stone_item 5",
})
minetest.register_node("default:stonebrick", {
description = "Stonebrick",
tiles = {"default_stonebrick.png"},
groups = {cracky = 3},
})
minetest.register_node("default:wet_stone", {
description = "Wet Stone",
tiles = {"default_wet_stone.png"},
groups = {cracky = 3},
drop = {"default:stone_item 5"},
})
minetest.register_node("default:stone_with_iron", {
description = "Stone with Iron",
tiles = {"default_stone_with_iron.png"},
groups = {cracky = 2},
drop = {"default:stone_item 2", "default:iron_lump"},
})
minetest.register_node("default:wood", {
description = "Wood",
tiles = {"default_wood.png"},
groups = {choppy = 3},
})
minetest.register_node("default:wooden_planks", {
description = "Wooden Planks",
tiles = {"default_wooden_planks.png"},
groups = {choppy = 3},
})
minetest.register_node("default:leaves_1", { minetest.register_node("default:leaves_1", {
description = "leaves", description = "leaves",
paramtype = "light", paramtype = "light",
@ -87,71 +42,39 @@ minetest.register_node("default:stones_on_floor", {
}) })
minetest.register_node("default:log_1", {
description = "Log (thick)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
},
},
})
minetest.register_node("default:log_2", {
description = "Log",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
},
})
minetest.register_node("default:log_3", {
description = "Log (thin)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
},
},
})
-- box
local box_form = "size[8,9]"
local box_form = box_form..default.gui_colors
local box_form = box_form..default.gui_bg
local box_form = box_form.."list[current_name;main;0,0.3;8,4;]"
local box_form = box_form..default.itemslot_bg(0,0.3,8,4)
local box_form = box_form.."list[current_player;main;0,4.85;8,1;]"
local box_form = box_form..default.itemslot_bg(0,4.85,8,1)
local box_form = box_form.."list[current_player;main;0,6.08;8,3;8]"
local box_form = box_form..default.itemslot_bg(0,6,8,3)
minetest.register_node("default:box", { minetest.register_node("default:box", {
description = "Box", description = "Box",
tiles = {"default_log.png"}, tiles = {"default_wooden_planks.png", "default_wooden_planks.png", "default_box_side.png", "default_box_side.png", "default_box_side.png", "default_box_front.png"},
groups = {choppy = 3}, groups = {choppy = 3},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, {-0.4, -0.5, -0.4, 0.4, 0.2, 0.4},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375},
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
}, },
}, },
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", box_form)
meta:set_string("infotext", "Box")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
}) })
@ -159,7 +82,7 @@ minetest.register_node("default:treasure_chest", {
description = "Treasure Chest", description = "Treasure Chest",
tiles = {"default_treasure_chest.png"}, tiles = {"default_treasure_chest.png"},
groups = {choppy = 3}, groups = {choppy = 3},
drop = "default:stick 2", drop = "default:box",
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
@ -293,6 +216,69 @@ minetest.register_node("default:water_flowing", {
post_effect_color = {a=100, r=0, g=64, b=200}, post_effect_color = {a=100, r=0, g=64, b=200},
}) })
-- wood
minetest.register_node("default:wood", {
description = "Wood",
tiles = {"default_wood.png"},
groups = {choppy = 3},
})
minetest.register_node("default:wooden_planks", {
description = "Wooden Planks",
tiles = {"default_wooden_planks.png"},
groups = {choppy = 3},
})
-- log
minetest.register_node("default:log_1", {
description = "Log (thick)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
},
},
})
minetest.register_node("default:log_2", {
description = "Log",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
},
})
minetest.register_node("default:log_3", {
description = "Log (thin)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
},
},
})
-- plants -- plants
minetest.register_node("default:plant_grass", { minetest.register_node("default:plant_grass", {
@ -407,3 +393,52 @@ default.register_floor("yellow")
default.register_floor("brown") default.register_floor("brown")
default.register_floor("white") default.register_floor("white")
default.register_floor("black") default.register_floor("black")
-- stone
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
groups = {cracky = 3},
drop = "default:stone_item 5",
})
minetest.register_node("default:stone_tile", {
description = "Stone Tile",
tiles = {"default_stone_tile.png"},
groups = {cracky = 3},
})
minetest.register_node("default:small_stone_tiles", {
description = "Small Stone Tiles",
tiles = {"default_small_stone_tile.png"},
groups = {cracky = 3},
})
minetest.register_node("default:stonebrick", {
description = "Stonebrick",
tiles = {"default_stonebrick.png"},
groups = {cracky = 3},
})
minetest.register_node("default:wet_stone", {
description = "Wet Stone",
tiles = {"default_wet_stone.png"},
groups = {cracky = 3},
drop = {"default:stone_item 5"},
})
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node=1},
})
-- ores
minetest.register_node("default:stone_with_iron", {
description = "Stone with Iron",
tiles = {"default_stone_with_iron.png"},
groups = {cracky = 2},
drop = {"default:stone_item 2", "default:iron_lump"},
})

View File

@ -4,12 +4,6 @@ minetest.register_node("default:dirt", {
groups = {crumbly = 3}, groups = {crumbly = 3},
}) })
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node=1},
})
minetest.register_node("default:sand", { minetest.register_node("default:sand", {
description = "Sand", description = "Sand",
tiles = {"default_sand.png"}, tiles = {"default_sand.png"},
@ -22,45 +16,6 @@ minetest.register_node("default:grass", {
groups = {crumbly = 3}, groups = {crumbly = 3},
}) })
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
groups = {cracky = 3},
drop = "default:stone_item 5",
})
minetest.register_node("default:stonebrick", {
description = "Stonebrick",
tiles = {"default_stonebrick.png"},
groups = {cracky = 3},
})
minetest.register_node("default:wet_stone", {
description = "Wet Stone",
tiles = {"default_wet_stone.png"},
groups = {cracky = 3},
drop = {"default:stone_item 5"},
})
minetest.register_node("default:stone_with_iron", {
description = "Stone with Iron",
tiles = {"default_stone_with_iron.png"},
groups = {cracky = 2},
drop = {"default:stone_item 2", "default:iron_lump"},
})
minetest.register_node("default:wood", {
description = "Wood",
tiles = {"default_wood.png"},
groups = {choppy = 3},
})
minetest.register_node("default:wooden_planks", {
description = "Wooden Planks",
tiles = {"default_wooden_planks.png"},
groups = {choppy = 3},
})
minetest.register_node("default:leaves_1", { minetest.register_node("default:leaves_1", {
description = "leaves", description = "leaves",
paramtype = "light", paramtype = "light",
@ -87,71 +42,39 @@ minetest.register_node("default:stones_on_floor", {
}) })
minetest.register_node("default:log_1", {
description = "Log (thick)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
},
},
})
minetest.register_node("default:log_2", {
description = "Log",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
},
})
minetest.register_node("default:log_3", {
description = "Log (thin)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
},
},
})
-- box
local box_form = "size[8,9]"
local box_form = box_form..default.gui_colors
local box_form = box_form..default.gui_bg
local box_form = box_form.."list[current_name;main;0,0.3;8,4;]"
local box_form = box_form..default.itemslot_bg(0,0.3,8,4)
local box_form = box_form.."list[current_player;main;0,4.85;8,1;]"
local box_form = box_form..default.itemslot_bg(0,4.85,8,1)
local box_form = box_form.."list[current_player;main;0,6.08;8,3;8]"
local box_form = box_form..default.itemslot_bg(0,6,8,3)
minetest.register_node("default:box", { minetest.register_node("default:box", {
description = "Box", description = "Box",
tiles = {"default_log.png"}, tiles = {"default_wooden_planks.png", "default_wooden_planks.png", "default_box_side.png", "default_box_side.png", "default_box_side.png", "default_box_front.png"},
groups = {choppy = 3}, groups = {choppy = 3},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, {-0.4, -0.5, -0.4, 0.4, 0.2, 0.4},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375},
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
}, },
}, },
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", box_form)
meta:set_string("infotext", "Box")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
}) })
@ -159,7 +82,7 @@ minetest.register_node("default:treasure_chest", {
description = "Treasure Chest", description = "Treasure Chest",
tiles = {"default_treasure_chest.png"}, tiles = {"default_treasure_chest.png"},
groups = {choppy = 3}, groups = {choppy = 3},
drop = "default:stick 2", drop = "default:box",
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
@ -293,6 +216,69 @@ minetest.register_node("default:water_flowing", {
post_effect_color = {a=100, r=0, g=64, b=200}, post_effect_color = {a=100, r=0, g=64, b=200},
}) })
-- wood
minetest.register_node("default:wood", {
description = "Wood",
tiles = {"default_wood.png"},
groups = {choppy = 3},
})
minetest.register_node("default:wooden_planks", {
description = "Wooden Planks",
tiles = {"default_wooden_planks.png"},
groups = {choppy = 3},
})
-- log
minetest.register_node("default:log_1", {
description = "Log (thick)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
},
},
})
minetest.register_node("default:log_2", {
description = "Log",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
},
})
minetest.register_node("default:log_3", {
description = "Log (thin)",
tiles = {"default_log.png"},
groups = {choppy = 3},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
},
},
})
-- plants -- plants
minetest.register_node("default:plant_grass", { minetest.register_node("default:plant_grass", {
@ -407,3 +393,52 @@ default.register_floor("yellow")
default.register_floor("brown") default.register_floor("brown")
default.register_floor("white") default.register_floor("white")
default.register_floor("black") default.register_floor("black")
-- stone
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
groups = {cracky = 3},
drop = "default:stone_item 5",
})
minetest.register_node("default:stone_tile", {
description = "Stone Tile",
tiles = {"default_stone_tile.png"},
groups = {cracky = 3},
})
minetest.register_node("default:small_stone_tiles", {
description = "Small Stone Tiles",
tiles = {"default_small_stone_tile.png"},
groups = {cracky = 3},
})
minetest.register_node("default:stonebrick", {
description = "Stonebrick",
tiles = {"default_stonebrick.png"},
groups = {cracky = 3},
})
minetest.register_node("default:wet_stone", {
description = "Wet Stone",
tiles = {"default_wet_stone.png"},
groups = {cracky = 3},
drop = {"default:stone_item 5"},
})
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node=1},
})
-- ores
minetest.register_node("default:stone_with_iron", {
description = "Stone with Iron",
tiles = {"default_stone_with_iron.png"},
groups = {cracky = 2},
drop = {"default:stone_item 2", "default:iron_lump"},
})

View File

@ -8,16 +8,31 @@ function default.itemslot_bg(x,y,w,h)
return imgs return imgs
end end
default.gui_bg = "bgcolor[#a88e69FF;false]"
default.gui_colors = "listcolors[#00000000;#10101030;#00000000;#68B259;#FFF]"
default.inv_form = "size[8,7.5;]" default.inv_form = "size[8,7.5;]"
default.inv_form = default.inv_form.."listcolors[#00000000;#10101030;#00000000;#68B259;#FFF]" default.inv_form = default.inv_form..default.gui_colors
default.inv_form = default.inv_form.."bgcolor[#a88e69FF;false]" default.inv_form = default.inv_form..default.gui_bg
default.inv_form = default.inv_form.."list[current_player;main;0,3.5;8,4;]" default.inv_form = default.inv_form.."list[current_player;main;0,3.5;8,4;]"
default.inv_form = default.inv_form..default.itemslot_bg(0,3.5,8,4) default.inv_form = default.inv_form..default.itemslot_bg(0,3.5,8,4)
default.inv_form = default.inv_form.."list[current_player;craft;1.5,0;3,3;]" default.inv_form = default.inv_form.."list[current_player;craft;1.5,0.5;2,2;]"
default.inv_form = default.inv_form..default.itemslot_bg(1.5,0,3,3) default.inv_form = default.inv_form..default.itemslot_bg(1.5,0.5,2,2)
default.inv_form = default.inv_form.."list[current_player;craftpreview;5,1;1,1;]" default.inv_form = default.inv_form.."list[current_player;craftpreview;5,1;1,1;]"
default.inv_form = default.inv_form..default.itemslot_bg(5,1,1,1) default.inv_form = default.inv_form..default.itemslot_bg(5,1,1,1)
default.craft_form = "size[8,7.5;]"
default.craft_form = default.craft_form..default.gui_colors
default.craft_form = default.craft_form..default.gui_bg
default.craft_form = default.craft_form.."list[current_player;main;0,3.5;8,4;]"
default.craft_form = default.craft_form..default.itemslot_bg(0,3.5,8,4)
default.craft_form = default.craft_form.."list[current_player;craft;1.5,0;3,3;]"
default.craft_form = default.craft_form..default.itemslot_bg(1.5,0,3,3)
default.craft_form = default.craft_form.."list[current_player;craftpreview;5,1;1,1;]"
default.craft_form = default.craft_form..default.itemslot_bg(5,1,1,1)
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_image("gui_hotbar.png") player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png") player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")

View File

@ -8,16 +8,31 @@ function default.itemslot_bg(x,y,w,h)
return imgs return imgs
end end
default.gui_bg = "bgcolor[#a88e69FF;false]"
default.gui_colors = "listcolors[#00000000;#10101030;#00000000;#68B259;#FFF]"
default.inv_form = "size[8,7.5;]" default.inv_form = "size[8,7.5;]"
default.inv_form = default.inv_form.."listcolors[#00000000;#10101030;#00000000;#68B259;#FFF]" default.inv_form = default.inv_form..default.gui_colors
default.inv_form = default.inv_form.."bgcolor[#a88e69FF;false]" default.inv_form = default.inv_form..default.gui_bg
default.inv_form = default.inv_form.."list[current_player;main;0,3.5;8,4;]" default.inv_form = default.inv_form.."list[current_player;main;0,3.5;8,4;]"
default.inv_form = default.inv_form..default.itemslot_bg(0,3.5,8,4) default.inv_form = default.inv_form..default.itemslot_bg(0,3.5,8,4)
default.inv_form = default.inv_form.."list[current_player;craft;1.5,0;3,3;]" default.inv_form = default.inv_form.."list[current_player;craft;1.5,0.5;2,2;]"
default.inv_form = default.inv_form..default.itemslot_bg(1.5,0,3,3) default.inv_form = default.inv_form..default.itemslot_bg(1.5,0.5,2,2)
default.inv_form = default.inv_form.."list[current_player;craftpreview;5,1;1,1;]" default.inv_form = default.inv_form.."list[current_player;craftpreview;5,1;1,1;]"
default.inv_form = default.inv_form..default.itemslot_bg(5,1,1,1) default.inv_form = default.inv_form..default.itemslot_bg(5,1,1,1)
default.craft_form = "size[8,7.5;]"
default.craft_form = default.craft_form..default.gui_colors
default.craft_form = default.craft_form..default.gui_bg
default.craft_form = default.craft_form.."list[current_player;main;0,3.5;8,4;]"
default.craft_form = default.craft_form..default.itemslot_bg(0,3.5,8,4)
default.craft_form = default.craft_form.."list[current_player;craft;1.5,0;3,3;]"
default.craft_form = default.craft_form..default.itemslot_bg(1.5,0,3,3)
default.craft_form = default.craft_form.."list[current_player;craftpreview;5,1;1,1;]"
default.craft_form = default.craft_form..default.itemslot_bg(5,1,1,1)
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_image("gui_hotbar.png") player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png") player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B