Cleanup hive formspec
@ -3,11 +3,12 @@ local function enchconstruct(pos)
|
||||
meta:set_string("formspec", "size[8,7;]"..xdecor.fancy_gui..
|
||||
"label[0.65,-0.15;Enchant]"..
|
||||
"image[0.4,0.2;2,2;default_book.png]"..
|
||||
"image[1.3,2;1,1;ench_mese_layout.png]"..
|
||||
"list[current_name;tool;0.3,2;1,1;]"..
|
||||
"list[current_name;mese;1.3,2;1,1;]"..
|
||||
"image_button[2.5,0;5.3,1.1;bg.png;durable;Durable]"..
|
||||
"image_button[2.5,1;5.3,1.1;bg.png;fast;Fast]"..
|
||||
"image_button[2.5,2;5.3,1.1;bg.png;luck;Luck]"..
|
||||
"image_button[2.5,0;5.3,1.1;ench_bg.png;durable;Durable]"..
|
||||
"image_button[2.5,1;5.3,1.1;ench_bg.png;fast;Fast]"..
|
||||
"image_button[2.5,2;5.3,1.1;ench_bg.png;luck;Luck]"..
|
||||
"list[current_player;main;0,3.3;8,4;]")
|
||||
meta:set_string("infotext", "Enchantment Table")
|
||||
|
||||
|
10
hive.lua
@ -1,10 +1,12 @@
|
||||
local function hive_construct(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", "size[8,5;]"..xdecor.fancy_gui..
|
||||
"label[1.25,0;Bees are making honey\nwith pollen around...]"..
|
||||
"image[0,0;0.9,0.9;xdecor_bee3.png]".. -- Bees textures by Charles Sanchez and Mark Weyer.
|
||||
"image[6,0;0.9,0.9;xdecor_bee2.png]"..
|
||||
"image[7,0.35;0.8,0.8;xdecor_bee1.png]"..
|
||||
"label[1.35,0;Bees are making honey\nwith pollen around...]"..
|
||||
"image[-0.1,-0.2;1,1;flowers_tulip.png]"..
|
||||
"image[0.5,0.2;1,1;flowers_dandelion_yellow.png]"..
|
||||
"image[6.6,0.1;1,1;flowers_geranium.png]"..
|
||||
"image[7.2,-0.1;1,1;flowers_rose.png]"..
|
||||
"image[6,0;0.9,0.9;xdecor_bee.png]".. -- Bee texture by Charles Sanchez and Mark Weyer.
|
||||
"list[current_name;honey;5,0;1,1;]"..
|
||||
"list[current_player;main;0,1.35;8,4;]")
|
||||
meta:set_string("infotext", "Artificial Hive")
|
||||
|
2
init.lua
@ -4,7 +4,7 @@ modpath = minetest.get_modpath("xdecor")
|
||||
dofile(modpath.."/handlers/nodeboxes.lua")
|
||||
dofile(modpath.."/handlers/registration.lua")
|
||||
dofile(modpath.."/crafts.lua")
|
||||
--dofile(modpath.."/enchanting.lua") -- In development.
|
||||
dofile(modpath.."/enchanting.lua") -- In development.
|
||||
dofile(modpath.."/hive.lua")
|
||||
dofile(modpath.."/itemframe.lua")
|
||||
dofile(modpath.."/mailbox.lua")
|
||||
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
BIN
textures/ench_mese_layout.png
Normal file
After Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 268 B |
@ -156,7 +156,7 @@ end
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"xdecor:worktable"},
|
||||
interval = 2, chance = 1,
|
||||
interval = 3, chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
|