]> git.lizzy.rs Git - xdecor.git/commitdiff
Better hive's formspec
authorjp <jeanpatrick.guerrero@gmail.com>
Sun, 5 Jul 2015 09:43:49 +0000 (11:43 +0200)
committerjp <jeanpatrick.guerrero@gmail.com>
Sun, 5 Jul 2015 09:43:49 +0000 (11:43 +0200)
hive.lua
textures/xdecor_bee1.png [new file with mode: 0644]
textures/xdecor_bee2.png [new file with mode: 0644]
textures/xdecor_bee3.png [new file with mode: 0644]

index 265e264cfdad4d852fd028c88a703b9d5f8e1684..2ff37c7f8f9b8decd8932fb5d64842af0cf8de8c 100644 (file)
--- a/hive.lua
+++ b/hive.lua
@@ -1,7 +1,10 @@
 local function hive_construct(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("formspec", "size[8,5;]"..xdecor.fancy_gui..
-               "label[1.5,0;Bees are making honey\nwith pollen around...]"..
+               "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]"..
                "list[current_name;honey;5,0;1,1;]"..
                "list[current_player;main;0,1.35;8,4;]")
        meta:set_string("infotext", "Artificial Hive")
@@ -39,7 +42,7 @@ xdecor.register("hive", {
 
 minetest.register_abm({
        nodenames = {"xdecor:hive"},
-       interval = 10, chance = 10,
+       interval = 4, chance = 4,
        action = function(pos, node, active_object_count, active_object_count_wider)
                local meta = minetest.get_meta(pos)
                local inv = meta:get_inventory()
diff --git a/textures/xdecor_bee1.png b/textures/xdecor_bee1.png
new file mode 100644 (file)
index 0000000..6b3e4c8
Binary files /dev/null and b/textures/xdecor_bee1.png differ
diff --git a/textures/xdecor_bee2.png b/textures/xdecor_bee2.png
new file mode 100644 (file)
index 0000000..c1d211e
Binary files /dev/null and b/textures/xdecor_bee2.png differ
diff --git a/textures/xdecor_bee3.png b/textures/xdecor_bee3.png
new file mode 100644 (file)
index 0000000..0ba599b
Binary files /dev/null and b/textures/xdecor_bee3.png differ